128 lines
2.5 KiB
Plaintext
128 lines
2.5 KiB
Plaintext
#include "nw_i0_generic"
|
|
|
|
void main()
|
|
{
|
|
object oGustyn = GetObjectByTag("Gustyn");
|
|
|
|
ChangeToStandardFaction(oGustyn, STANDARD_FACTION_HOSTILE);
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
ActionAttack(oPC);
|
|
|
|
object oTarget;
|
|
oTarget = GetObjectByTag("Gustyn");
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
|
|
|
|
object oWeshh = GetObjectByTag("Weshh");
|
|
|
|
ChangeToStandardFaction(oWeshh, STANDARD_FACTION_HOSTILE);
|
|
|
|
ActionAttack(oPC);
|
|
|
|
oTarget = GetObjectByTag("Weshh");
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
|
|
object oDone = GetObjectByTag("Done");
|
|
|
|
ChangeToStandardFaction(oDone, STANDARD_FACTION_HOSTILE);
|
|
|
|
ActionAttack(oPC);
|
|
|
|
oTarget = GetObjectByTag("Done");
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
|
|
object oSpawn;
|
|
location lTarget;
|
|
oTarget = GetWaypointByTag("WP_Spn_BGrd");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "badlankhmarguard", lTarget);
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
oTarget = GetWaypointByTag("WP_Spn_BGrd");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "badlankhmarguard", lTarget);
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
oTarget = GetWaypointByTag("WP_Spn_BGrd");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "badlankhmarguard", lTarget);
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
oTarget = GetWaypointByTag("WP_Spn_BGrd");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "badlankhmarguard", lTarget);
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
oTarget = GetWaypointByTag("WP_Spn_BGrd");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "badlankhmarguard", lTarget);
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
}
|
|
|