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

BEGIN ~PPDILI~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #44186 /* ~Hello. You are new. Those your faces? Funny... ha! Maybe change them.~ [PPDILI02] */
  IF ~~ THEN REPLY #44187 /* ~What is your name, young one?~ */ GOTO 1
  IF ~~ THEN REPLY #44189 /* ~What do you mean by 'change them'? What's wrong with my face?~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #44190 /* ~I'm Dili today. Tomorrow I'll be something else. Who are you today?~ [PPDILI07] */
  IF ~~ THEN REPLY #44191 /* ~<GABBER> is my name.~ */ GOTO 2
  IF ~~ THEN REPLY #44192 /* ~Ah, maybe I'll just let you enjoy your break here.~ */ GOTO 5
END

IF ~~ THEN BEGIN 2 // from: 3.0 1.0
  SAY #44193 /* ~<GABBER>? Ok, I'll be <GABBER> tomorrow. I've seen you, so now I can take your face. Don't worry, you can keep it too.~ */
  IF ~!IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("JAHEIRA")~ THEN GOTO 4
  IF ~IsValidForPartyDialogue("MINSC")~ THEN EXTERN ~MINSCJ~ 160
  IF ~!IsValidForPartyDialogue("MINSC")
IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 457
END

IF ~~ THEN BEGIN 3 // from: 0.1
  SAY #44194 /* ~Nothing. Don't you change your face? That's okay, I'll take it and change it for you. Don't worry, you can keep it too. Who are you today?~ */
  IF ~~ THEN REPLY #44195 /* ~<GABBER> is my name.~ */ GOTO 2
  IF ~~ THEN REPLY #44196 /* ~Ah, maybe I'll just let you enjoy your break here.~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 2.0
  SAY #44197 /* ~I like taking puppy's face, but it scares him. He's not here though.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1 1.1
  SAY #44198 /* ~Shouldn't walk away from people. Harder to give your face back if I take it. I should know your name, too. I should know...~ */
  IF ~!IsValidForPartyDialogue("KORGAN")~ THEN EXIT
  IF ~IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~KORGANJ~ 121
END

IF ~~ THEN BEGIN 6 // from: PPIRENI1:11.0
  SAY #44241 /* ~Have you a new face today? I think you do. I can see the real one. Tomorrow I will be you, okay?~ [PPDILI06] */
  IF ~!IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("KELDORN")~ THEN EXTERN ~PPIRENI1~ 12
  IF ~IsValidForPartyDialogue("CERND")~ THEN EXTERN ~CERNDJ~ 102
  IF ~IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("CERND")~ THEN EXTERN ~HAERDAJ~ 103
  IF ~!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("CERND")
IsValidForPartyDialogue("KELDORN")~ THEN EXTERN ~KELDORJ~ 190
END

IF ~True()
~ THEN BEGIN 7 // from:
  SAY #53798 /* ~Oooh... this face is boring! Now I'm...~ [PPDILI08] */
  IF ~RandomNum(6,1)
~ THEN GOTO 8
  IF ~RandomNum(6,2)
~ THEN GOTO 9
  IF ~RandomNum(6,3)
~ THEN GOTO 10
  IF ~RandomNum(6,4)
~ THEN GOTO 11
  IF ~RandomNum(6,5)
~ THEN GOTO 12
  IF ~RandomNum(6,6)~ THEN GOTO 13
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #53799 /* ~A doggie! Hee hee.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Return","LOCALS",10)
CreateVisualEffectObject("SPFLESHS",Myself)
SetGlobal("Polymorph","LOCALS",1)
Polymorph(DOG_WILD)
SetName(47486)~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.1
  SAY #53800 /* ~Um... a kitty! Whee!~ */
  IF ~~ THEN DO ~SetGlobalTimer("Return","LOCALS",10)
CreateVisualEffectObject("SPFLESHS",Myself)
SetGlobal("Polymorph","LOCALS",1)
Polymorph(CAT)
SetName(47486)~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 7.2
  SAY #53801 /* ~Ah... I'm a wolf!~ */
  IF ~~ THEN DO ~SetGlobalTimer("Return","LOCALS",10)
CreateVisualEffectObject("SPFLESHS",Myself)
SetGlobal("Polymorph","LOCALS",1)
Polymorph(WOLF)
SetName(47486)~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 7.3
  SAY #53802 /* ~Ooooh, now I'm... A bear!~ */
  IF ~~ THEN DO ~SetGlobalTimer("Return","LOCALS",10)
CreateVisualEffectObject("SPFLESHS",Myself)
SetGlobal("Polymorph","LOCALS",1)
Polymorph(BEAR_BLACK)
SetName(47486)~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 7.4
  SAY #53803 /* ~Now... I'm a chicken!~ */
  IF ~~ THEN DO ~SetGlobalTimer("Return","LOCALS",10)
CreateVisualEffectObject("SPFLESHS",Myself)
SetGlobal("Polymorph","LOCALS",1)
Polymorph(CHICKEN)
SetName(47486)~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 7.5
  SAY #53804 /* ~Now... now I'm you. Hello.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Return","LOCALS",10)
CreateVisualEffectObject("SPFLESHS",Myself)
SetGlobal("Polymorph","LOCALS",1)
PolymorphCopy(LastTalkedToBy)
~ EXIT
END
