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

BEGIN ~PIRCOR05~ 2 // non-zero flags may indicate non-pausing dialogue

IF ~Global("GalvenaHostile","GLOBAL",0)
PartyHasItem("miscAN")
NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #54292 /* ~Hmph. Who in the hells do you think you are? This is my kitchen! Festhall or not I take pride in my job.~ */
  IF ~~ THEN EXTERN ~PIRCOR06~ 0
END

IF ~~ THEN BEGIN 1 // from: PIRCOR06:0.0
  SAY #54302 /* ~It just means more work for me, girl.~ */
  IF ~~ THEN REPLY #54308 /* ~Madam, I assume that you must be the cook of whom all of the guards sing praises.~ */ GOTO 7
  IF ~~ THEN REPLY #54310 /* ~Clearly I am not wanted. I shall leave.~ */ GOTO 6
  IF ~PartyHasItem("miscAS")
CheckStatLT(LastTalkedToBy,15,CHR)~ THEN REPLY #54311 /* ~I must be abrupt for there are things that I must attend to. I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 4
  IF ~PartyHasItem("miscAS")
CheckStatGT(LastTalkedToBy,14,CHR)~ THEN REPLY #54313 /* ~I must be abrupt for there are things that I must attend to. I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 2
END

IF ~OR(2)
Global("GalvenaHostile","GLOBAL",1)
!PartyHasItem("miscAN")
NumTimesTalkedTo(0)~ THEN BEGIN 2 // from:
  SAY #54304 /* ~How did you get in here?!? GUARDS!~ */
  IF ~~ THEN EXTERN ~PIRCOR06~ 1
END

IF ~~ THEN BEGIN 3 // from: PIRCOR06:4.0 PIRCOR06:2.0
  SAY #54316 /* ~Quiet you! Make yourself useful and peel some potatoes.~ */
  IF ~~ THEN EXTERN ~PIRCOR06~ 3
END

IF ~Global("MovedCook","GLOBAL",1)
Global("SleepingPotionPlot","GLOBAL",0)
!Dead("pirmur01")~ THEN BEGIN 4 // from:
  SAY #54323 /* ~Now, what in the blazes are you blathering about? Even if you're joking, Galvena will have your tongue if she hears about this.~ */
  IF ~~ THEN REPLY #54324 /* ~She'll hear about it just in time to die. Will you cooperate?~ */ GOTO 5
  IF ~~ THEN REPLY #54325 /* ~Forget that I said anything.~ */ GOTO 6
  IF ~~ THEN REPLY #54326 /* ~I am here to find a girl called Claire. I am under the impression that Galvena holds her captive somewhere within. I need your help to free her.~ */ GOTO 9
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #54327 /* ~This is very dangerous but it may be our only chance. But no, I cannot agree until you tell me what you intend to do.~ */
  IF ~~ THEN REPLY #54328 /* ~I am here to find a girl called Claire. I am under the impression that Galvena holds her captive somewhere within. I need your help to free her.~ */ GOTO 9
  IF ~~ THEN REPLY #54329 /* ~Forget that I said anything.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 20.1 16.1 13.1 11.2 10.1 9.1 8.2 7.1 5.1 4.1 1.1
  SAY #54330 /* ~Fine. Just leave me be.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToEllie","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 20.0 1.0
  SAY #54354 /* ~Those smelly sellswords? I hardly think that they would say such about me. They have no respect for anyone other than the Lady Galvena, fearsome wench that she is.~ */
  IF ~~ THEN REPLY #54359 /* ~I assume that you are not fond of either the guards nor Lady Galvena.~ */ GOTO 8
  IF ~~ THEN REPLY #54360 /* ~Excuse me. I must go.~ */ GOTO 6
  IF ~PartyHasItem("miscAS")
CheckStatGT(LastTalkedToBy,14,CHR)~ THEN REPLY #54362 /* ~I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 2
  IF ~PartyHasItem("miscAS")
CheckStatLT(LastTalkedToBy,15,CHR)~ THEN REPLY #54363 /* ~I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 4
  IF ~~ THEN REPLY #54371 /* ~I am looking for girl named Claire. Do you know where I might find her?~ */ GOTO 9
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #54364 /* ~This would be a correct assumption, but don't be telling Galvena about it. I should like to keep my tongue.~ */
  IF ~PartyHasItem("miscAS")
