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

BEGIN ~PPSIME~

IF ~~ THEN BEGIN 0 // from: PPSAEM:49.0
  SAY #43917 /* ~I shall make certain that, should we be surprised at sea, death will not come from a surprise source. Do I make myself clear?~ */
  IF ~~ THEN EXTERN ~PPSAEM~ 50
END

IF ~~ THEN BEGIN 1 // from: PPSAEM:53.0
  SAY #43923 /* ~A particular congratulations to you, captain. It was fortunate you distracted those other ships we saw in the distance. Your signals in the night; were they some type of warning?~ */
  IF ~~ THEN EXTERN ~PPSAEM~ 54
END

IF ~~ THEN BEGIN 2 // from: PPSAEM:54.0
  SAY #43925 /* ~Again, my compliments. It did seem that they truly believed your signal meant there would be trouble if they attacked.~ */
  IF ~~ THEN EXTERN ~PPSAEM~ 55
END

IF ~Global("AsylumPlot","GLOBAL",2)
Global("simespeak","LOCALS",0)~ THEN BEGIN 3 // from:
  SAY #43928 /* ~I do not trust this pirate, <CHARNAME>. His manner is that of a fool, but his behavior during the voyage betrays a cunning mind beneath.~ */
  IF ~~ THEN REPLY #43929 /* ~He has delivered us as promised. There are more important things to worry about.~ */ DO ~SetGlobal("simespeak","LOCALS",1)
SetGlobal("SaemNoBodhi","GLOBAL",1)~ GOTO 4
  IF ~~ THEN REPLY #43930 /* ~Kill him if you wish. I don't care either way.~ */ DO ~SetGlobal("simespeak","LOCALS",1)
SetGlobal("SaemNoBodhi","GLOBAL",1)~ GOTO 5
  IF ~~ THEN REPLY #43931 /* ~He seems amiable enough to me. Come, you'll feel better once off the ship.~ */ DO ~SetGlobal("simespeak","LOCALS",1)
SetGlobal("SaemNoBodhi","GLOBAL",1)~ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.2 3.0
  SAY #43932 /* ~Agreed. Be prepared, this place is dangerous enough even without my suspicions of Saemon.~ */
  IF ~~ THEN DO ~MoveToPoint([863.2422])
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1
  SAY #43933 /* ~We may need his ship for our return. No, just be on your guard. He is probably the least of our worries in this place.~ */
  IF ~~ THEN DO ~MoveToPoint([863.2422])
SaveGame(0)
~ EXIT
END

IF ~Global("AsylumPlot","GLOBAL",5)~ THEN BEGIN 6 // from:
  SAY #43940 /* ~I knew he would prove treacherous. Our threats were sufficient to keep us safe while afloat, but there must be someone here that he fears even more.~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Anomen")~ THEN DO ~SetGlobal("AsylumPlot","GLOBAL",6)~ GOTO 7
  IF ~IsValidForPartyDialog("Jaheira")~ THEN DO ~SetGlobal("AsylumPlot","GLOBAL",6)~ EXTERN ~JAHEIRAJ~ 456
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Viconia")~ THEN DO ~SetGlobal("AsylumPlot","GLOBAL",6)~ EXTERN ~VICONIJ~ 125
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Anomen")~ THEN DO ~SetGlobal("AsylumPlot","GLOBAL",6)~ EXTERN ~ANOMENJ~ 262
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #43941 /* ~Certainly this was Bodhi's doing. These creatures would not have followed Saemon of their own will. His weakness would disgust them.~ */
  IF ~~ THEN REPLY #43942 /* ~Unfortunately he fled the battle. I shall be sure to repay him if I see him again.~ */ GOTO 8
  IF ~~ THEN REPLY #43943 /* ~We should find him, track him to his lair! He has earned his death from this!~ */ GOTO 8
  IF ~~ THEN REPLY #43944 /* ~Forget him. I have no fear of him or any scheme he might come up with.~ */ GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.2 7.1 7.0
  SAY #43945 /* ~There are more important things to worry about right now, anyway. I must see that you are able to enter the asylum.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #43946 /* ~Go to the tavern. Speak with a man named Sanik. If there is a way in to the asylum, he will know it.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #43947 /* ~I will scout around a bit and meet you at the pass leading to the asylum itself. Work with haste, <CHARNAME>. Our enemies know we are here.~ */
  IF ~~ THEN DO ~//MoveToPointNoInterrupt([3481.126])
