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

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

IF WEIGHT #2 /* Triggers after states #: 12 13 even though they appear after this state */
~Global("Kaishas1","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #83012 /* ~Strangers! How is it possible? You must speak with Kaishas.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 12 13 even though they appear after this state */
~Global("MaraQuest","GLOBAL",0)
Global("Kaishas1","GLOBAL",1)
Global("MaraTalk","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #83013 /* ~Hello, good people. I am Maralee. I have heard that you will fight the wolves in the old ship. Is it true?~ */
  IF ~~ THEN REPLY #83014 /* ~Aye, we will seek them out and destroy them.~ */ DO ~SetGlobal("MaraTalk","GLOBAL",1)
~ GOTO 2
  IF ~~ THEN REPLY #83015 /* ~I don't know what you're talking about. Leave me alone.~ */ DO ~SetGlobal("MaraTalk","GLOBAL",1)
~ GOTO 3
  IF ~~ THEN REPLY #83016 /* ~It is true. What business is it of yours, wench?~ */ DO ~SetGlobal("MaraTalk","GLOBAL",1)
~ GOTO 4
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #83017 /* ~Please help me, stranger, I have no one left to turn to.~ */
  IF ~~ THEN REPLY #83018 /* ~What is it, girl?~ */ GOTO 6
  IF ~~ THEN REPLY #83019 /* ~That's too bad. I'm not a brain-dead paladin to be ordered about by any pretty girl that turns my head.~ */ GOTO 3
  IF ~~ THEN REPLY #83020 /* ~I won't help you either.~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 6.1 5.1 2.1 1.1
  SAY #83021 /* ~My baby is alone out there, you heartless outsider.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #83022 /* ~Maralee's child

A young mother had some story about her child missing from the village.  She thinks the creatures outside have taken it.  I could not be bothered to help.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 10.1 8.2 1.2
  SAY #83023 /* ~I did not mean to be rude. I am just so worried about my child. I guess that you are not the people to help me.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #83022 /* ~Maralee's child

A young mother had some story about her child missing from the village.  She thinks the creatures outside have taken it.  I could not be bothered to help.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from: 6.2 2.2
  SAY #83024 /* ~Oh, cruelty! A child's life hangs on your whim.~ */
  IF ~~ THEN REPLY #83025 /* ~Explain yourself, girl. What child?~ */ GOTO 6
  IF ~~ THEN REPLY #83026 /* ~I care not. Get out of my sight.~ */ GOTO 3
END

IF WEIGHT #4 /* Triggers after states #: 12 13 even though they appear after this state */
~Global("MaraTalk","GLOBAL",1)
Global("MaraQuest","GLOBAL",0)
Global("Kaishas1","GLOBAL",1)
~ THEN BEGIN 6 // from: 5.0 2.0
  SAY #83027 /* ~My baby, they have him! You must save him! Oh, please!~ */
  IF ~~ THEN REPLY #83028 /* ~Slow down, miss, you have my attention.~ */ GOTO 7
  IF ~~ THEN REPLY #83029 /* ~Stop your sniveling, wench!~ */ GOTO 3
  IF ~~ THEN REPLY #83030 /* ~Show me some gold, and then we'll talk.~ */ GOTO 5
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #83031 /* ~It has been so hard, not knowing. Two moons ago my husband took my son out hunting with him. They were attacked by those horrible wolf-creatures. They... they killed my husband and took my baby. Kaishas says that they took the baby away to eat him but I know he's still alive.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #83032 /* ~They won't go and look for him and they stop me from leaving the village. You have to help me!~ */
  IF ~~ THEN REPLY #83033 /* ~I could never turn my back on a child who is in distress. If he is still alive I will find him.~ */ GOTO 9
  IF ~~ THEN REPLY #83035 /* ~Of course I'll help you. What does your child look like and where was he last seen?~ */ GOTO 10
  IF ~~ THEN REPLY #83036 /* ~Obviously your child is dead. It's a waste of time to go and look for him. You should listen to Kaishas.~ */ GOTO 4
END

IF ~~ THEN BEGIN 9 // from: 10.0 8.0
  SAY #83037 /* ~Thank you friends! Please bring him back to me.~ */
  IF ~~ THEN DO ~SetGlobal("MaraQuest","GLOBAL",1)
EraseJournalEntry(83022)
~ UNSOLVED_JOURNAL #83034 /* ~Maralee's child

I met a woman named Maralee in the island village.  Her child has been kidnapped by the wolf creatures on the island.  She has asked me to rescue the child.~ */ EXIT
END

IF ~~ THEN BEGIN 10 // from: 8.1
  SAY #83038 /* ~He's a beautiful little boy with dark hair like his father. He is three moons old and his name is Peladan. They took him from my husband northeast of the village, in the woods.~ */
  IF ~~ THEN REPLY #83039 /* ~Have no fear, Maralee. No cowardly monsters can keep me from the child!~ */ GOTO 9
  IF ~~ THEN REPLY #83040 /* ~You didn't say that I'd have to leave town. I'm afraid I can't help you. I'm afraid of monsters.~ */ GOTO 4
END

IF WEIGHT #5 /* Triggers after states #: 12 13 even though they appear after this state */
~Global("MaraQuest","GLOBAL",1)
Global("Kaishas1","GLOBAL",1)
Global("MaraTalk","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #83041 /* ~Please find Peladan. You are my only hope.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 /* Triggers after states #: 13 even though they appear after this state */
~PartyHasItem("_MISC96")
~ THEN BEGIN 12 // from:
  SAY #83042 /* ~My son, my son! I have missed you so much! Thank you, friends. I am forever in your debt.~ */
  IF ~~ THEN DO ~TakePartyItem("_MISC96")
SetGlobal("MaraDone","GLOBAL",1)
AddexperienceParty(4000)
EraseJournalEntry(83022)
EraseJournalEntry(83034)
EscapeArea()
~ SOLVED_JOURNAL #83043 /* ~Maralee's child

Young Maralee has her child back, and I have another friend here.  Hopefully they will be more careful in the future.~ */ EXIT
END

IF WEIGHT #0 ~Global("MaraDone","GLOBAL",1)
~ THEN BEGIN 13 // from:
  SAY #83044 /* ~My friendship is yours forever, heroes.~ */
  IF ~~ THEN EXIT
END
