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

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

IF WEIGHT #2 /* Triggers after states #: 4 9 even though they appear after this state */
~True()
~ THEN BEGIN 0 // from:
  SAY #85358 /* ~Can I help you friend?  If not, please do not hesitate to get out of my face.  You are interrupting my fun.~ */
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85359 /* ~I'll interrupt your life!  Here's a message from a lady friend of yours!~ */ GOTO 1
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 3
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 6
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 5
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85361 /* ~I've come to ask ye to stop bothering a mutual... friend of ours.~ */ GOTO 2
  IF ~~ THEN REPLY #85362 /* ~I am sorry to disturb you 'friend', I'll just be on my way.~ */ EXIT
  IF ~Global("X#AloraCyderm1","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraCyderm1","GLOBAL",1)~ GOTO 12
END

IF ~~ THEN BEGIN 1 // from: 13.0 12.0 7.1 5.1 4.2 0.0 _ALORAJ:59.0
  SAY #85363 /* ~I trust you mean Areana?  I would not have thought her capable of hiring someone to kill me, especially of such a trite issue as this.  A simple tryst in the Undercellar and she is prepared to pay me for weeks on end.  The nobles are such prudes when it comes to one of their number slumming with a common sneaksman.  No matter.  I will kill you, and then I shall double how much I demand.~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 13.4 12.4 7.0 5.0 4.1 0.4 _ALORAJ:59.4
  SAY #85364 /* ~A mutual friend?  Areana?  She hired you to come and talk to me?  No, you are too heavily armed for mere chitchat.  Let me guess; you were to kill me but you want a peaceful solution.  You would rather end this diplomatically and save your conscience the trouble of killing someone over a mere tryst in the Undercellar.  Let me save you from your dilemma... and get in the first shot!~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 13.1 12.1 0.1 _ALORAJ:59.1
  SAY #85365 /* ~Merchandise?  I see.  Well, it has been a slow night for business.  Let's go have a look at what you have.  This way.~ */
  IF ~~ THEN DO ~SetGlobal("CyrdemacMoves","GLOBAL",1)
MoveToPoint([675.784])
~ EXIT
END

