// creator  : weidu.exe (version 23600)
// argument : GNOLL5.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~GNOLL5~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #5110 /* ~Stop! You have trespassed on our territory. You shall not be allowed to leave until you have paid tribute. We demand 50 gold in tribute!~ */
  IF ~~ THEN REPLY #5111 /* ~We have no money. Sorry?~ */ GOTO 2
  IF ~  PartyGoldGT(49)
~ THEN REPLY #5112 /* ~All right then, here's your 50 gold. Goodbye now!~ */ DO ~TakePartyGold(50)
SetGlobal("GnollFightOver","GLOBAL",2)
EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #5113 /* ~Why shouldn't we just kill the whole lot of you, you hairy piles of hyena dung?~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 2.0 0.2
  SAY #5114 /* ~You will die for that!~ */
  IF ~~ THEN DO ~SetGlobal("GnollFightOver","GLOBAL",1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #5115 /* ~No money? That is too bad for you. We let you go only if you win fight. Your best champion versus our best champion.~ */
  IF ~~ THEN REPLY #5116 /* ~We're not going to fight for your amusement, you lousy mutts.~ */ GOTO 1
  IF ~~ THEN REPLY #5117 /* ~Come on! Let's do it then!~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.1
  SAY #5118 /* ~Our best champion is Ludrug. Ludrug is me. Are you ready for fight? No matter, we fight now!~ */
  IF ~~ THEN DO ~ActionOverride(StrongestOf,MoveToPoint([3224.684]))
SetGlobal("GnollFightOver","GLOBAL",3)
AttackOneRound(StrongestOf)
~ EXIT
END

IF ~  HPLT(StrongestOf,5)
Global("GnollFightOver","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #6947 /* ~You lost! Now you must all die!~ */
  IF ~~ THEN DO ~SetGlobal("GnollFightOver","GLOBAL",1)
Enemy()
~ EXIT
END

IF ~  HPLT(Myself,20)
Global("GnollFightOver","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #6948 /* ~You won?! We must let you pass. Tread carefully, we will be watching you.~ */
  IF ~~ THEN DO ~AddexperienceParty(500)
ChangeEnemyAlly(Myself,NEUTRAL)
SetGlobal("GnollFightOver","GLOBAL",2)
~ EXIT
END
