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

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

IF WEIGHT #2 /* Triggers after states #: 13 14 even though they appear after this state */
~InPartySlot(LastTalkedToBy,0)
Gender(LastTalkedToBy,MALE)
Global("Projob","GLOBAL",0)
!Dead("gromnir")
~ THEN BEGIN 0 // from:
  SAY #71254 /* ~Uh... hey, mister... uh... are you... uh... you looking for... uh... you looking for a good time?~ */
  IF ~~ THEN GOTO 2
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERD25J~ 14
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIA25J~ 11
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDO25J~ 11
END

IF WEIGHT #3 /* Triggers after states #: 13 14 even though they appear after this state */
~InPartySlot(LastTalkedToBy,0)
Gender(LastTalkedToBy,FEMALE)
Global("Projob","GLOBAL",0)
!Dead("gromnir")~ THEN BEGIN 1 // from:
  SAY #71258 /* ~Uh... hey, lady... you know any guys who are... uh... you know any guys who want a good time?~ */
  IF ~~ THEN GOTO 2
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERD25J~ 14
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIA25J~ 11
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDO25J~ 11
END

IF ~~ THEN BEGIN 2 // from: 1.0 0.0
  SAY #71259 /* ~Uh... what I mean is... um... you know... I'm just saying that...~ */
  IF ~~ THEN REPLY #71260 /* ~You haven't done this before, have you?~ */ GOTO 3
  IF ~~ THEN REPLY #71261 /* ~Is something the matter?  You seem nervous.~ */ GOTO 3
  IF ~~ THEN REPLY #71262 /* ~How much?~ */ GOTO 11
END

IF ~~ THEN BEGIN 3 // from: 13.1 13.0 11.2 11.1 2.1 2.0
  SAY #71263 /* ~Oh... oh... I'm sorry!   I'm not a... I just... I just didn't know how else to get your attention.~ */
  IF ~~ THEN DO ~SetGlobal("Projob","GLOBAL",1)~ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #71264 /* ~I saw you talking to Melissan.  I heard her say you were trying to find Gromnir.  Please... he had my parents murdered - I want someone to kill that bastard!~ */
  IF ~~ THEN REPLY #71265 /* ~I'll do what I can.~ */ GOTO 5
  IF ~~ THEN REPLY #71266 /* ~You and everyone else!  Get out of here - I don't have time for this!~ */ GOTO 15
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #71267 /* ~You... you will?  Oh, nothing would make me happier!  But... how will you get inside the castle?~ */
  IF ~~ THEN REPLY #71268 /* ~I don't know.  Do you know of a way in?~ */ GOTO 6
  IF ~~ THEN REPLY #71269 /* ~I'll find a way...~ */ GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #71270 /* ~No.  I wish I did.  There's some people that say that the old prison underground leads to the castle.  But they're all sealed up, now, just like the sewers.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #71271 /* ~I heard that some of the army outside the walls tried to sneak in that way, and that's why Gromnir had everything sealed up.  I... I wouldn't know how to get down there at all...~ */
  IF ~~ THEN REPLY #71272 /* ~Well, I'll find a way in, somehow.~ */ GOTO 8
  IF ~~ THEN REPLY #71273 /* ~Don't worry... I'll avenge your parents' death, somehow.~ */ GOTO 8
  IF ~~ THEN REPLY #71274 /* ~If you didn't know how to get inside, then why did you bother me?!~ */ GOTO 15
END

IF WEIGHT #4 /* Triggers after states #: 13 14 even though they appear after this state */
~Global("Projob","GLOBAL",1)
!Dead("gromnir")~ THEN BEGIN 8 // from: 7.1 7.0 5.1
  SAY #71275 /* ~That Gromnir killed my parents... he deserves to die!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 13 14 even though they appear after this state */
~Dead("gromnir")~ THEN BEGIN 9 // from:
  SAY #71276 /* ~Everyone's talking about how you killed Gromnir!  And now they say you're going to save the whole town!~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #71277 /* ~I thought we were all doomed... I just wanted to see Gromnir pay for what he did to my parents before I died.  But now you're going to save us all!  Thank you, <GABBER>... thank you!~ */
  IF ~~ THEN DO ~AddXP2DA("PLOT27A")
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 2.2
  SAY #71298 /* ~How much?  Oh... uh... a hundred gold, I guess?~ */
  IF ~Gender(LastTalkedToBy,MALE)
!Global("AerieRomanceActive","GLOBAL",2)
!Global("JaheiraRomanceActive","GLOBAL",2)
!Global("ViconiaRomanceActive","GLOBAL",2)
~ THEN REPLY #71299 /* ~That sounds reasonable.  You've got a deal!~ */ GOTO 12
  IF ~~ THEN REPLY #71300 /* ~One hundred? Don't you think that's a little high?~ */ GOTO 3
  IF ~~ THEN REPLY #71301 /* ~You seem a little unsure.  I don't think you're cut out for this business.~ */ GOTO 3
  IF ~Global("AerieRomanceActive","GLOBAL",2)
IsValidForPartyDialogue("Aerie")~ THEN REPLY #71331 /* ~That sounds reasonable.  You've got a deal.~ */ EXTERN ~AERIE25J~ 28
  IF ~Global("JaheiraRomanceActive","GLOBAL",2)
IsValidForPartyDialogue("Jaheira")~ THEN REPLY #71332 /* ~That sounds reasonable.~ */ EXTERN ~JAHEI25J~ 34
  IF ~Global("ViconiaRomanceActive","GLOBAL",2)
IsValidForPartyDialogue("Viconia")~ THEN REPLY #71333 /* ~That sounds reasonable.  You've got a deal.~ */ EXTERN ~VICON25J~ 29
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #71302 /* ~Uh... okay... come with me.~ */
  IF ~~ THEN DO ~TakePartyGold(100)
SetGlobal("ProScore","GLOBAL",1)
FadeToColor ([20.0],0)
Wait(2)
FadeFromColor([20.0),0]

StartDialogNoSet(Player1)~ EXIT
END

IF WEIGHT #0 ~Global("ProScore","GLOBAL",1)~ THEN BEGIN 13 // from:
  SAY #71303 /* ~How... how was it?~ */
  IF ~~ THEN REPLY #71304 /* ~That's a strange question for a prostitute to ask.~ */ DO ~SetGlobal("ProScore","GLOBAL",2)~ GOTO 3
  IF ~~ THEN REPLY #71305 /* ~Terrible!  I want my money back!~ */ DO ~SetGlobal("ProScore","GLOBAL",2)~ GOTO 3
END

IF WEIGHT #1 ~Global("Projob","GLOBAL",0)
!InPartySlot(LastTalkedToBy,0)
!Dead("gromnir")~ THEN BEGIN 14 // from:
  SAY #71336 /* ~Uh... actually, I want to speak to your leader.  The one Melissan called <CHARNAME>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 15 // from: 7.2 4.1
  SAY #71714 /* ~I... I'm sorry!  (sniff!)  I'm sorry, I'm just trying to do what I can!~ */
  IF ~~ THEN DO ~ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END