CheckStatLT(LastTalkedToBy,15,CHR)~ THEN REPLY #54365 /* ~I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 4
  IF ~PartyHasItem("miscAS")
CheckStatGT(LastTalkedToBy,14,CHR)~ THEN REPLY #54366 /* ~I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 2
  IF ~~ THEN REPLY #54367 /* ~I shall not tell. Excuse me.~ */ GOTO 6
  IF ~~ THEN REPLY #54369 /* ~I am looking for girl named Claire. Do you know where I might find her?~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.3 7.4 5.0 4.2
  SAY #54372 /* ~Galvena is VERY angry at the girl. She has her locked up in the dungeon and no doubt she is being punished as we speak. She may already be dead.~ */
  IF ~~ THEN REPLY #54373 /* ~How can I enter the dungeon?~ */ UNSOLVED_JOURNAL #5059 /* ~Getting Inside the Asylum

The cook inside the Guildhouse told me that Claire was within the dungeon, being punished by Lady Galvena even as we spoke.~ */ GOTO 10
  IF ~~ THEN REPLY #54374 /* ~Thank you for the information. I'll see what I can do.~ */ UNSOLVED_JOURNAL #5059 /* ~Getting Inside the Asylum

The cook inside the Guildhouse told me that Claire was within the dungeon, being punished by Lady Galvena even as we spoke.~ */ GOTO 6
  IF ~~ THEN REPLY #54375 /* ~The girl must be saved. With your help I can save her and both of you, as well. Will you help?~ */ UNSOLVED_JOURNAL #5059 /* ~Getting Inside the Asylum

The cook inside the Guildhouse told me that Claire was within the dungeon, being punished by Lady Galvena even as we spoke.~ */ GOTO 11
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #54380 /* ~The guards would not let you and, in any event, the place is locked. Galvena is within, punishing the girl. She does not like to be disturbed.~ */
  IF ~~ THEN REPLY #54382 /* ~Who has the key?~ */ GOTO 12
  IF ~~ THEN REPLY #54384 /* ~Thank you for the information.~ */ GOTO 6
END

IF ~~ THEN BEGIN 11 // from: 9.2
  SAY #54397 /* ~I'm just a cook. Of what use would I be?~ */
  IF ~PartyHasItem("miscAS")
CheckStatLT(LastTalkedToBy,15,CHR)~ THEN REPLY #54399 /* ~From the courtesan who brought me here, I have obtained a bottle of sleeping draught. Could you not slip it to them?~ */ GOTO 13
  IF ~PartyHasItem("miscAS")
CheckStatGT(LastTalkedToBy,14,CHR)~ THEN REPLY #54402 /* ~From the courtesan who brought me here, I have obtained a bottle of sleeping draught. Could you not slip it to them?~ */ GOTO 14
  IF ~~ THEN REPLY #54403 /* ~Nothing at the moment.~ */ GOTO 6
END

IF ~~ THEN BEGIN 12 // from: 10.0
  SAY #54408 /* ~Rerdes the Guard Captain, I imagine. Either that or a copy of it will be within the Lady's room, which he guards.  Short of fighting everyone, I don't see how you'll get the key.~ */
  IF ~PartyHasItem("miscAS")
CheckStatLT(LastTalkedToBy,15,CHR)~ THEN REPLY #54412 /* ~As it happens, I have obtained a bottle of sleeping draught. Perhaps you could put it in the food or drink of the guards.~ */ GOTO 13
  IF ~PartyHasItem("miscAS")
CheckStatGT(LastTalkedToBy,14,CHR)~ THEN REPLY #54430 /* ~As it happens, I have obtained a bottle of sleeping draught. Perhaps you could put it in the food or drink of the guards.~ */ GOTO 14
  IF ~~ THEN REPLY #54433 /* ~Well, thank you for the information. I'll see what I can do.~ */ EXIT
END

IF ~~ THEN BEGIN 13 // from: 12.0 11.0
  SAY #54469 /* ~Doing that could get me killed. I suppose we could put it in their ale but as soon as they wake up, Galvena will have them kill me. Why should I risk my life for you?~ */
  IF ~~ THEN REPLY #54470 /* ~Galvena is virtually a slave owner and a small time one at that. I must save the girl, Claire, and in doing so, I promise to kill Galvena as well. You shall be free.~ */ GOTO 14
  IF ~~ THEN REPLY #54474 /* ~Perhaps you have no reason to. I will leave.~ */ GOTO 6
