90 lines
1.8 KiB
Plaintext
90 lines
1.8 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Custom User Defined Event
|
||
|
//:: FileName
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By:
|
||
|
//:: Created On:
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{ object oObject;
|
||
|
int nCounter;
|
||
|
int nUser = GetUserDefinedEventNumber();
|
||
|
|
||
|
|
||
|
if(nUser == 500) //OPEN from other side
|
||
|
{
|
||
|
SetLocked(OBJECT_SELF,FALSE);
|
||
|
DelayCommand(0.5,PlayAnimation(ANIMATION_PLACEABLE_OPEN));
|
||
|
|
||
|
DelayCommand(10.0,PlayAnimation(ANIMATION_PLACEABLE_CLOSE));
|
||
|
DelayCommand(10.0,SetLocked(OBJECT_SELF,TRUE));
|
||
|
}
|
||
|
|
||
|
if(nUser == 600) //OPEN from other side by Wilberforce
|
||
|
{
|
||
|
SetLocked(OBJECT_SELF,FALSE);
|
||
|
DelayCommand(0.5,PlayAnimation(ANIMATION_PLACEABLE_OPEN));
|
||
|
|
||
|
DelayCommand(10.0,PlayAnimation(ANIMATION_PLACEABLE_CLOSE));
|
||
|
DelayCommand(10.0,SetLocked(OBJECT_SELF,TRUE));
|
||
|
|
||
|
oObject=GetFirstObjectInArea();
|
||
|
while (GetIsObjectValid(oObject))
|
||
|
{
|
||
|
if (GetTag(oObject)=="jw_wilberforce")
|
||
|
{
|
||
|
nCounter=1;
|
||
|
}
|
||
|
oObject=GetNextObjectInArea();
|
||
|
|
||
|
}
|
||
|
if (nCounter==0)
|
||
|
{
|
||
|
oObject= GetObjectByTag("jw_wilberforce");
|
||
|
AssignCommand(oObject,JumpToLocation(GetLocation(GetObjectByTag("WP_jw_aisha_fromabove"))));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
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
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|