ForceSpellPoint([3481.126],WIZARD_DIMENSION_DOOR)
~ UNSOLVED_JOURNAL #10106 /* ~Getting Inside the Asylum

With the vampires defeated and Saemon fled, Sime said that Bodhi was probably behind the pirate's treachery.  I must work quickly to gain access to the asylum.  Sime said to go to the local tavern and speak to a man named Sanik.  She, meanwhile, would scout around and meet me at the pass leading to the asylum itself.~ */ EXIT
END

IF ~GlobalGT("AsylumPlot","GLOBAL",5)~ THEN BEGIN 11 // from:
  SAY #43948 /* ~How goes your search, <CHARNAME>? Have you found means to enter the building yet?~ */
  IF ~~ THEN REPLY #43949 /* ~The search has not gone well. I do not know how to get inside.~ */ GOTO 12
  IF ~Global("SpokeSanik","GLOBAL",1)
Global("PoorThief","GLOBAL",0)~ THEN REPLY #43950 /* ~Sanik refused to speak without payment. I cannot afford his price.~ */ DO ~SetGlobal("PoorThief","GLOBAL",1)~ GOTO 14
  IF ~Global("SavedClaire","GLOBAL",2)
!PartyHasItem("misc8v")~ THEN REPLY #43951 /* ~I believe so.  A man named Golin gave me a couple of options.~ */ GOTO 17
  IF ~PartyHasItem("misc8v")~ THEN REPLY #43952 /* ~I have a ward token that will unlock the gates.~ */ GOTO 18
  IF ~Global("PoorThief","GLOBAL",1)
!PartyHasItem("misc8v")
Global("SpokeSanik","GLOBAL",1)~ THEN REPLY #43955 /* ~Sanik refused to speak without payment. I cannot afford his price.~ */ GOTO 15
  IF ~Dead("ppsanik")
!Global("SavedClaire","GLOBAL",2)
!PartyHasItem("misc8v")~ THEN REPLY #55361 /* ~Sanik was killed before he could tell me how to get inside!~ */ GOTO 19
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #43953 /* ~I have not learned much either. Go to Sanik and speak with him. He will have some information, I am sure.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #43954 /* ~I would go myself, but I am... known to some of these people. Our stay would be short if I were recognized.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from: 11.1
  SAY #43956 /* ~Always did have a mercenary's heart. I probably helped him cut it out. Nevertheless, here. Take this. It should be enough to pay him off.~ */
  IF ~~ THEN DO ~GivePartyGold(500)~ EXIT
END

IF ~~ THEN BEGIN 15 // from: 11.4
  SAY #43957 /* ~Oh no, you've already told me this. I gave you more than enough to pay him off. That was out of my own pocket, too.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #43958 /* ~No, you go and pay him or find some other means to enter this place. I can't help you much more than that. Try the Cowled Wizard or some such.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 17 // from: 11.2
  SAY #43959 /* ~Then act on them. Your entry is in there somewhere.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 18 // from: 11.3
  SAY #43960 /* ~Then get going. I'll try and get a message to Aran about what has happened. Perhaps we can get some help now that the way is clear.~ */
  IF ~~ THEN DO ~EscapeArea()~ UNSOLVED_JOURNAL #11661 /* ~Getting Inside the Asylum

Now that I have the wardstone to enter the asylum, Sime has left to send a message to Aran Linvail.  She hopes that we can get some help from the Shadow Thieves now that the way into the asylum is clear.~ */ EXIT
END

IF ~~ THEN BEGIN 19 // from: 11.5
  SAY #55362 /* ~Well, perhaps he told someone what he knew.  There must be someone who can tell you how to get within... find them, for I knew nothing beyond Sanik, himself.~ */
  IF ~~ THEN EXIT
END

IF ~GlobalLT("AsylumPlot","GLOBAL",5)
Global("simespeak","LOCALS",1)~ THEN BEGIN 20 // from:
  SAY #61446 /* ~Saemon looks nervous. Find out what he wants.~ */
  IF ~~ THEN EXIT
END
