Initial commit

Initial commit [1.18]
This commit is contained in:
Jaysyn904
2025-04-03 11:49:34 -04:00
parent 7c356e4b58
commit b5e28e52f4
8870 changed files with 12886401 additions and 1 deletions

View 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;
}