Initial commit
Initial commit [v9.7]
This commit is contained in:
150
_module/nss/ban_attack_conve.nss
Normal file
150
_module/nss/ban_attack_conve.nss
Normal file
@@ -0,0 +1,150 @@
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oBandit1 = GetObjectByTag("Bandit1");
|
||||
|
||||
ChangeToStandardFaction(oBandit1, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag("Bandit1");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
|
||||
object oBandit2 = GetObjectByTag("Bandit2");
|
||||
|
||||
ChangeToStandardFaction(oBandit2, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit2");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
|
||||
|
||||
object oBandit3 = GetObjectByTag("Bandit3");
|
||||
|
||||
ChangeToStandardFaction(oBandit3, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit3");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
|
||||
object oBandit4 = GetObjectByTag("Bandit4");
|
||||
|
||||
ChangeToStandardFaction(oBandit4, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit4");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
|
||||
object oBandit5 = GetObjectByTag("Bandit5");
|
||||
|
||||
ChangeToStandardFaction(oBandit5, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit5");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
object oBandit6 = GetObjectByTag("Bandit6");
|
||||
|
||||
ChangeToStandardFaction(oBandit6, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit6");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
object oBandit7 = GetObjectByTag("Bandit7");
|
||||
|
||||
ChangeToStandardFaction(oBandit7, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit7");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
object oBandit8 = GetObjectByTag("Bandit8");
|
||||
|
||||
ChangeToStandardFaction(oBandit8, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit8");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
|
||||
object oBandit9 = GetObjectByTag("Bandit9");
|
||||
|
||||
ChangeToStandardFaction(oBandit9, STANDARD_FACTION_HOSTILE);
|
||||
|
||||
ActionAttack(oPC);
|
||||
|
||||
oTarget = GetObjectByTag("Bandit9");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user