Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
96 lines
1.9 KiB
Plaintext
96 lines
1.9 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Custom User Defined Event
|
|
//:: FileName
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By:
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
|
|
|
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
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|