END

IF ~~ THEN BEGIN 14 // from: 13.0 12.1 11.1
  SAY #54478 /* ~It wouldn't work. I could put it in their ale but they would not trust you or drink what you give them.~ */
  IF ~~ THEN EXTERN ~PIRCOR06~ 5
END

IF ~~ THEN BEGIN 15 // from: PIRCOR06:5.0
  SAY #54482 /* ~Girl, you don't want to risk your neck for this <MANWOMAN>'s suicidal plan.~ */
  IF ~~ THEN EXTERN ~PIRCOR06~ 6
END

IF ~~ THEN BEGIN 16 // from: PIRCOR06:6.0
  SAY #54487 /* ~I'm old and tired. Even if Galvena kills me I won't be missing much.  As for you, if we take care of the guards you had better take this all the way. We shall die if you don't.~ */
  IF ~~ THEN REPLY #54490 /* ~My resolve is strong and I need Claire's help regardless. Let's do it.~ */ GOTO 17
  IF ~~ THEN REPLY #54492 /* ~I am unsure. Forget that I have asked anything of you.~ */ GOTO 6
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #54494 /* ~Give me the draught. There! We shall pour three mugs, one for each of the two guards at the doors. When they are asleep, the girl will enter Galvena's chamber where Rerdes stands guard.~ */
  IF ~~ THEN DO ~TakePartyItem("miscAS")
AddexperienceParty(1000)~ GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #54495 /* ~Kill Rerdes and get the prison key. Galvena is in the prison... she may have her pet wizard with her, a dangerous man. If Claire is not dead, you shall have her and we shall have our freedom.~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #54496 /* ~Galvena must die. Above all else remember that. Here girl, take the ale and go.~ */
  IF ~~ THEN DO ~SetGlobal("SleepingPotionPlot","GLOBAL",1)
MoveToPoint([522.348])
Wait(2)
ActionOverride("pircor06",StartDialogueNoSet([PC]))~ UNSOLVED_JOURNAL #11689 /* ~Getting Inside the Asylum

I have convinced the cook and her helper to give the sleeping draught to Rerdes and the guards at the door to the cellar.  The cook warned me that Galvena has her pet wizard with her, and that both will have to be killed.~ */ EXIT
END

IF ~PartyHasItem("miscAN")
Global("SleepingPotionPlot","GLOBAL",0)
~ THEN BEGIN 20 // from:
  SAY #54535 /* ~You again? What do you want?~ */
  IF ~~ THEN REPLY #54536 /* ~Madam, I assume that you must be the cook of whom all of the guards sing praises.~ */ GOTO 7
  IF ~~ THEN REPLY #54537 /* ~Clearly I am not wanted. I shall leave.~ */ GOTO 6
  IF ~PartyHasItem("miscAS")
CheckStatLT(LastTalkedToBy,15,CHR)~ THEN REPLY #54538 /* ~I must be abrupt for there are things that I must attend to. I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 4
  IF ~PartyHasItem("miscAS")
CheckStatGT(LastTalkedToBy,14,CHR)~ THEN REPLY #54539 /* ~I must be abrupt for there are things that I must attend to. I have heard much of Lady Galvena's evil and I intend to put a stop to it. Will you help in exchange for your freedom?~ */ EXTERN ~PIRCOR06~ 2
END

IF ~GlobalGT("SleepingPotionPlot","GLOBAL",0)
!Dead("pirmur01")~ THEN BEGIN 21 // from:
  SAY #54540 /* ~I have done your bidding. Go and finish this rescue and kill Galvena while you're at it.~ */
  IF ~~ THEN EXIT
END

IF ~GlobalGT("SleepingPotionPlot","GLOBAL",0)
Dead("pirmur01")~ THEN BEGIN 22 // from:
  SAY #54541 /* ~My <LADYLORD>, I offer you my sincere thanks. I thought that I'd have to live out the rest of my days slaving away for that evil woman but you have taken her threat away. Farewell and good luck!~ */
  IF ~~ THEN DO ~AddXPObject(Player1,2250)
AddXPObject(Player2,2250)
AddXPObject(Player3,2250)
AddXPObject(Player4,2250)
AddXPObject(Player5,2250)
AddXPObject(Player6,2250)
EscapeArea()
~ EXIT
END
