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

BEGIN ~ESCORT3~ 2 // non-zero flags may indicate non-pausing dialogue
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #3 /* Triggers after states #: 12 17 18 even though they appear after this state */
~True()
!Dead("madam")
!StateCheck("madam",STATE_SLEEPING)
!Dead("escort1")
!StateCheck("escort1",STATE_SLEEPING)
!Dead("escort2")
!StateCheck("escort2",STATE_SLEEPING)
!Dead("escort4")
!StateCheck("escort4",STATE_SLEEPING)
~ THEN BEGIN 0 // from:
  SAY #16711 /* ~I hope your room pleases you, my Lady.  And I hope that I please you, as well.  Do you wish to spend the night?~ */
  IF ~PartyGoldGT(49)~ THEN REPLY #16712 /* ~Yes, I think I would like that.  Here is my 50 gold.~ */ DO ~TakePartyGold(50)~ GOTO 1
  IF ~PartyGoldLT(50)~ THEN REPLY #16714 /* ~I'm sorry to bother you.  I don't think I can afford this.~ */ GOTO 2
  IF ~~ THEN REPLY #16716 /* ~I would prefer to get to know you a bit better, I think.~ */ GOTO 3
  IF ~~ THEN REPLY #16739 /* ~No, I'm not interested after all.~ */ GOTO 11
END

IF ~~ THEN BEGIN 1 // from: 9.1 4.2 3.2 0.0
  SAY #16713 /* ~As you wish, my Lady.  I hope my companionship will please you.~ */
  IF ~~ THEN DO ~SetGlobal("EscortBusy","AR0406",0)
RestParty()
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #16715 /* ~As the lady wishes, of course.  I have no objections.~ */
  IF ~~ THEN DO ~SetGlobal("EscortBusy","AR0406",0)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #16717 /* ~Get to know me better?  As I am sure my Lady is aware, I am but a slave assigned to bring pleasure to others.  There is little else to know, I am afraid.~ */
  IF ~~ THEN REPLY #16718 /* ~You are a slave?  Slaves are allowed, here?~ */ GOTO 4
  IF ~~ THEN REPLY #16737 /* ~I have no interest in hiring a slave, whether it for the purpose of companionship or anything else.~ */ GOTO 11
  IF ~~ THEN REPLY #16738 /* ~Very well, then.  Here is my 50 gold pieces.  I would like to spend the night, I suppose.~ */ GOTO 1
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #16719 /* ~I should not speak but... Slavery is illegal, but the trade goes on.  There is a terrible compound here in the slums, and many come through it, as did I.~ */
  IF ~~ THEN REPLY #16720 /* ~If that is true, then I shall do everything in my power to aid you and free these slaves.~ */ DO ~SetGlobal("spokeCCPros","GLOBAL",3)~ GOTO 5
  IF ~~ THEN REPLY #16728 /* ~That is terrible, but there is little I can do to help you at the moment.~ */ GOTO 9
  IF ~PartyGoldGT(49)~ THEN REPLY #16734 /* ~A pitiful story.  I would still prefer to spend the night here, however.  Here is my 50 gold pieces.~ */ DO ~TakePartyGold(50)~ GOTO 1
  IF ~~ THEN REPLY #16735 /* ~Excuse me, I think I must be going.~ */ GOTO 11
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #16721 /* ~I doubt you can do anything, my Lady.  If anyone were actually able to free us, it would be a miracle.  Did you still wish to spend the evening here, my Lady?~ */
  IF ~PartyGoldGT(49)~ THEN REPLY #16722 /* ~I do need the rest, actually, so I will stay.  Here is the 50 gold pieces so your mistress will not be angry with you.~ */ DO ~TakePartyGold(50)~ GOTO 6
  IF ~PartyGoldGT(49)~ THEN REPLY #16724 /* ~Yes, of course.  You're not free yet, are you?~ */ DO ~TakePartyGold(50)~ GOTO 7
  IF ~~ THEN REPLY #16726 /* ~No, of course not.  I shall see what I can do about this slave business.  Farewell until then.~ */ GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 9.0 5.0
  SAY #16723 /* ~There should not be a problem with that, my Lady.  Thank you.~ */
  IF ~~ THEN DO ~SetGlobal("EscortBusy","AR0406",0)
