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

BEGIN ~MAJAN~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #0 ~InParty("Jan")
Detect("Jan")
Global("JanLissaPlot","GLOBAL",6)
~ THEN BEGIN 0 // from:
  SAY #1955 /* ~It is good to see you, Jan. You don't stop to see your old mother anymore. I have to send your no-good cousins out to find you.~ */
  IF ~~ THEN EXTERN ~JANJ~ 28
END

IF ~~ THEN BEGIN 1 // from: JANJ:28.0
  SAY #1956 /* ~Not so demanding as your own mother, boy. You've been in trouble, I suppose.~ */
  IF ~~ THEN EXTERN ~JANJ~ 29
END

IF ~~ THEN BEGIN 2 // from: JANJ:29.0
  SAY #1957 /* ~Hmph! If you say so.~ */
  IF ~~ THEN EXTERN ~JANJ~ 30
END

IF ~~ THEN BEGIN 3 // from: JANJ:30.0
  SAY #1958 /* ~Lissa has been staying with us for awhile. Her daughter, too. We just thought that you might want to know. She does seem to need your help, with her parents passed on and all.~ */
  IF ~~ THEN EXTERN ~JANJ~ 31
END

IF ~~ THEN BEGIN 4 // from: JANJ:31.0
  SAY #1959 /* ~Lissa's not hurt. It's the little girl. I gave them your old room. The girl is sick and Lissa is with her. Why don't you go and talk to her. She's been waiting for you.~ */
  IF ~~ THEN EXTERN ~JANJ~ 32
END

IF WEIGHT #2 /* Triggers after states #: 9 even though they appear after this state */
~Global("JanLissaPlot","GLOBAL",10)
Global("JanPissed","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #2116 /* ~Well done, friends of Jan. You found a way to cure the poor girl.~ */
  IF ~~ THEN REPLY #34490 /* ~I'm glad it worked.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0 JAN2:16.0
  SAY #2117 /* ~It did. She's recovered and is acting like a child again, playing with Tat and the kitty. Go upstairs and see Jan.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 9 even though they appear after this state */
~!InParty("Jan")
~ THEN BEGIN 7 // from: JAN2:17.0
  SAY #22192 /* ~You must be friends of Jan, garbed as you are with all that armor and such. If he's not here you might catch him in the Government District selling turnips. He might even be downstairs in the garden.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 9 even though they appear after this state */
~InParty("Jan")
~ THEN BEGIN 8 // from: JAN2:18.0
  SAY #22196 /* ~Ah, Jan and his friends have come to visit. Welcome to our humble home!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~OR(2)
Global("JanLissaPlot","GLOBAL",7)
Global("JanLissaPlot","GLOBAL",8)
~ THEN BEGIN 9 // from:
  SAY #37487 /* ~I'm glad to hear that you're helping poor Jan.~ */
  IF ~~ THEN EXIT
END
