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

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

IF WEIGHT #1 /* Triggers after states #: 9 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #76378 /* ~Hello.  Could you please be very quiet.  My mother is asleep, and I don't wish to wake her.  What is it that you need?~ */
  IF ~~ THEN REPLY #76379 /* ~We don't need anything, sorry for bothering you.~ */ EXIT
  IF ~~ THEN REPLY #76380 /* ~We want all of your money, give it to us or die.~ */ GOTO 1
  IF ~Global("HelpNashkellWoman","GLOBAL",0)
~ THEN REPLY #76381 /* ~Do you have any information about the problems in the town mine?~ */ GOTO 2
  IF ~Global("X#AjantisWomanNashkell0","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AjantisWomanNashkell0","GLOBAL",1)~ EXTERN ~_AJANTJ~ 82
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #76382 /* ~What!?!  Okay, take everything. 'sob'... There's nothing I can do against armed men.~ */
  IF ~~ THEN DO ~ReputationInc(-1)
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.2
  SAY #76383 /* ~All I know about the mines are that men keep on disappearing in its hellish depths.  My husband is one of the miners, but he hasn't been home for weeks.~ */
  IF ~~ THEN REPLY #76384 /* ~Thanks.~ */ UNSOLVED_JOURNAL #76385 /* ~Troubles in the region

A woman told us that her husband disappeared in the Nashkel mines.~ */ EXIT
  IF ~~ THEN REPLY #76386 /* ~Maybe we could help you.  We're thinking of exploring the mines.  Describe your husband for us, maybe we'll see him.~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 12.0 2.1
  SAY #76387 /* ~He's got black hair, blue eyes... oh, damn, you'll never find him from that description.  His name is Joseph, and he wears his wedding ring on his left hand.  It's a greenstone ring.~ */
  IF ~~ THEN DO ~SetGlobal("HelpNashkellWoman","GLOBAL",1)
~ UNSOLVED_JOURNAL #76388 /* ~Joseph's wife

We told a young woman in Nashkel that we'd try to find her husband, who has disappeared in the city's adjoining mines.  His name is Joseph, and he wears a greenstone ring.~ */ EXIT
  IF ~Global("X#AjantisWomanNashkell3","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AjantisWomanNashkell3","GLOBAL",1)~ EXTERN ~_AJANTJ~ 83
END