IF WEIGHT #1 /* Triggers after states #: 9 even though they appear after this state */
~Global("CyrdemacMoves","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #85366 /* ~So, what do you have to interest me?~ */
  IF ~~ THEN REPLY #85367 /* ~I would prefer to have no one else here.  Tell your friends to leave.~ */ GOTO 5
  IF ~~ THEN REPLY #85368 /* ~I wish to talk to you about a mutual friend.  I wish you to leave her alone from now on.~ */ GOTO 2
  IF ~~ THEN REPLY #85369 /* ~I have the end of your miserable life!  For a lady's honor I will strike you down!~ */ GOTO 1
END

IF ~~ THEN BEGIN 5 // from: 13.3 12.3 4.0 0.3 _ALORAJ:59.3
  SAY #85370 /* ~And get me alone without me fellows?  No, you ask too much.  There is something suspicious about all of this.  Perhaps you will tell me why you are truly here?  If not, I'll put knife in your tenders for taking me away from my drink.~ */
  IF ~~ THEN REPLY #85371 /* ~I am here to ask you to leave a mutual friend of ours alone.  Nothing more.~ */ GOTO 2
  IF ~~ THEN REPLY #85372 /* ~I am here to put an end to your filthy life for the honor of a lady!~ */ GOTO 1
  IF ~~ THEN REPLY #85373 /* ~I will not be questioned like this, forget it!~ */ DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 13.2 12.2 0.2 _ALORAJ:59.2
  SAY #85374 /* ~Merchandise?  I have never met you before, but you claim to know my business.  What sort of merchandise do you have that I would be interested in?~ */
  IF ~~ THEN REPLY #85375 /* ~I need the talents of a fence to move some rather recently burgled antiques.~ */ GOTO 7
  IF ~~ THEN REPLY #85376 /* ~I have need of a smuggler to move some rather curiously enchanted items unnoticed into Waterdeep.~ */ GOTO 8
  IF ~~ THEN REPLY #85377 /* ~I've a rather wealthy noble trussed up outside.  I trust you will be interested in ransoming her.  I do not wish the headache.~ */ GOTO 7
  IF ~Global("X#AloraCyderm2","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraCyderm2","GLOBAL",1)~ GOTO 11
END

IF ~~ THEN BEGIN 7 // from: 11.2 11.0 6.2 6.0
  SAY #85378 /* ~That is not my field of expertise, as you would know if you were truly aware of my business needs.  Why don't you tell me why you are truly here, before I have you gutted for interrupting my drink.~ */
  IF ~~ THEN REPLY #85371 /* ~I am here to ask you to leave a mutual friend of ours alone.  Nothing more.~ */ GOTO 2
  IF ~~ THEN REPLY #85372 /* ~I am here to put an end to your filthy life for the honor of a lady!~ */ GOTO 1
END

IF ~~ THEN BEGIN 8 // from: 11.1 6.1
  SAY #85379 /* ~Interesting.  Let's go somewhere where we can talk further.  I may be interested in the job.~ */
  IF ~~ THEN DO ~SetGlobal("CyrdemacMoves","GLOBAL",1)
MoveToPoint([675.784])
~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #85380 /* ~My name is Cyrdemac.  At the moment I am blackmailing a woman named Areana.  She had a tryst in the Undercellar that she does not want to be public knowledge.  You know what I suggest, friend?  Why don't you go back to Areana; tell her that I'm dead and then blackmail her with the threat of revealing her murderous inclinations.  I'll be alive, and you'll have gold.  We'll both win.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #85381 /* ~You shouldn't have come back here!  Now you'll never leave!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: 6.3
  SAY #100223 /* ~Or had the halfling been prying her nose into my business? I may be inclined to overlook this matter, depending on what sort of merchandise you're referring to...~ */
  IF ~~ THEN REPLY #85375 /* ~I need the talents of a fence to move some rather recently burgled antiques.~ */ GOTO 7
  IF ~~ THEN REPLY #85376 /* ~I have need of a smuggler to move some rather curiously enchanted items unnoticed into Waterdeep.~ */ GOTO 8
  IF ~~ THEN REPLY #85377 /* ~I've a rather wealthy noble trussed up outside.  I trust you will be interested in ransoming her.  I do not wish the headache.~ */ GOTO 7
END

IF ~~ THEN BEGIN 12 // from: 0.6
  SAY #100224 /* ~And please, take that annoying halfling woman with you. You cannot even begin to imagine what an utter pest she is!~ */
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85359 /* ~I'll interrupt your life!  Here's a message from a lady friend of yours!~ */ GOTO 1
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 3
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 6
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 5
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85361 /* ~I've come to ask ye to stop bothering a mutual... friend of ours.~ */ GOTO 2
  IF ~~ THEN REPLY #85362 /* ~I am sorry to disturb you 'friend', I'll just be on my way.~ */ EXIT
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN GOTO 13
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ALORAJ~ 59
END

IF ~~ THEN BEGIN 13 // from: 12.6 _ALORAJ:59.6
  SAY #100226 /* ~So, can I help you, or are you leaving?~ */
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85359 /* ~I'll interrupt your life!  Here's a message from a lady friend of yours!~ */ GOTO 1
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 3
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 6
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85360 /* ~I have some... merchandise you'll be interested in seeing, but not here.  Let's go to a room where there are fewer prying eyes.~ */ GOTO 5
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #85361 /* ~I've come to ask ye to stop bothering a mutual... friend of ours.~ */ GOTO 2
  IF ~~ THEN REPLY #85362 /* ~I am sorry to disturb you 'friend', I'll just be on my way.~ */ EXIT
END
