PWE_PRC8/_module/nss/boxer_end_round.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

55 lines
1.7 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Default: End of Combat Round
//:: NW_C2_DEFAULT3
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Calls the end of combat script every round
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 16, 2001
//:://////////////////////////////////////////////
#include "NW_I0_GENERIC"
void main()
{
if(GetBehaviorState(NW_FLAG_BEHAVIOR_SPECIAL))
{
DetermineSpecialBehavior();
}
else if(!GetSpawnInCondition(NW_FLAG_SET_WARNINGS))
{
DetermineCombatRound();
}
if(GetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1003));
}
if(OBJECT_SELF == GetObjectByTag("BOXER_BLUE"))
{
if(GetIsDead(GetObjectByTag("BOXER_RED")))
{
ActionMoveToObject(GetObjectByTag("CHAIR_BLUE"));
ActionSit(GetObjectByTag("CHAIR_BLUE"));
SetLocalInt(GetObjectByTag("BOXER_RED"),"Fight",0);
SetLocalInt(GetObjectByTag("BOXER_BLUE"),"Fight",0);
DelayCommand(10.0,ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(OBJECT_SELF)),OBJECT_SELF));
}
}
else
{
if(GetIsDead(GetObjectByTag("BOXER_BLUE")))
{
ActionMoveToObject(GetObjectByTag("CHAIR_RED"));
ActionSit(GetObjectByTag("CHAIR_RED"));
SetLocalInt(GetObjectByTag("BOXER_RED"),"Fight",0);
SetLocalInt(GetObjectByTag("BOXER_BLUE"),"Fight",0);
DelayCommand(10.0,ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(OBJECT_SELF)),OBJECT_SELF));
}
}
}