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

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

IF WEIGHT #1 /* Triggers after states #: 5 even though they appear after this state */
~Global("ppinntalk","AR1602",0)
!Global("SpawnAssasin","ar1602",2)~ THEN BEGIN 0 // from:
  SAY #47539 /* ~What do you be wanting here, hmm? This ain't the friendliest place for strangers to be walking about.~ */
  IF ~~ THEN REPLY #47540 /* ~Sorry to have bothered you. I'll be leaving now.~ */ DO ~SetGlobal("ppinntalk","AR1602",1)~ GOTO 2
  IF ~~ THEN REPLY #47541 /* ~I've coin in my purse and a will to spend it. Are you going to turn me away?~ */ DO ~SetGlobal("ppinntalk","AR1602",1)~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #47542 /* ~Not at all, not at all. There may be unfriendly faces around, but a paying customer is always welcome here.~ */
  IF ~~ THEN DO ~StartStore("ppinn01",LastTalkedToBy())~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 3.0 0.0
  SAY #47543 /* ~Step lively then. I've no interest in dawdling with you.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 5 even though they appear after this state */
~Global("ppinntalk","AR1602",1)
!Global("SpawnAssasin","ar1602",2)~ THEN BEGIN 3 // from:
  SAY #47544 /* ~You looking for a place to stay or are you just taking up space? I'm a busy man, you know.~ */
  IF ~~ THEN REPLY #47546 /* ~Sorry for bothering you. I'll be leaving.~ */ GOTO 2
  IF ~~ THEN REPLY #47547 /* ~I'm not here to waste your time. Let me see your services.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.1
  SAY #47548 /* ~Right you are. Forgive my rudeness, but I usually have to give dawdlers the rush out of here.~ */
  IF ~~ THEN DO ~StartStore("ppinn01",LastTalkedToBy())~ EXIT
END

IF WEIGHT #0 ~Global("SpawnAssasin","ar1602",2)~ THEN BEGIN 5 // from:
  SAY #53594 /* ~By Umberlee's teat! Who does Galvena think she is? Assassinations in the Vulgar Monkey! That uppity wench!~ */
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Mazzy")~ THEN REPLY #53595 /* ~Innkeep! You seem to know something of this. Why has this man been killed?~ */ DO ~SetGlobal("SpawnAssasin","ar1602",3)
SetGlobal("SanikPlot","GLOBAL",1)~ GOTO 6
  IF ~IsValidForPartyDialog("Valygar")~ THEN DO ~SetGlobal("SpawnAssasin","ar1602",3)
SetGlobal("SanikPlot","GLOBAL",1)~ EXTERN ~VALYGARJ~ 80
  IF ~!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Edwin")~ THEN DO ~SetGlobal("SpawnAssasin","ar1602",3)
SetGlobal("SanikPlot","GLOBAL",1)~ EXTERN ~EDWINJ~ 102
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Mazzy")~ THEN DO ~SetGlobal("SpawnAssasin","ar1602",3)
SetGlobal("SanikPlot","GLOBAL",1)~ EXTERN ~MAZZYJ~ 169
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #53597 /* ~Huh? What do you care? You've only just met him.~ */
  IF ~~ THEN REPLY #53598 /* ~That is my business. Who was the assassin and why did he perform this foul deed?~ */ GOTO 7
  IF ~~ THEN REPLY #53599 /* ~I have need of information that only he could have given me. Tell me what you know!~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.1 6.0
  SAY #53600 /* ~Aye, if only to teach the woman to keep her affairs out of my tavern, I will tell you what I know.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #53603 /* ~The assassin was sent by Lady Galvena, the mistress of the local Courtesan's Guild. You can see how, in a port full of sailors, such an undertaking would bring the woman power and wealth.~ */
  IF ~~ THEN REPLY #53607 /* ~So much is obvious. What disagreement did she have with Sanik?~ */ UNSOLVED_JOURNAL #10107 /* ~Getting Inside the Asylum

The barkeep at the Vulgar Monkey told me that the assassin who killed Sanik was sent by Lady Galvena, the mistress of the local Courtesan's Guild and a woman of power and wealth in Brynnlaw.~ */ GOTO 11
  IF ~~ THEN REPLY #53610 /* ~You have told all that I wish to know.~ */ UNSOLVED_JOURNAL #10107 /* ~Getting Inside the Asylum

