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

BEGIN ~WISH2~

IF ~Global("TalkedToWish2","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #71994 /* ~~ */
  IF ~~ THEN REPLY #71995 /* ~~ */ DO ~SetGlobal("TalkedToWish2","GLOBAL",1)~ GOTO 1
  IF ~~ THEN REPLY #71996 /* ~~ */ DO ~SetGlobal("TalkedToWish2","GLOBAL",1)~ GOTO 1
  IF ~~ THEN REPLY #71997 /* ~~ */ DO ~SetGlobal("TalkedToWish2","GLOBAL",1)~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.2 0.1 0.0
  SAY #71998 /* ~~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #71999 /* ~~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #72000 /* ~~ */
  IF ~~ THEN REPLY #72001 /* ~~ */ GOTO 6
  IF ~~ THEN REPLY #72002 /* ~~ */ GOTO 6
  IF ~CombatCounterGT(0)~ THEN REPLY #72003 /* ~~ */ GOTO 5
  IF ~~ THEN REPLY #72004 /* ~~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 34.3 6.1 5.2 3.3
  SAY #72005 /* ~~ */
  IF ~~ THEN DO ~ReallyForceSpell(Myself,POOF_GONE)~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 34.2 3.2
  SAY #72006 /* ~~ */
  IF ~~ THEN REPLY #72007 /* ~~ */ GOTO 6
  IF ~~ THEN REPLY #72008 /* ~~ */ GOTO 6
  IF ~~ THEN REPLY #72009 /* ~~ */ GOTO 4
END

IF ~~ THEN BEGIN 6 // from: 34.1 34.0 5.1 5.0 3.1 3.0
  SAY #72010 /* ~~ */
  IF ~~ THEN REPLY #72011 /* ~~ */ GOTO 7
  IF ~~ THEN REPLY #72013 /* ~~ */ GOTO 4
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #72014 /* ~~ */
  IF ~CheckStatGT(LastTalkedToBy,17,WIS)~ THEN GOTO 8
  IF ~CheckStatGT(LastTalkedToBy,14,WIS)
CheckStatLT(LastTalkedToBy,18,WIS)~ THEN GOTO 9
  IF ~CheckStatGT(LastTalkedToBy,9,WIS)
CheckStatLT(LastTalkedToBy,15,WIS)~ THEN GOTO 10
  IF ~CheckStatLT(LastTalkedToBy,10,WIS)~ THEN GOTO 11
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #72015 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 12
  IF ~RandomNum(2,2)~ THEN GOTO 13
END

IF ~~ THEN BEGIN 9 // from: 7.1
  SAY #72016 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 17
  IF ~RandomNum(2,2)~ THEN GOTO 18
END

IF ~~ THEN BEGIN 10 // from: 7.2
  SAY #72017 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 22
  IF ~RandomNum(2,2)~ THEN GOTO 23
END

IF ~~ THEN BEGIN 11 // from: 7.3
  SAY #72018 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 27
  IF ~RandomNum(2,2)~ THEN GOTO 28
END

IF ~~ THEN BEGIN 12 // from: 8.0
  SAY #72019 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 14
  IF ~RandomNum(2,2)~ THEN GOTO 15
END

IF ~~ THEN BEGIN 13 // from: 8.1
  SAY #72020 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 15
  IF ~RandomNum(2,2)~ THEN GOTO 16
END

IF ~~ THEN BEGIN 14 // from: 12.0
  SAY #72021 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",111)~ GOTO 32
END

IF ~~ THEN BEGIN 15 // from: 13.0 12.1
  SAY #72022 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",112)~ GOTO 32
END

IF ~~ THEN BEGIN 16 // from: 13.1
  SAY #72023 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",122)~ GOTO 32
END

IF ~~ THEN BEGIN 17 // from: 9.0
  SAY #72024 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 19
  IF ~RandomNum(2,2)~ THEN GOTO 20
END

IF ~~ THEN BEGIN 18 // from: 9.1
  SAY #72025 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 20
  IF ~RandomNum(2,2)~ THEN GOTO 21
END

IF ~~ THEN BEGIN 19 // from: 17.0
  SAY #72026 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",211)~ GOTO 32
END

IF ~~ THEN BEGIN 20 // from: 18.0 17.1
  SAY #72027 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",212)~ GOTO 32
END

IF ~~ THEN BEGIN 21 // from: 18.1
  SAY #72028 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",222)~ GOTO 32
END

IF ~~ THEN BEGIN 22 // from: 10.0
  SAY #72029 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 24
  IF ~RandomNum(2,2)~ THEN GOTO 25
END

IF ~~ THEN BEGIN 23 // from: 10.1
  SAY #72030 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 25
  IF ~RandomNum(2,2)~ THEN GOTO 26
END

IF ~~ THEN BEGIN 24 // from: 22.0
  SAY #72031 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",311)~ GOTO 32
END

IF ~~ THEN BEGIN 25 // from: 23.0 22.1
  SAY #72032 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",312)~ GOTO 32
END

IF ~~ THEN BEGIN 26 // from: 23.1
  SAY #72033 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",322)~ GOTO 32
END

IF ~~ THEN BEGIN 27 // from: 11.0
  SAY #72034 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 29
  IF ~RandomNum(2,2)~ THEN GOTO 30
END

IF ~~ THEN BEGIN 28 // from: 11.1
  SAY #72035 /* ~~ */
  IF ~RandomNum(2,1)~ THEN GOTO 30
  IF ~RandomNum(2,2)~ THEN GOTO 31
END

IF ~~ THEN BEGIN 29 // from: 27.0
  SAY #72036 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",411)~ GOTO 32
END

IF ~~ THEN BEGIN 30 // from: 28.0 27.1
  SAY #72037 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",412)~ GOTO 32
END

IF ~~ THEN BEGIN 31 // from: 28.1
  SAY #72038 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("WishLevel","GLOBAL",422)~ GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 31.0 30.0 29.0 26.0 25.0 24.0 21.0 20.0 19.0 16.0 15.0 14.0
  SAY #72039 /* ~~ */
  IF ~~ THEN GOTO 33
END

IF ~~ THEN BEGIN 33 // from: 32.0
  SAY #72040 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("Wish2Begin","GLOBAL",1)~ EXIT
END

IF ~Global("TalkedToWish2","GLOBAL",1)~ THEN BEGIN 34 // from:
  SAY #72041 /* ~~ */
  IF ~~ THEN REPLY #72042 /* ~~ */ GOTO 6
  IF ~~ THEN REPLY #72043 /* ~~ */ GOTO 6
  IF ~~ THEN REPLY #72044 /* ~~ */ GOTO 5
  IF ~~ THEN REPLY #72045 /* ~~ */ GOTO 4
END
