Initial commit
Initial commit. Updated release archive.
This commit is contained in:
23
_module/nss/en6_p_trap.nss
Normal file
23
_module/nss/en6_p_trap.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
effect eVis;
|
||||
effect eDam;
|
||||
|
||||
oPC=GetEnteringObject();
|
||||
|
||||
if (GetIsPC(oPC) || GetIsPC(GetMaster(oPC)))
|
||||
{
|
||||
if (Random(8)==0 && GetLocalInt(OBJECT_SELF,"TrapSprung")==0)
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF,"TrapSprung",1);
|
||||
eVis = EffectVisualEffect(VFX_FNF_SWINGING_BLADE);
|
||||
DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, GetLocation(oPC),3.0));
|
||||
if (ReflexSave(oPC,24) == 0)
|
||||
{
|
||||
eDam = EffectDamage(d6(2), DAMAGE_TYPE_SLASHING);
|
||||
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oPC));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user