Lankhmar_PRC8/_module/nss/cnv_kr_skl_grl_f.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

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));
}