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

BEGIN ~UDOGRE~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #52017 /* ~Ahh, you wakey wakey now, I sees? Goods! Now it time to fight!~ */
  IF ~~ THEN REPLY #52033 /* ~What is this place?~ */ GOTO 1
  IF ~~ THEN REPLY #52034 /* ~Who are you?~ */ GOTO 1
  IF ~~ THEN REPLY #52035 /* ~What am I doing here?~ */ GOTO 1
  IF ~~ THEN REPLY #52036 /* ~Fine then! I'll have your head!~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.2 0.1 0.0
  SAY #52038 /* ~Questions, questions, always da new fighters got the same questions.  You listen then, and I tell you what you need to know.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 0.3
  SAY #52049 /* ~Ha HA! No, silly little one, you don't fight me. I earned right to not fight. No, you fight in the arena. Listen, I tell you what you need to know.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0 1.0
  SAY #52051 /* ~First thing, I not the one that capture. You trespass on the home of the flayers, and you got caught. Now you pay for your stay. Understand?~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #52052 /* ~Next thing, you better fight well in the arena, because if you don't fight well, you die. If you don't fight at all, you die.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #52054 /* ~Maybe you live long enough to get servant position. Better than fighting. Oh, last rule, never attack the flayers. You are in their home. They kill you with their thoughts.~ */
  IF ~~ THEN REPLY #52057 /* ~So I must fight for the amusement of the flayers? Do you mean "Mind Flayers?"~ */ GOTO 7
  IF ~~ THEN REPLY #52058 /* ~I will not be forced to fight! I refuse!~ */ GOTO 9
  IF ~~ THEN REPLY #52059 /* ~You look like a reasonable fellow. I could offer you a lot if you were to release me.~ */ GOTO 8
  IF ~~ THEN REPLY #52060 /* ~Then I will fight. I will not resist... for now.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 10.0 8.0 7.0 5.3
  SAY #52074 /* ~You will live if you fight well. I warn though: do not anger spectators. They extra strong in this place because of big brain. First battle begins now!~ */
  IF ~~ THEN DO ~ClearActions(Player1)
ClearActions(Player2)
ClearActions(Player3)
ClearActions(Player4)
ClearActions(Player5)
ClearActions(Player6)
StartCutSceneMode()
StartCutScene("Cut44e")~ UNSOLVED_JOURNAL #54410 /* ~Captured by Mind Flayers!

I have stumbled upon a Mind Flayer enclave, and I am in serious trouble. I am to fight in their pit, presumably for their amusement. I do not know if it is possible to escape from the center of a Mind Flayer stronghold. They will be at their most powerful here.~ */ EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.0
  SAY #52076 /* ~I mean the masters that control the fights. You do as I say and they don't kill you. You will face many opponents before you are servant like me.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 8 // from: 5.2
  SAY #52081 /* ~Could you offer my life? No, because as soon as I disobey I drop dead because of collar. No, you know nothing about it. You just fight and hope you win.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 9 // from: 5.1
  SAY #52082 /* ~There is no refuse. You get stunned before you come here, right? Well, in this place they even stronger because of real big brain.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #52084 /* ~So you will do what you told and that is that. I did what I was told and I live. Others disobeyed and they dead.~ */
  IF ~~ THEN GOTO 6
END

IF ~Global("udMind","GLOBAL",2)~ THEN BEGIN 11 // from:
  SAY #52089 /* ~Well! You fight well! For now you live! I come tell you when next battle begins.~ */
  IF ~~ THEN DO ~ClearActions(Player1)
ClearActions(Player2)
ClearActions(Player3)
ClearActions(Player4)
ClearActions(Player5)
ClearActions(Player6)
SetGlobal("udMind","GLOBAL",3)
GiveItemCreate("potn52",LastTalkedToBy,1,0,0)
GiveItemCreate("potn52",LastTalkedToBy,1,0,0)
GiveItemCreate("potn52",LastTalkedToBy,1,0,0)
GiveItemCreate("potn52",LastTalkedToBy,1,0,0)
GiveItemCreate("potn52",LastTalkedToBy,1,0,0)
StartCutSceneMode()
StartCutScene("Cut44g")~ EXIT
END

IF ~Global("udMind","GLOBAL",150)
Global("udGithDead","AR2400",0)~ THEN BEGIN 12 // from:
  SAY #52090 /* ~Now you fight again. Keep up good work. I cheer for you guys, I think. Those Githyanki is awful sour in the face.~ */
  IF ~~ THEN DO ~SetGlobal("udMind","GLOBAL",15)~ GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #52091 /* ~You fight them Githyanki this time. Hope you didn't talk too much with them. That makes the killing harder, I know.~ */
  IF ~~ THEN DO ~ClearAllActions()
SetGlobalTimer("udMindTimer","GLOBAL",10)
StartCutSceneMode()
StartCutScene("Cut44j")~ EXIT
END

IF ~Global("udmind","GLOBAL",30)~ THEN BEGIN 14 // from:
  SAY #52093 /* ~Ahh, you ready now? Getting tough, I know, but you do okay. Time to fight again, so get ready.~ */
  IF ~~ THEN DO ~EraseJournalEntry(54410)
EraseJournalEntry(54413)
EraseJournalEntry(57859)
EraseJournalEntry(57860)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Cut44m")~ SOLVED_JOURNAL #57894 /* ~Captured by Mind Flayers!

I have slain the Githyanki prisoners.  Now I can focus my attention on escaping this foul prison.  I need to find some way to force open the door out of the arena.~ */ EXIT
END
