13 lines
383 B
Plaintext
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);
|
|
}
|
|
}
|