Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
93
_module/nss/jw_killer_usd.nss
Normal file
93
_module/nss/jw_killer_usd.nss
Normal file
@@ -0,0 +1,93 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Custom User Defined Event
|
||||
//:: FileName
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By:
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
int nIdx;
|
||||
object oObject;
|
||||
location lLoc;
|
||||
|
||||
if(nUser == 100) //TURN ON SMOKE
|
||||
{
|
||||
if (GetLocalInt(OBJECT_SELF,"safety")!=3)
|
||||
{
|
||||
|
||||
/// close and lock both doors (but unlock them in 47 seconds)
|
||||
for (nIdx=1;nIdx<=2;nIdx++)
|
||||
{
|
||||
oObject=GetNearestObjectByTag("jw_door"+IntToString(nIdx),OBJECT_SELF);
|
||||
AssignCommand(oObject,ActionCloseDoor(oObject));
|
||||
AssignCommand(oObject,SetLocked(oObject,TRUE));
|
||||
DelayCommand(47.0,AssignCommand(oObject,SetLocked(oObject,FALSE)));
|
||||
DelayCommand(47.5,AssignCommand(oObject,ActionOpenDoor(oObject)));
|
||||
|
||||
}
|
||||
|
||||
/// turn the smoke on
|
||||
for (nIdx=1;nIdx<=6;nIdx++)
|
||||
{
|
||||
oObject=GetNearestObjectByTag("jw_invis_smoke",OBJECT_SELF,nIdx);
|
||||
lLoc=GetLocation(oObject);
|
||||
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,EffectAreaOfEffect(AOE_PER_FOGGHOUL),lLoc,15.0);
|
||||
|
||||
DelayCommand(15.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,EffectAreaOfEffect(AOE_PER_FOGACID),lLoc,30.0));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(nUser == 200) //Remove all effects
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1002) // PERCEIVE
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1003) // END OF COMBAT
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1004) // ON DIALOGUE
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1005) // ATTACKED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1006) // DAMAGED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1007) // DEATH
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1008) // DISTURBED
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user