RestParty()
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.1
  SAY #16725 /* ~Oh... I see.  Of course, my Lady.  I... hope my companionship will please you.~ */
  IF ~~ THEN DO ~SetGlobal("EscortBusy","AR0406",0)
RestParty()
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 5.2
  SAY #16727 /* ~Bless you, my Lady.  It is almost too much to hope for, but I wish you well.~ */
  IF ~~ THEN DO ~SetGlobal("EscortBusy","AR0406",0)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 4.1
  SAY #16729 /* ~Of course, my Lady.  I expect nothing more.  Do you still wish to spend the evening?~ */
  IF ~PartyGoldGT(49)~ THEN REPLY #16730 /* ~I do need the rest, actually, so I will stay.  Here is the 50 gold pieces so your mistress will not be angry with you.~ */ DO ~TakePartyGold(50)~ GOTO 6
  IF ~PartyGoldGT(49)~ THEN REPLY #16731 /* ~Yes, I think I would still like to.  Here is my 50 gold pieces.~ */ DO ~TakePartyGold(50)~ GOTO 1
  IF ~~ THEN REPLY #16732 /* ~No, of course not.  Farewell to you.~ */ GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.2
  SAY #16733 /* ~Farewell, my Lady.  Thank you for your kindness.~ */
  IF ~~ THEN DO ~SetGlobal("EscortBusy","AR0406",0)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 4.3 3.1 0.3
  SAY #16736 /* ~As you wish, my Lady.  I am sorry to disappoint.~ */
  IF ~~ THEN DO ~SetGlobal("EscortBusy","AR0406",0)
EscapeArea()
~ EXIT
END

IF WEIGHT #0 ~False()
!Dead("madam")
!StateCheck("madam",STATE_SLEEPING)
!Dead("escort1")
!StateCheck("escort1",STATE_SLEEPING)
!Dead("escort2")
!StateCheck("escort2",STATE_SLEEPING)
!Dead("escort4")
!StateCheck("escort4",STATE_SLEEPING)~ THEN BEGIN 12 // from:
  SAY #16740 /* ~Er, yes?  I, I am not supposed to speak to customers, my <LADYLORD>.~ */
  IF ~~ THEN REPLY #16741 /* ~Really?  Why is that?~ */ GOTO 13
  IF ~~ THEN REPLY #16748 /* ~And what if I want to speak to you?  Am I not supposed to get whatever I wish, here?~ */ GOTO 16
  IF ~~ THEN REPLY #16750 /* ~Oh, I apologize.  Please excuse me.~ */ GOTO 15
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #16742 /* ~I am but a simple slave, my <LADYLORD>.  You must speak to Madame Nin, not I.~ */
  IF ~~ THEN REPLY #16743 /* ~A slave?  Is such a thing allowed?~ */ GOTO 14
  IF ~~ THEN REPLY #16746 /* ~I see.  Perhaps I will do that.~ */ GOTO 15
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #16744 /* ~I do not think that I --~ */
  IF ~~ THEN EXTERN ~MADAM~ 11
END

IF ~~ THEN BEGIN 15 // from: 13.1 12.2
  SAY #16747 /* ~Of course, my <LADYLORD>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 16 // from: 12.1
  SAY #16749 /* ~It, it is not for me to... I mean, my <LADYLORD>, I am only a --~ */
  IF ~~ THEN EXTERN ~MADAM~ 11
END

IF WEIGHT #1 ~GlobalLT("HendakReleased","AR0406",3)
NumTimesTalkedTo(0)
!Dead("madam")
!StateCheck("madam",STATE_SLEEPING)
!Dead("escort1")
!StateCheck("escort1",STATE_SLEEPING)
!Dead("escort2")
!StateCheck("escort2",STATE_SLEEPING)
!Dead("escort4")
!StateCheck("escort4",STATE_SLEEPING)~ THEN BEGIN 17 // from:
  SAY #16654 /* ~I will show you to your room, my Lady.  Please follow me.~ */
  IF ~~ THEN DO ~MoveToPoint([995.266])
MoveToPoint([1082.158])
~ EXIT
END

IF WEIGHT #2 ~Global("spokeCCPros","GLOBAL",10)
GlobalGT("HendakReleased","AR0406",2)~ THEN BEGIN 18 // from:
  SAY #59547 /* ~Thanks for freeing us from the slavers.  Hendak has been kind enough to offer us slaves jobs in the Copper Coronet.~ */
  IF ~~ THEN EXIT
END
