Battledale_PRC8/_module/nss/jw_dhorn_enter.nss

28 lines
484 B
Plaintext
Raw Permalink Normal View History

void main()
{
if (GetLocalInt(OBJECT_SELF,"nDone")!=1)
{
effect eIce=EffectVisualEffect(VFX_DUR_ICESKIN);
eIce=SupernaturalEffect(eIce);
int nIdx=0;
object oGlow=GetObjectByTag("jw_dhorn_chest",nIdx);
while (GetIsObjectValid(oGlow))
{
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eIce,oGlow);
nIdx++;
oGlow=GetObjectByTag("jw_br_dun_glow",nIdx);
}
SetLocalInt(OBJECT_SELF,"nDone",1);
}
object oPC=GetEnteringObject();
}