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

BEGIN ~PPTIAX~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #44207 /* ~He rules all, he does! You?! You are but the left bunion of his wondrous idol! You be grateful for the chance!~ [PPTIAX02] */
  IF ~~ THEN REPLY #44209 /* ~Tiax? Is that you? I haven't seen you in ages. What have you been up to?~ */ GOTO 1
  IF ~~ THEN REPLY #44210 /* ~Oh great, I thought I was rid of this ridiculous gnome back in Baldur's Gate.~ */ GOTO 1
  IF ~~ THEN REPLY #55367 /* ~Tiax?  Aren't you supposed to be dead?~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.2 0.1 0.0
  SAY #44208 /* ~Tiax rules all from this throne room! You are all servants of his majesty, even as you feign ignorance!~ [PPTIAX07] */
  IF ~!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("CERND")~ THEN GOTO 2
  IF ~IsValidForPartyDialogue("JAN")~ THEN EXTERN ~JANJ~ 152
  IF ~IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("JAN")
~ THEN EXTERN ~HAERDAJ~ 106
  IF ~IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("JAN")~ THEN EXTERN ~CERNDJ~ 107
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #44211 /* ~The heavens move because he waves his hand! The waters stir as he twiddles his toes! The wind blows as he passes! And on a whim he can break them all!~ [PPTIAX08] */
  IF ~~ THEN REPLY #44212 /* ~World domination goes well then, does it? Good to hear. Goodbye. Don't write.~ */ GOTO 3
  IF ~~ THEN REPLY #44213 /* ~Shut up, you ridiculous creature! Can you see how small you are!?~ */ GOTO 3
  IF ~~ THEN REPLY #44214 /* ~If you are so powerful, why don't you leave this place?~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 5.0 2.1 2.0
  SAY #44215 /* ~Tiax takes no notice! Go, and spread word of his mighty stature! Tiax rules all! Just ask him, and you shall see!~ [PPTIAX09] */
  IF ~RandomNumGT(1000,0)
RandomNumLT(1000,1000)
~ THEN EXIT
  IF ~RandomNumGT(1000,999)
~ THEN GOTO 8
END

IF ~~ THEN BEGIN 4 // from: 2.2
  SAY #44216 /* ~Er...~ [PPTIAX10] */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #44217 /* ~... ah...~ [PPTIAX26] */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 6 // from: PPIRENI1:22.0
  SAY #44651 /* ~Tiax rules all! You are but grease for the wheels of his rule! Silence the squeaking of those that protest! He rules all!~ [PPTIAX06] */
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("ANOMEN")~ THEN EXTERN ~PPIRENI1~ 23
  IF ~IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 454
  IF ~!IsValidForPartyDialogue("JAHEIRA")
IsValidForPartyDialogue("EDWIN")~ THEN EXTERN ~EDWINJ~ 100
  IF ~IsValidForPartyDialogue("ANOMEN")
!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")~ THEN EXTERN ~ANOMENJ~ 259
END

IF ~~ THEN BEGIN 7 // from:
  SAY #45022 /* ~Oh... uh... normally that works...~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 14.1 3.1
  SAY #53805 /* ~Lil' monkey spanker.~ */
  IF ~~ THEN EXIT
END

IF ~NumTimesTalkedTo(1)
~ THEN BEGIN 9 // from:
  SAY #53811 /* ~You have disturbed Tiax the Grand again! Such insolence! Tiax will place a mark of shame upon your forehead! All will know your treachery!~ [PPTIAX11] */
  IF ~~ THEN DO ~SetInterrupt(FALSE)
ForceSpell(Myself,DO_NOTHING)
Wait(2)
SetInterrupt(TRUE)
StartDialogueNoSet([PC])
~ EXIT
END

IF ~NumTimesTalkedTo(2)
~ THEN BEGIN 10 // from:
  SAY #53812 /* ~Eh... it would appear that... the great and... mighty Tiax... has shrunk his undergarments... three sizes this day.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #53813 /* ~Excuse... the mighty Tiax... while he catches his... his breath... He will rule... later.~ */
  IF ~~ THEN EXIT
END

IF ~True()
~ THEN BEGIN 12 // from:
  SAY #53814 /* ~When Tiax rules, britches will not ride up so wedge-like.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #55752 /* ~Ah...~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #55753 /* ~Tiax has lost his place! The indignity!~ */
  IF ~RandomNumGT(1000,0)
RandomNumLT(1000,1000)~ THEN EXIT
  IF ~RandomNumGT(1000,999)
~ THEN GOTO 8
END
