Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
79 lines
1.4 KiB
Plaintext
79 lines
1.4 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Custom User Defined Event
|
|
//:: FileName
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By:
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
|
|
|
object oObject;
|
|
int nCounter;
|
|
|
|
int nUser = GetUserDefinedEventNumber();
|
|
|
|
if(nUser == 1001) //HEARTBEAT
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1002) // PERCEIVE
|
|
{
|
|
|
|
|
|
}
|
|
else if(nUser == 1003) // END OF COMBAT
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1004) // ON DIALOGUE
|
|
{
|
|
|
|
nCounter = GetListenPatternNumber();
|
|
if ((nCounter==50)||(nCounter==51))
|
|
{
|
|
|
|
//SpeakString("I heard you");
|
|
oObject=GetNearestObjectByTag("jw_tower2dung_door");
|
|
AssignCommand(oObject,SetLocked(oObject,FALSE));
|
|
AssignCommand(oObject,ActionOpenDoor(oObject));
|
|
//AssignCommand(oObject,SpeakString("I got the command"));
|
|
|
|
//DelayCommand(10.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
|
|
// DelayCommand(10.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
|
|
}
|
|
else
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
else if(nUser == 1005) // ATTACKED
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1006) // DAMAGED
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1007) // DEATH
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1008) // DISTURBED
|
|
{
|
|
|
|
}
|
|
if(nUser == 50) //Make a new lever
|
|
{
|
|
}
|
|
}
|
|
|