Initial commit
Initial commit [1.18]
This commit is contained in:
36
_module/nss/trap_elec_avg.nss
Normal file
36
_module/nss/trap_elec_avg.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE);
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Electrical Trap
|
||||
//:: NW_T1_ElecAvgC.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
The creature setting off the trap is struck by
|
||||
a strong electrical current that arcs to 4 other
|
||||
targets doing 15d6 damage. Can make a Reflex
|
||||
save for half damage.
|
||||
|
||||
PATCH (Brent/Jon): replaced oTarget with
|
||||
o2ndTarget in the while loop
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: July 30, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
#include "NW_I0_SPELLS"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
TrapDoElectricalDamage(d6(15), 22, 4);
|
||||
|
||||
//respawn trap
|
||||
DelayCommand(598.0, CreateObject2(GetObjectType(OBJECT_SELF), GetResRef(OBJECT_SELF), GetLocation(OBJECT_SELF)));
|
||||
DelayCommand(600.0, DestroyObject(OBJECT_SELF));
|
||||
}
|
||||
|
||||
void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE)
|
||||
{
|
||||
CreateObject(nObjectType, sTemplate, lLocation, bUseAppearAnimation);
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user