Battledale_PRC8/_module/nss/jw_ashbeneath_en.nss

13 lines
402 B
Plaintext
Raw Permalink Normal View History

void main()
{
if (GetLocalInt(OBJECT_SELF,"nDoors")!=2)
{
object oDoor=GetObjectByTag("jw_ashdoor1");
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(10,DAMAGE_TYPE_MAGICAL,DAMAGE_POWER_PLUS_FIVE),oDoor);
oDoor=GetObjectByTag("jw_ashdoor2");
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(10,DAMAGE_TYPE_MAGICAL,DAMAGE_POWER_PLUS_FIVE),oDoor);
SetLocalInt(OBJECT_SELF,"nDoors",2);
}
}