Battledale_PRC8/_module/nss/jw_guardskel_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

94 lines
1.7 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Custom User Defined Event
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
void main()
{
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
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
{
ChangeToStandardFaction(OBJECT_SELF,STANDARD_FACTION_HOSTILE);
object oLever=GetObjectByTag("jw_trap_lever");
if (GetIsTrapped(oLever))
{
SetTrapDisabled(oLever);
}
object oObject;
int nCounter=0;
effect eEffect;
oObject =GetObjectByTag("jw_guardskel",nCounter);
if (GetIsObjectValid(oObject))
{
SetLocalInt(oLever,"triggered",3);
}
while (GetIsObjectValid(oObject))
{
ChangeToStandardFaction(oObject,STANDARD_FACTION_HOSTILE);
eEffect=GetFirstEffect(oObject);
while (GetIsEffectValid(eEffect))
{
if (GetEffectCreator(eEffect)==oObject)
{
RemoveEffect(oObject,eEffect);
}
eEffect=GetNextEffect(oObject);
}
nCounter++;
oObject =GetObjectByTag("jw_guardskel",nCounter);
}
DelayCommand(230.0,SignalEvent(GetObjectByTag("jw_lion"),EventUserDefined(50)));
}
else if(nUser == 1007) // DEATH
{
}
else if(nUser == 1008) // DISTURBED
{
}
}