93 lines
1.5 KiB
Plaintext
93 lines
1.5 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Custom User Defined Event
|
||
|
//:: FileName
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By:
|
||
|
//:: Created On:
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
|
||
|
//I make most plants green and many people brown. What am I?
|
||
|
//Sun (yellow)
|
||
|
|
||
|
//Pulled by a night pearl, I bow politely and slowly straughten up twice a day. What am I?
|
||
|
//Ocean (blue)
|
||
|
|
||
|
//I'm often held, yet rarely touched;
|
||
|
//I'm always wet, yet never rust;
|
||
|
//I'm sometimes wagged and sometimes bit;
|
||
|
//To use me well, you must have wit.
|
||
|
//tognue (red)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nUser = GetUserDefinedEventNumber();
|
||
|
int nIdx;
|
||
|
object oDoor;
|
||
|
|
||
|
if(nUser == 50) //ENCOUNTER EXHAUSTED
|
||
|
{
|
||
|
if (GetLocalInt(OBJECT_SELF,"nLights")==5)
|
||
|
{
|
||
|
|
||
|
for (nIdx=1;nIdx<=3;nIdx++)
|
||
|
{
|
||
|
oDoor=GetObjectByTag("jw_sembdoor"+IntToString(nIdx));
|
||
|
SetLocked(oDoor,FALSE);
|
||
|
AssignCommand(oDoor,ActionOpenDoor(oDoor));
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
else
|
||
|
|
||
|
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
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|