46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
|
|
#include "nw_i0_generic"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
//Time to fight
|
|
FloatingTextStringOnCreature("BAR BRAWL!!", oPC);
|
|
AssignCommand(oPC, SpeakString("BAR BRAWL!!"));
|
|
AssignCommand(GetObjectByTag("Kreshmar2"), SpeakString("BAR BRAWL!!"));
|
|
|
|
//Kreshmar2 switches factions, attacks
|
|
object oKreshmar2 = GetObjectByTag("Kreshmar2");
|
|
ChangeToStandardFaction(oKreshmar2, STANDARD_FACTION_HOSTILE);
|
|
ActionAttack(oPC);
|
|
oTarget = GetObjectByTag("Kreshmar2");
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
//same for Skel2
|
|
object oSkel2 = GetObjectByTag("Skel2");
|
|
ChangeToStandardFaction(oSkel2, STANDARD_FACTION_HOSTILE);
|
|
ActionAttack(oPC);
|
|
oTarget = GetObjectByTag("Skel2");
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
//same for Grilli2
|
|
object oGrilli2 = GetObjectByTag("Grilli2");
|
|
ChangeToStandardFaction(oGrilli2, STANDARD_FACTION_HOSTILE);
|
|
ActionAttack(oPC);
|
|
oTarget = GetObjectByTag("Grilli2");
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
}
|
|
|