PoA_PRC8/_module/nss/s_t_pocket.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

23 lines
836 B
Plaintext

void main()
{
object oCreature = GetEnteringObject();
location lHeal = GetLocation(oCreature) ;
RemoveEffect(oCreature, EffectDarkness());
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectHeal(25), oCreature);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_BEAM_HOLY), lHeal, 2.0);
if(!GetIsPC(GetEnteringObject())) {
return; }
object oArea = GetArea(OBJECT_SELF);
// place here the % chance of rest being interruped excample here 33% chance of rest being interuped
SetLocalInt(oArea, "nMonChance",0);
// place here the blueprint refrenfrence tag of the creature you wish to attack them
// or place the word CUSTOM which will send a 201 event to the area starting your won script
// here it is a goblin
SetLocalString(oArea, "sMonster","");
}