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

BEGIN ~ZIZIZI1~

IF ~  Global("X#TalkedToZizi","GLOBAL",1)
~ THEN BEGIN 0 // from:
  SAY #99117 /* ~Hey, magic man, wanna good time? I know spells you never heard of.~ */
  IF ~~ THEN EXIT
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
~ THEN GOTO 3
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN EXTERN ~_XZARJ~ 119
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN GOTO 2
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN EXTERN ~_XZARJ~ 118
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN GOTO 1
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN EXTERN ~_XZARJ~ 117
END

IF ~~ THEN BEGIN 1 // from: 0.5
  SAY #99119 /* ~Don't be shy, wiz. Ignorance is bad, and I'll learn you real sweetly.~ */
  IF ~~ THEN EXIT
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
~ THEN GOTO 3
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN EXTERN ~_XZARJ~ 119
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN GOTO 2
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN EXTERN ~_XZARJ~ 118
END

IF ~~ THEN BEGIN 2 // from: 1.3 0.3
  SAY #99121 /* ~Awww, itty boy scared? I'm not some big, bad scawy monster, am I?~ */
  IF ~~ THEN EXIT
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
~ THEN GOTO 3
  IF ~  InParty("xzar")
InMyArea("xzar")
!StateCheck("xzar",CD_STATE_NOTVALID)
PartyHasItem("X#XZSLIM")
~ THEN EXTERN ~_XZARJ~ 119
END

IF ~~ THEN BEGIN 3 // from: 2.1 1.1 0.1
  SAY #99123 /* ~SHRIEEEKK!!~ */
  IF ~~ THEN DO ~SetGlobal("X#TalkedToZizi","GLOBAL",2)
SetGlobal("X#SlimeCraze","GLOBAL",1)
SetGlobal("X#XzarSlime","GLOBAL",1)
ChangeEnemyAlly(Myself,EVILBUTBLUE)
ActionOverride(Myself,Polymorph(SLIME_OLIVE))
TakePartyItem("X#XZSLIM")
DestroyItem("X#XZSLIM")
~ EXIT
END
