HoS_PRC8/_mod/_module/nss/dwf_firetrap.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

13 lines
383 B
Plaintext

// dwarven trap enter
void main()
{
object oPC=GetEnteringObject();
effect eDmg=EffectDamage(d6(),DAMAGE_TYPE_FIRE);
effect eVis=EffectVisualEffect(VFX_IMP_FLAME_M);
if (GetLocalInt(GetArea(oPC),"nFireActive")==TRUE)
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eVis,oPC,3.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eDmg,oPC,1.0);
}
}