77 lines
1.4 KiB
Plaintext
77 lines
1.4 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Custom User Defined Event
|
||
|
//:: FileName
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By:
|
||
|
//:: Created On:
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
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
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1005) // ATTACKED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1006) // DAMAGED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1007) // DEATH
|
||
|
{
|
||
|
|
||
|
string sString="jw_undshd";
|
||
|
int nRandom=d3();
|
||
|
sString=sString+IntToString(nRandom);
|
||
|
CreateItemOnObject(sString,OBJECT_SELF,1);
|
||
|
|
||
|
int nIdx=0;
|
||
|
object oObject=GetObjectByTag("jw_und_spear_sk",nIdx);
|
||
|
|
||
|
while (GetIsObjectValid(oObject))
|
||
|
{
|
||
|
SetPlotFlag(oObject,FALSE);
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDeath(),oObject);
|
||
|
nIdx++;
|
||
|
oObject=GetObjectByTag("jw_und_spear_sk",nIdx);
|
||
|
}
|
||
|
object oDoor=GetObjectByTag("jw_und42by_dr");
|
||
|
AssignCommand(oDoor,SetLocked(oDoor,FALSE));
|
||
|
AssignCommand(oDoor,ActionOpenDoor(oDoor));
|
||
|
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1008) // DISTURBED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|