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

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

IF WEIGHT #2 /* Triggers after states #: 7 8 even though they appear after this state */
~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #14903 /* ~Could you tell me if you know who the wizard is who was taken away?~ */
  IF ~~ THEN JOURNAL #15700 /* ~~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 7 8 even though they appear after this state */
~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
NumTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #14904 /* ~Could you perhaps tell me where I am?~ */
  IF ~~ THEN JOURNAL #15699 /* ~~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 7 8 even though they appear after this state */
~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
NumTimesTalkedTo(0)
~ THEN BEGIN 2 // from:
  SAY #14906 /* ~I'm a friend of the girl who was taken away with the wizard.  Do you know who took them and where they went?~ */
  IF ~~ THEN DO ~GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
~ JOURNAL #15701 /* ~Leaving the Island

After I stole the horn to open up the sea gates and a brief battle with Desharik's men, we have taken to the open sea.  I dislike being used in this fashion, although Saemon did reward me with the sword that he said he would. It is a beautiful silver and valuable-looking. I do not understand why he was so put off by it. Regardless, it will serve me well. Now hopefully there are no more surprises awaiting me on the sea.~ */ EXIT
END

IF WEIGHT #8 /* Triggers after states #: 4 5 6 7 8 even though they appear after this state */
~PartyHasItem("MISC61")
!Global("HelpLandrin","GLOBAL",3)
~ THEN BEGIN 3 // from:
  SAY #14907 /* ~Did you see much of what happened earlier?~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
GivePartyGold(75)
TakePartyItem("MISC61")
IncrementGlobal("HelpLandrin","GLOBAL",1)
~ JOURNAL #16531 /* ~Anomen returns home after his sister's death.

We received word that Anomen's sister has been murdered.  I couldn't accompany Anomen to investigate, so he has left the group and gone to his father's home in the Government District of Athkatla.~ */ EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~PartyHasItem("MISC60")
!Global("HelpLandrin","GLOBAL",3)
~ THEN BEGIN 4 // from:
  SAY #14908 /* ~I'll do as I wish.  Good day.~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
GivePartyGold(100)
TakePartyItem("MISC60")
IncrementGlobal("HelpLandrin","GLOBAL",1)
~ JOURNAL #16532 /* ~~ */ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 6 7 8 even though they appear after this state */
~PartyHasItem("BOOT06")
!Global("HelpLandrin","GLOBAL",3)
~ THEN BEGIN 5 // from:
  SAY #14909 /* ~Hmph!~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
GivePartyGold(120)
TakePartyItem("BOOT06")
IncrementGlobal("HelpLandrin","GLOBAL",1)
~ JOURNAL #16533 /* ~Vakola attempts to take revenge on Keldorn.

We encountered Keldorn's old 'friend', Vakola, again in the Sea's Bounty.  This time, it became apparent that Keldorn and Vakola were once team-members in the Order, and that Keldorn turned him in for accepting bribes.  The man's bitterness brought him and his friends to attack Keldorn and I... and now he is dead.~ */ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 7 8 even though they appear after this state */
~!NumTimesTalkedTo(0)
!PartyHasItem("MISC61")
!PartyHasItem("MISC60")
!PartyHasItem("BOOT06")
!Global("HelpLandrin","GLOBAL",3)
~ THEN BEGIN 6 // from:
  SAY #14910 /* ~Aiiieeeya!  Oh!  Ah, oh.  You startled me, please forgive me.  (shudder)~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 7 // from:
  SAY #14911 /* ~What is the problem?~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #1 ~false()~ THEN BEGIN 8 // from:
  SAY #14912 /* ~Next time watch what you're doing.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #9 ~True()
~ THEN BEGIN 9 // from:
  SAY #14913 /* ~You should try to calm down.  I'll leave you alone.~ */
  IF ~~ THEN DO ~~ EXIT
END
