// creator  : weidu.exe (version 23100)
// argument : _GNOLL5.DLG
// game		 : .
// source	 : ./override/_GNOLL5.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~_GNOLL5~

IF ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #76651 /* ~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 #76652 /* ~We have no money.  Sorry?~ */ GOTO 2
  IF ~~ THEN REPLY #76653 /* ~All right then, here's your 50 gold.  Goodbye now!~ */ DO ~TakePartyGold(50)
~ EXIT
  IF ~~ THEN REPLY #76654 /* ~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 #76655 /* ~You will die for that!~ */
  IF ~~ THEN DO ~SetGlobal("GnollFightOver","GLOBAL",1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #76656 /* ~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 #76657 /* ~We're not going to fight for your amusement, you lousy mutts.~ */ GOTO 1
  IF ~~ THEN REPLY #76658 /* ~Come on!  Let's do it then!~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.1
  SAY #76659 /* ~Our best champion is Ludrug.  Ludrug is me.  Are you ready for fight?  No matter, we fight now!~ */
  IF ~~ THEN DO ~Attack(StrongestOf)
ActionOverride(StrongestOf,Attack("gnoll5"))
~ EXIT
END

IF ~HPLT(StrongestOf,5)
Global("GnollFightOver","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #76660 /* ~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 #76661 /* ~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
