Battledale_PRC8/_module/nss/jw_andmob_open.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

94 lines
1.9 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
{
int nListen=GetListenPatternNumber();
if (nListen==-1)
{
return;
}
object oDoor=GetObjectByTag(GetTag(OBJECT_SELF)+"_dr");
if (GetLocalInt(GetArea(OBJECT_SELF),"nRiddles")==1&&(nListen==50||nListen==51||nListen==52||nListen==53))
{
AssignCommand(oDoor,SetLocked(oDoor,FALSE));
AssignCommand(oDoor,ActionOpenDoor(oDoor));
PlayAnimation(ANIMATION_FIREFORGET_TAUNT);
PlaySound("c_demon_atk2");
return;
}
if (GetLocalInt(GetArea(OBJECT_SELF),"nRiddles")==2&&(nListen==54||nListen==55||nListen==56||nListen==57))
{
AssignCommand(oDoor,SetLocked(oDoor,FALSE));
AssignCommand(oDoor,ActionOpenDoor(oDoor));
PlayAnimation(ANIMATION_FIREFORGET_TAUNT);
PlaySound("c_demon_atk2");
return;
}
if (GetLocalInt(GetArea(OBJECT_SELF),"nRiddles")==3&&(nListen==58||nListen==59||nListen==60||nListen==61))
{
AssignCommand(oDoor,SetLocked(oDoor,FALSE));
AssignCommand(oDoor,ActionOpenDoor(oDoor));
PlayAnimation(ANIMATION_FIREFORGET_TAUNT);
PlaySound("c_demon_atk2");
return;
}
}
else if(nUser == 1005) // ATTACKED
{
}
else if(nUser == 1006) // DAMAGED
{
}
else if(nUser == 1007) // DEATH
{
}
else if(nUser == 1008) // DISTURBED
{
}
}