Aschbourne_PRC8/_module/nss/nw_c2_default8.nss

36 lines
989 B
Plaintext
Raw Normal View History

//::///////////////////////////////////////////////
//:: Default: On Disturbed
2024-06-14 10:48:20 -04:00
//:: NW_C2_DEFAULT8
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
2024-06-14 10:48:20 -04:00
/*
Calls the end of combat script every round
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 16, 2001
//::///////////////////////////////////////////
2024-06-14 10:48:20 -04:00
// * Make me hostile the faction of my last attacker (TEMP)
// AdjustReputation(OBJECT_SELF,GetFaction(GetLastAttacker()),-100);
// * Determined Combat Round
#include "NW_I0_GENERIC"
2024-06-14 10:48:20 -04:00
void main()
{
object oTarget = GetLastDisturbed();
if(!GetIsObjectValid(GetAttemptedAttackTarget()) && !GetIsObjectValid(GetAttemptedSpellTarget()))
{
if(GetIsObjectValid(oTarget))
{
DetermineCombatRound(oTarget);
}
2024-06-14 10:48:20 -04:00
}
if(GetSpawnInCondition(NW_FLAG_DISTURBED_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1008));
2024-06-14 10:48:20 -04:00
}
}