IF WEIGHT #2 /* Triggers after states #: 9 even though they appear after this state */
~Global("HelpNashkellWoman","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #76389 /* ~You're back!!  What happened!  Did you find Joseph!~ */
  IF ~~ THEN REPLY #76390 /* ~Sorry, we found nothing.~ */ GOTO 5
  IF ~PartyHasItem("_RINGJOS")
~ THEN REPLY #76391 /* ~We found his Greenstone ring, but I'm afraid we think he's dead.~ */ GOTO 6
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #76392 /* ~That's, that's... too bad.  I'm sorry about bothering you.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AjantisWomanNashkell5","GLOBAL",0)
PartyHasItem("_RINGJOS")
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AjantisWomanNashkell5","GLOBAL",1)~ EXTERN ~_AJANTJ~ 84
END

IF ~~ THEN BEGIN 6 // from: 4.1
  SAY #76393 /* ~He's... he's dead.  My Joseph is dead.~ */
  IF ~~ THEN REPLY #76394 /* ~Yup, and we're taking his ring as payment for telling you the bad news.  Bye now.~ */ GOTO 7
  IF ~~ THEN REPLY #76395 /* ~We're very sorry for your pain.  Here, have his ring to remember him with.~ */ DO ~TakePartyItem("_RINGJOS")
~ GOTO 8
  IF ~Global("X#FTOWN26","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#FTOWN26","GLOBAL",1)~ GOTO 13
  IF ~Global("X#FTOWN26","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#FTOWN26","GLOBAL",1)~ EXTERN ~_XANJ~ 286
  IF ~Global("X#FTOWN26","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#FTOWN26","GLOBAL",1)~ GOTO 15
  IF ~Global("X#FTOWN26","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#FTOWN26","GLOBAL",1)~ EXTERN ~_KIVANJ~ 405
END

IF ~~ THEN BEGIN 7 // from: _KIVANJ:405.0 18.0 17.0 16.0 15.0 14.0 13.0 6.0
  SAY #76396 /* ~You bastards, get out of my house.  GET OUT!!!~ */
  IF ~~ THEN DO ~SetGlobal("HelpNashkellWoman","GLOBAL",2)
EraseJournalEntry(76388)
~ SOLVED_JOURNAL #88906 /* ~Joseph's wife

We found Joseph's corpse in the mines, and delivered news of his fate to his wife.~ */ EXIT
  IF ~Global("X#AjantisWomanNashkell7","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AjantisWomanNashkell7","GLOBAL",1)~ EXTERN ~_AJANTJ~ 86
END

IF ~~ THEN BEGIN 8 // from: _KIVANJ:405.1 18.1 17.1 16.1 15.1 14.1 13.1 6.1
  SAY #76397 /* ~Thank... you.  Thank you for bringing me the news.~ */
  IF ~~ THEN DO ~AddexperienceParty(800)
SetGlobal("HelpNashkellWoman","GLOBAL",2)
EraseJournalEntry(76388)
~ SOLVED_JOURNAL #88906 /* ~Joseph's wife

We found Joseph's corpse in the mines, and delivered news of his fate to his wife.~ */ EXIT
  IF ~Global("X#AjantisWomanNashkell8","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AjantisWomanNashkell8","GLOBAL",1)~ EXTERN ~_AJANTJ~ 98
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #76110 /* ~I'm just a naive girl.  I don't know hardly anything.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #76111 /* ~I'll not speak a word after what you did!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~True()
~ THEN BEGIN 11 // from:
  SAY #76398 /* ~Please do not bother me.  I am mourning the loss of my husband.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #99479 /* ~Such kind words from a stranger! Maybe you could... it is only, that... My husband works in the mines, and he hasn't come home for weeks now. Every day, there are men going missing down there, and I am very worried...~ */
  IF ~~ THEN REPLY #99480 /* ~Maybe we could help you. We are going to investigate the mines. Give us a description of your husband, maybe we'll see him down there.~ */ GOTO 3
  IF ~~ THEN REPLY #99481 /* ~Sad. We have to go now.~ */ EXIT
END

IF ~~ THEN BEGIN 13 // from: 6.2
  SAY #103686 /* ~*She wipes her tears with an edge of her apron.* You poor soul.~ */
  IF ~~ THEN REPLY #76394 /* ~Yup, and we're taking his ring as payment for telling you the bad news.  Bye now.~ */ GOTO 7
  IF ~~ THEN REPLY #76395 /* ~We're very sorry for your pain.  Here, have his ring to remember him with.~ */ DO ~TakePartyItem("_RINGJOS")
~ GOTO 8
END

IF ~~ THEN BEGIN 14 // from:
  SAY #103686 /* ~*She wipes her tears with an edge of her apron.* You poor soul.~ */
  IF ~~ THEN REPLY #76394 /* ~Yup, and we're taking his ring as payment for telling you the bad news.  Bye now.~ */ GOTO 7
  IF ~~ THEN REPLY #76395 /* ~We're very sorry for your pain.  Here, have his ring to remember him with.~ */ DO ~TakePartyItem("_RINGJOS")
~ GOTO 8
END

IF ~~ THEN BEGIN 15 // from: 6.4
  SAY #103684 /* ~*sob*~ */
  IF ~~ THEN REPLY #76394 /* ~Yup, and we're taking his ring as payment for telling you the bad news.  Bye now.~ */ GOTO 7
  IF ~~ THEN REPLY #76395 /* ~We're very sorry for your pain.  Here, have his ring to remember him with.~ */ DO ~TakePartyItem("_RINGJOS")
~ GOTO 8
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN GOTO 16
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~_XANJ~ 287
END

IF ~~ THEN BEGIN 16 // from: 15.2
  SAY #103686 /* ~*She wipes her tears with an edge of her apron.* You poor soul.~ */
  IF ~~ THEN REPLY #76394 /* ~Yup, and we're taking his ring as payment for telling you the bad news.  Bye now.~ */ GOTO 7
  IF ~~ THEN REPLY #76395 /* ~We're very sorry for your pain.  Here, have his ring to remember him with.~ */ DO ~TakePartyItem("_RINGJOS")
~ GOTO 8
END

IF ~~ THEN BEGIN 17 // from: _KIVANJ:405.4
  SAY #103684 /* ~*sob*~ */
  IF ~~ THEN REPLY #76394 /* ~Yup, and we're taking his ring as payment for telling you the bad news.  Bye now.~ */ GOTO 7
  IF ~~ THEN REPLY #76395 /* ~We're very sorry for your pain.  Here, have his ring to remember him with.~ */ DO ~TakePartyItem("_RINGJOS")
~ GOTO 8
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN GOTO 18
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~_XANJ~ 288
END

IF ~~ THEN BEGIN 18 // from: _KIVANJ:405.2 17.2
  SAY #103686 /* ~*She wipes her tears with an edge of her apron.* You poor soul.~ */
  IF ~~ THEN REPLY #76394 /* ~Yup, and we're taking his ring as payment for telling you the bad news.  Bye now.~ */ GOTO 7
  IF ~~ THEN REPLY #76395 /* ~We're very sorry for your pain.  Here, have his ring to remember him with.~ */ DO ~TakePartyItem("_RINGJOS")
~ GOTO 8
END
