// creator  : weidu.exe (version 23100)
// argument : UDDROW26.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~UDDROW26~ 2 // non-zero flags may indicate non-pausing dialogue

IF ~Global("slaves","AR2203",0)~ THEN BEGIN 0 // from:
  SAY #52832 /* ~Greetings, friend.  Have you tried this amusement?  You simply press the button here and one of the foolish slaves who stands on that rune explodes!!~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #52833 /* ~Such a marvelous magic!!  Hahahaaaa-haha!!  Here... I shall show you how it works!  Who is the unlucky slave to be today, hmmmn?~ */
  IF ~~ THEN DO ~SetInterrupt(FALSE)
CreateCreature("udvictim",[1074.394],4)
ActionOverride("Slave1",MoveToPointNoInterrupt([904.417]))
Wait(1)
IncrementGlobal("slaves","AR2203",1)
ActionOverride("Slave1",ApplySpell(Myself,SLAVE_CHUNK))
SetInterrupt(TRUE)~ EXIT
END

IF ~NumTimesTalkedToGT(0)
GlobalLT("slaves","AR2203",4)~ THEN BEGIN 2 // from:
  SAY #52834 /* ~See?  Ha ha!!  I must find the clever mage who installed such a fabulous thing and reward him duly!  Would you like to give it a try?  It'll only cost you a hundred gold.~ */
  IF ~PartyGoldGT(99)~ THEN REPLY #55107 /* ~Yes, I want to see another slave explode!~ */ DO ~TakePartyGold(100)~ GOTO 4
  IF ~~ THEN REPLY #55108 /* ~I think not.~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.1
  SAY #55109 /* ~Suit yourself.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 2.0
  SAY #55110 /* ~Here we go...~ */
  IF ~~ THEN DO ~IncrementGlobal("slaves","AR2203",1)~ EXIT
END

IF ~Global("slaves","AR2203",5)~ THEN BEGIN 5 // from:
  SAY #55230 /* ~No more slaves to explode today.~ */
  IF ~~ THEN EXIT
END
