Battledale_PRC8/_module/nss/jw_lever_usd.nss
Jaysyn904 e5b3f6ad61 Finished PRC8 integration
Finished PRC8 integration.  Moved creature abilities to top hak.  Setup tooling.  Created release archive
2024-03-12 21:27:23 -04:00

76 lines
1.5 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 nUser = GetUserDefinedEventNumber();
if(nUser == 50) //Skeleton encounter exhausted
{
if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") != 1)
{
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(OBJECT_SELF,"NW_L_AMION",1);
oObject=GetNearestObjectByTag("jw_door_down");
AssignCommand(oObject,SetLocked(oObject,FALSE));
AssignCommand(oObject,ActionOpenDoor(oObject));
// DelayCommand(10.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
//DelayCommand(10.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
DelayCommand(10.5,PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
DelayCommand(10.5,SetLocalInt(OBJECT_SELF,"NW_L_AMION",0));
}
}
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
{
}
}