The barkeep at the Vulgar Monkey told me that the assassin who killed Sanik was sent by Lady Galvena, the mistress of the local Courtesan's Guild and a woman of power and wealth in Brynnlaw.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.1
  SAY #53611 /* ~Eh? That tale has barely begun.~ */
  IF ~~ THEN REPLY #53612 /* ~Still, that is all that I wish to hear.~ */ GOTO 10
  IF ~~ THEN REPLY #53614 /* ~In that case, please continue.~ */ GOTO 11
END

IF ~~ THEN BEGIN 10 // from: 17.1 15.1 9.0
  SAY #53616 /* ~As you like.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: 9.1 8.0
  SAY #53618 /* ~Sanik, the fool, fell in love with one of Galvena's girls, Claire, and she with him. He took her from the guildhouse and proclaimed her his wife.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #53621 /* ~Galvena is a harsh woman. She considers the courtesans her property. She accused Sanik of theft and he scorned her in public. The whole town knows of it.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #53624 /* ~This, then, was Galvena's reply. I suspect that the girl Claire suffers even as we speak.~ */
  IF ~~ THEN REPLY #53625 /* ~Truly, an injustice has been performed. Where is this girl, Claire?~ */ GOTO 14
  IF ~~ THEN REPLY #53627 /* ~Sanik was my contact in Brynnlaw. Who else could tell me how to get into the Asylum?~ */ GOTO 15
END

IF ~~ THEN BEGIN 14 // from: 15.0 13.0
  SAY #53629 /* ~The Guild has a house on the west side of Brynnlaw. Customers who pay well can conduct their 'business' in a bedroom within the Guildhouse. I suspect that Galvena has already taken the girl there to be punished.~ */
  IF ~~ THEN REPLY #53631 /* ~Is the place guarded? How would I enter?~ */ UNSOLVED_JOURNAL #15698 /* ~Getting Inside the Asylum

The courtesans are located in a Guildhouse on the west side of Brynnlaw... where the courtesans take their customers and where Claire is also likely to be held.~ */ GOTO 16
  IF ~~ THEN REPLY #53632 /* ~Is there anyone else who could tell me how to get into Spellhold, the asylum?~ */ UNSOLVED_JOURNAL #15698 /* ~Getting Inside the Asylum

The courtesans are located in a Guildhouse on the west side of Brynnlaw... where the courtesans take their customers and where Claire is also likely to be held.~ */ GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 17.0 14.1 13.1
  SAY #53635 /* ~If you're sure that Sanik knew how then perhaps he told his young bride. I don't see how you can ask her, though.~ */
  IF ~~ THEN REPLY #53637 /* ~Where would they have taken her?~ */ UNSOLVED_JOURNAL #15703 /* ~Getting Inside the Asylum

The barkeep intimated that Sanik might have told what he knew to the woman he intended to take from Galvena's and marry, Claire... although she likely remains within Lady Galvena's clutches.  I would have to find her to ask any questions of her, no doubt.~ */ GOTO 14
  IF ~~ THEN REPLY #53639 /* ~I thank you for your assistance. I shall leave.~ */ UNSOLVED_JOURNAL #15703 /* ~Getting Inside the Asylum

The barkeep intimated that Sanik might have told what he knew to the woman he intended to take from Galvena's and marry, Claire... although she likely remains within Lady Galvena's clutches.  I would have to find her to ask any questions of her, no doubt.~ */ GOTO 10
END

IF ~~ THEN BEGIN 16 // from: 14.0
  SAY #53643 /* ~You could get in as everyone else does. As a paying customer. Galvena keeps both male and female courtesans for either taste.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #53644 /* ~Failing that, you would have to kill several well-trained guards. I also hear that Galvena keeps a pet wizard. Either way is foolish, in my opinion.~ */
  IF ~~ THEN REPLY #53645 /* ~Is there anyone else that could tell me how to get into the Spellhold Asylum?~ */ UNSOLVED_JOURNAL #11904 /* ~Getting Inside the Asylum

The barkeep at the Vulgar Monkey suggested that the only way to get inside the courtesans' Guildhouse would be to employ one of their courtesans or to go up against Galvena's well-trained guards and pet wizard.  My choice.~ */ GOTO 15
  IF ~~ THEN REPLY #53647 /* ~I thank you for your help. I shall leave.~ */ UNSOLVED_JOURNAL #11904 /* ~Getting Inside the Asylum

The barkeep at the Vulgar Monkey suggested that the only way to get inside the courtesans' Guildhouse would be to employ one of their courtesans or to go up against Galvena's well-trained guards and pet wizard.  My choice.~ */ GOTO 10
END
