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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
ReactionLT([PC],15)
!InParty("Yoshimo")~ THEN BEGIN 0 // from: 102.0
  SAY #21186 /* ~You'll have to excuse me if I stare, as you're not quite what I was expecting.  From all I've been told, I was expecting someone... larger.~ [RENAL02] */
  IF ~~ THEN REPLY #21189 /* ~What exactly have you been told of me?~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 54
  IF ~~ THEN REPLY #21190 /* ~I was expecting more from the leader of the Shadow Thieves, myself.~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 3
  IF ~~ THEN REPLY #21191 /* ~What is it that you want from me?~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 5
  IF ~~ THEN REPLY #21192 /* ~I'll not stand here and be insulted.~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 8
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
ReactionGT([PC],14)
!InParty("Yoshimo")~ THEN BEGIN 1 // from: 102.1
  SAY #21193 /* ~You'll have to excuse me if you're not quite what I was expecting.  From all I've been told I expected something... grander.~ [RENAL03] */
  IF ~~ THEN REPLY #21194 /* ~What exactly have you been told of me?~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 54
  IF ~~ THEN REPLY #21195 /* ~I was expecting more from the leader of the Shadow Thieves, myself.~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 3
  IF ~~ THEN REPLY #21196 /* ~What is it that you want from me?~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 5
  IF ~~ THEN REPLY #21197 /* ~I'll not stand here and be insulted.~ */ DO ~EraseJournalEntry(293)
SetGlobal("TalkedToRenal","GLOBAL",1)~ GOTO 8
END

IF ~~ THEN BEGIN 2 // from: 54.0
  SAY #21198 /* ~You must understand, naturally, that an organization like mine thrives on information above all else. He who is ignorant quickly becomes a target, and all that.~ */
  IF ~~ THEN REPLY #21199 /* ~I see.  What is it, then, that you wish from me?~ */ GOTO 5
  IF ~~ THEN REPLY #21200 /* ~Who exactly are you?  You are the leader of the Shadow Thieves, I presume?~ */ GOTO 9
  IF ~~ THEN REPLY #21201 /* ~That's all very interesting, but I must be on my way.~ */ GOTO 10
END

IF ~~ THEN BEGIN 3 // from: 1.1 0.1
  SAY #21202 /* ~Yes, well, when you earn a name like 'Bloodscalp' you do tend to raise expectations. I assure you that I am more than I seem. I am sure the same is true of you.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 9.0 3.0
  SAY #21203 /* ~As an aside, I am not the 'leader' of the Shadow Thieves as you perhaps mean, but I lead enough that it makes no difference to you.  But this is irrelevant.~ */
  IF ~~ THEN REPLY #21204 /* ~I would be interested to know what you've been told about me.~ */ GOTO 54
  IF ~~ THEN REPLY #21205 /* ~What is it that you wish of me, then?~ */ GOTO 5
  IF ~~ THEN REPLY #21206 /* ~Well, you don't impress me in the slightest.~ */ GOTO 11
  IF ~~ THEN REPLY #21207 /* ~True enough.  I'll be leaving, now.~ */ GOTO 10
END

IF ~~ THEN BEGIN 5 // from: 108.1 12.1 8.1 4.1 2.0 1.2 0.2
  SAY #21208 /* ~Right to the point, eh? Refreshing. I am sick of underlings who shift from foot to foot. I find a bit of directness to be a nice change.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 6 // from:
  SAY #21209 /* ~~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.0
  SAY #21210 /* ~To be short, Gaelan recommended you, and I trust his word. I am in need of mercenaries to perform a particular task, and you are just the one to do it.~ */
  IF ~~ THEN REPLY #21211 /* ~Why would you need me?  Why not get one of your thieves to do it?~ */ GOTO 13
  IF ~OR(5)
Class(Player1,THIEF)
Class(Player1,FIGHTER_THIEF)
Class(Player1,FIGHTER_MAGE_THIEF)
Class(Player1,MAGE_THIEF)
Class(Player1,CLERIC_THIEF)
~ THEN REPLY #21212 /* ~What kind of payment would I be looking at for this task?~ */ GOTO 15
  IF ~!Class(Player1,THIEF)
!Class(Player1,FIGHTER_THIEF)
!Class(Player1,FIGHTER_MAGE_THIEF)
!Class(Player1,MAGE_THIEF)
!Class(Player1,CLERIC_THIEF)
~ THEN REPLY #21233 /* ~What kind of payment would I be looking at for this task?~ */ GOTO 18
  IF ~~ THEN REPLY #21213 /* ~What sort of work are you talking about?~ */ GOTO 20
  IF ~~ THEN REPLY #21214 /* ~I have no interest in working for the Shadow Thieves.  Excuse me.~ */ GOTO 25
END

IF ~~ THEN BEGIN 8 // from: 108.2 1.3 0.3
  SAY #21215 /* ~You needn't stand here at all, but *you* came into *my* guildhouse first. I'm simply making use of you now that you are here. I had thought you made of hardier stuff.~ */
  IF ~~ THEN REPLY #21216 /* ~What sorts of things have you been told about me?~ */ GOTO 54
  IF ~~ THEN REPLY #21217 /* ~Make use of me?  How do you mean?~ */ GOTO 5
  IF ~~ THEN REPLY #21218 /* ~Your guildhouse?  I take it you are the leader of the Shadow Thieves, here?~ */ GOTO 9
  IF ~~ THEN REPLY #21219 /* ~Well, I'm not here to impress you.  I'll be on my way.~ */ GOTO 10
END

IF ~~ THEN BEGIN 9 // from: 8.2 2.1
  SAY #21220 /* ~My name is Renal, as I'm sure you've been told. Renal 'Bloodscalp'... a little nickname I've earned over time. Rather grisly, but it keeps the fearful in line.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 10 // from: 12.2 8.3 4.3 2.2
  SAY #21221 /* ~If that is what you wish. Gaelan spoke well of you, so you are free to return if you change your mind. Working with me is very... profitable, so think about it.~ */
  IF ~OR(2)
!See("Yoshimo")
!InParty("Yoshimo")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Korgan")~ THEN EXIT
  IF ~See("Yoshimo")
InParty("Yoshimo")~ THEN EXTERN ~YOSHJ~ 72
  IF ~OR(2)
!See("Yoshimo")
!InParty("Yoshimo")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 146
  IF ~OR(2)
!See("Yoshimo")
!InParty("Yoshimo")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 90
END

IF ~~ THEN BEGIN 11 // from: 4.2
  SAY #21222 /* ~I do not ask you to be impressed, and neither did I ask you to come. You are a guest and you will treat me with the respect I am due... or I shall become angry.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #21223 /* ~But there's no need for any of that, is there?  I'm sure we can remain friends, and conclude what I am sure to be a very profitable deal for us both.~ */
  IF ~~ THEN REPLY #21224 /* ~I'd like to know what you've been told of me, first.~ */ GOTO 54
  IF ~~ THEN REPLY #21225 /* ~What kind of deal are you talking about?~ */ GOTO 5
  IF ~~ THEN REPLY #21226 /* ~I've no interest in making any deals with you.~ */ GOTO 10
END

IF ~~ THEN BEGIN 13 // from: 31.1 24.0 19.0 17.0 7.0
  SAY #21227 /* ~A fair question.  Any of my available assassins or thieves are quite capable, and on a normal day I would not consider it necessary to look beyond my guild.~ */
  IF ~~ THEN GOTO 55
END

IF ~~ THEN BEGIN 14 // from: 55.0
  SAY #21228 /* ~Someone, I trust, like yourself.~ */
  IF ~~ THEN REPLY #21229 /* ~Why?  What is it, exactly, that you would have me do?~ */ GOTO 20
  IF ~OR(5)
Class(Player1,THIEF)
Class(Player1,FIGHTER_THIEF)
Class(Player1,FIGHTER_MAGE_THIEF)
Class(Player1,MAGE_THIEF)
Class(Player1,CLERIC_THIEF)
Global("PlayerHasStronghold","GLOBAL",0)
~ THEN REPLY #21230 /* ~I see.  And what would I be paid for performing such a service for you?~ */ GOTO 15
  IF ~!Class(Player1,THIEF)
!Class(Player1,FIGHTER_THIEF)
!Class(Player1,FIGHTER_MAGE_THIEF)
!Class(Player1,MAGE_THIEF)
!Class(Player1,CLERIC_THIEF)
~ THEN REPLY #21234 /* ~I see.  And what would I be paid for performing such a service for you?~ */ GOTO 18
  IF ~~ THEN REPLY #21231 /* ~Very well, I have heard enough.  I agree to perform this service for you.~ */ GOTO 27
  IF ~~ THEN REPLY #21232 /* ~Well, you believe wrong.  I've no interest in doing this.~ */ GOTO 25
END

IF ~~ THEN BEGIN 15 // from: 31.2 24.1 14.1 7.1
  SAY #21235 /* ~Ah yes, we all arrive at this point eventually. What's in it for you? Well, since this is a rather delicate mission, I have a rather unusual offer for you.~ */
  IF ~~ THEN GOTO 56
END

IF ~~ THEN BEGIN 16 // from: 56.0
  SAY #21236 /* ~If it does, and Mae'Var proves to be guilty... and of that I have little doubt... then you will have proven yourself to me fully.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #21237 /* ~At that point I would offer you the position which poor Mae'Var would be forced to vacate. How about it, <CHARNAME>? Interested in running your own guildhouse?~ */
  IF ~~ THEN REPLY #21238 /* ~Why would you not want one of your own men to perform this task?~ */ GOTO 13
  IF ~~ THEN REPLY #21239 /* ~I would like to know more details about this task before I agree to anything.~ */ GOTO 20
  IF ~~ THEN REPLY #21240 /* ~Mmm.  Interesting.  Very well... I agree to do as you ask.~ */ GOTO 27
  IF ~~ THEN REPLY #21241 /* ~No.  I've no interest in doing this.~ */ GOTO 25
END

IF ~~ THEN BEGIN 18 // from: 31.3 24.2 14.2 7.2
  SAY #21242 /* ~You are interested in acquiring more than the simple goodwill of the Shadow Thieves, I see.  I do not blame you... I would feel the same way.~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #21243 /* ~Working for Mae'Var will give you plenty of rewards on its own, and I have no qualms about adding a healthy dose of gold on top of that. Does that satisfy?~ */
  IF ~~ THEN REPLY #21244 /* ~Why you don't put one of your own men on this task. Why do you need me?~ */ GOTO 13
  IF ~~ THEN REPLY #21245 /* ~I would like to know more specifics of this task.~ */ GOTO 20
  IF ~~ THEN REPLY #21246 /* ~That sounds fine.  I agree to do as you ask.~ */ GOTO 27
  IF ~~ THEN REPLY #21247 /* ~No, I'm not interested.  Excuse me.~ */ GOTO 25
END

IF ~~ THEN BEGIN 20 // from: 31.0 19.1 17.1 14.0 7.3
  SAY #21248 /* ~Yes, the details. How shall I put this? One of my guildhouses to the south is run by a rather ambitious fellow named Mae'Var. Good thief, but I never liked him. Now I know why.~ [RENAL08] */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #21249 /* ~I've had some hints that he is getting too big for himself. Thinking of taking my place, I suspect, but I've had no real evidence to say that this is so.~ */
  IF ~~ THEN GOTO 57
END

IF ~~ THEN BEGIN 22 // from: 57.0
  SAY #21250 /* ~But without proof of betrayal, this would anger the other guildmasters and then I'd have a war on my hands and, well, just let it lie that I don't want that.~ */
  IF ~!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Jaheira")~ THEN GOTO 58
  IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 116
  IF ~!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 252
  IF ~!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 397
END

IF ~~ THEN BEGIN 23 // from: 58.0
  SAY #21251 /* ~I will give you papers saying you were being transferred by the Shadow Master. You will spy on Mae'Var from the inside and find me the evidence that I need.~ */
  IF ~~ THEN GOTO 42
END

IF ~~ THEN BEGIN 24 // from: 42.0
  SAY #21252 /* ~You'll need to reassure Mae'Var, naturally. He won't know who you are, but I am confident that you are more than capable of this. What say you? Interested?~ */
  IF ~~ THEN REPLY #21253 /* ~Why don't you send one of your own men to do this?~ */ GOTO 13
  IF ~OR(5)
Class(Player1,THIEF)
Class(Player1,FIGHTER_THIEF)
Class(Player1,FIGHTER_MAGE_THIEF)
Class(Player1,MAGE_THIEF)
Class(Player1,CLERIC_THIEF)
Global("PlayerHasStronghold","GLOBAL",0)
~ THEN REPLY #21254 /* ~What kind of reward would I be looking at for this?~ */ GOTO 15
  IF ~!Class(Player1,THIEF)
!Class(Player1,FIGHTER_THIEF)
!Class(Player1,FIGHTER_MAGE_THIEF)
!Class(Player1,MAGE_THIEF)
!Class(Player1,CLERIC_THIEF)
~ THEN REPLY #21255 /* ~What kind of reward would I be looking at for this?~ */ GOTO 18
  IF ~~ THEN REPLY #21256 /* ~Very well, I'll do as you ask.~ */ GOTO 27
  IF ~~ THEN REPLY #21257 /* ~No, I'm not interested in working for you.~ */ GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.4 19.3 17.3 14.4 7.4
  SAY #21258 /* ~Well, it can't be said I didn't try. I'm sure that you understand the importance of not repeating what we've discussed. It wouldn't be particularly... healthy.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #21259 /* ~But don't look on that as a threat, truly.  We're all good friends here, right?  If you change your mind, do come back and we'll talk again.~ */
  IF ~!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Korgan")~ THEN EXIT
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 72
  IF ~!IsValidForPartyDialog("Yoshimo")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 146
  IF ~!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 90
END

IF ~~ THEN BEGIN 27 // from: 24.3 19.2 17.2 14.3
  SAY #21260 /* ~Excellent. I knew this would work out for the best. You remind me a bit of myself when I first arrived here.~ */
  IF ~OR(3)
!Global("YoshimoShadowTrouble","GLOBAL",1)
!See("Yoshimo")
!InParty("Yoshimo")~ THEN GOTO 44
  IF ~Global("YoshimoShadowTrouble","GLOBAL",1)
See("Yoshimo")
InParty("Yoshimo")~ THEN GOTO 105
END

IF ~~ THEN BEGIN 28 // from: 44.0
  SAY #21261 /* ~Here are the papers you need to present to Mae'Var's men to gain access. I'm sure I don't have to tell you to be careful, do I?  No, I didn't think so.~ */
  IF ~~ THEN DO ~SetGlobal("RenalJob","GLOBAL",1)
GiveItem("MISC4T",LastTalkedToBy)
~ GOTO 29
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #21262 /* ~Just head to the storefront in the central Docks area and speak to the storekeeper, Gorch.  Show the papers to him and he'll let you in the guildhouse proper.~ */
  IF ~~ THEN GOTO 30
END

IF ~~ THEN BEGIN 30 // from: 29.0
  SAY #21263 /* ~Work for Mae'Var as long as it takes to collect your evidence, and bring whatever you can find to me.  I'll be waiting to receive it most eagerly.~ */
  IF ~!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Yoshimo")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",1)
~ UNSOLVED_JOURNAL #34194 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp, leader of the Shadow Thieves, has hired me to infiltrate the guildhouse of one of his underlings, a man by the name of Mae'Var.  I am to find proof of Mae'Var's treachery while I work under him.  Renal has given me papers that will allow me to pass as a member of the Shadow Thieves.  I am to report to Gorch in Mae'Var's storefront.  Once I have the proof, I am to return to Renal.~ */ EXIT
  IF ~IsValidForPartyDialog("Minsc")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",1)
~ UNSOLVED_JOURNAL #34194 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp, leader of the Shadow Thieves, has hired me to infiltrate the guildhouse of one of his underlings, a man by the name of Mae'Var.  I am to find proof of Mae'Var's treachery while I work under him.  Renal has given me papers that will allow me to pass as a member of the Shadow Thieves.  I am to report to Gorch in Mae'Var's storefront.  Once I have the proof, I am to return to Renal.~ */ EXTERN ~MINSCJ~ 122
  IF ~!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Keldorn")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",1)
~ UNSOLVED_JOURNAL #34194 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp, leader of the Shadow Thieves, has hired me to infiltrate the guildhouse of one of his underlings, a man by the name of Mae'Var.  I am to find proof of Mae'Var's treachery while I work under him.  Renal has given me papers that will allow me to pass as a member of the Shadow Thieves.  I am to report to Gorch in Mae'Var's storefront.  Once I have the proof, I am to return to Renal.~ */ EXTERN ~KELDORJ~ 148
  IF ~!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Yoshimo")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",1)
~ UNSOLVED_JOURNAL #34194 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp, leader of the Shadow Thieves, has hired me to infiltrate the guildhouse of one of his underlings, a man by the name of Mae'Var.  I am to find proof of Mae'Var's treachery while I work under him.  Renal has given me papers that will allow me to pass as a member of the Shadow Thieves.  I am to report to Gorch in Mae'Var's storefront.  Once I have the proof, I am to return to Renal.~ */ EXTERN ~YOSHJ~ 73
END

IF WEIGHT #8 /* Triggers after states #: 49 95 100 101 108 109 even though they appear after this state */
~Global("RenalJob","GLOBAL",0)
Global("PCComesForth","LOCALS",0)~ THEN BEGIN 31 // from:
  SAY #21264 /* ~Well, hello once again, <CHARNAME>.  My, you turn up more often than a bad copper, don't you. I trust you've changed your mind about my proposal?~ */
  IF ~~ THEN REPLY #21265 /* ~What was it that you wanted me to do again?~ */ GOTO 20
  IF ~~ THEN REPLY #21266 /* ~I'd like to know why one of your own men doesn't do it for you.~ */ GOTO 13
  IF ~OR(5)
Class(Player1,THIEF)
Class(Player1,FIGHTER_THIEF)
Class(Player1,FIGHTER_MAGE_THIEF)
Class(Player1,MAGE_THIEF)
Class(Player1,CLERIC_THIEF)
Global("PlayerHasStronghold","GLOBAL",0)
~ THEN REPLY #21267 /* ~I'm interested in knowing what the reward is for your task.~ */ GOTO 15
  IF ~!Class(Player1,THIEF)
!Class(Player1,FIGHTER_THIEF)
!Class(Player1,FIGHTER_MAGE_THIEF)
!Class(Player1,MAGE_THIEF)
!Class(Player1,CLERIC_THIEF)
~ THEN REPLY #21268 /* ~I'm interested in knowing what the reward is for your task.~ */ GOTO 18
  IF ~~ THEN REPLY #21269 /* ~No, I haven't.~ */ GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 31.4
  SAY #21270 /* ~Why did you bother me, then? Hmph. If you change your mind, let's speak again. Otherwise, keep yourself busy elsewhere.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #9 /* Triggers after states #: 49 95 100 101 108 109 even though they appear after this state */
~Global("TalkedToEmbarl","GLOBAL",1)
Global("RenalJob","GLOBAL",1)
!PartyHasItem("MISC4V")~ THEN BEGIN 33 // from:
  SAY #21271 /* ~Aha!  It is <CHARNAME>, our good friend returned to us!  Excuse me while I rub my hands in anticipation.  I trust you have the evidence I am looking for?~ */
  IF ~~ THEN REPLY #21272 /* ~I spoke to a thief named Embarl who overheard Mae'Var planning to assassinate you.~ */ GOTO 34
  IF ~~ THEN REPLY #21273 /* ~No, I don't have anything to tell you at the moment.~ */ GOTO 37
END

IF ~~ THEN BEGIN 34 // from: 33.0
  SAY #21274 /* ~Hmmn.  But you have nothing in writing?  No confession?  No orders given to his men?  I'm afraid that this tale does me little good.~ */
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.0
  SAY #21275 /* ~Even if you got this Embarl alive, he's of no use as evidence. If rumor were proof, half of my guildmasters could be plotting my assassination on any given day.~ */
  IF ~~ THEN GOTO 36
END

IF ~~ THEN BEGIN 36 // from: 35.0
  SAY #21276 /* ~What I need is confirmation, something in writing with fingerprints all but covering it. No, this isn't enough. Return to Mae'Var and continue investigating.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #34241 /* ~Find proof of Mae'Var's treachery.

As I suspected, the tale of Embarl's alone is not enough to damn Mae'Var.  Renal has sent me back to the guild to collect actual, physical evidence of the guildmaster's treachery.~ */ EXIT
END

IF ~~ THEN BEGIN 37 // from: 38.0 33.1
  SAY #21279 /* ~What are you doing back here, then? You may have been followed by Mae'Var's men. Go back to his guild and find me the proof I need.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #10 /* Triggers after states #: 49 95 100 101 108 109 even though they appear after this state */
~Global("TalkedToEmbarl","GLOBAL",0)
Global("RenalJob","GLOBAL",1)
!PartyHasItem("MISC4V")~ THEN BEGIN 38 // from:
  SAY #21287 /* ~It is good to speak to you once again, my dear <LADYLORD>.  Tell me, have you acquired what I seek?~ */
  IF ~~ THEN REPLY #21288 /* ~No, I don't have any evidence, yet.~ */ GOTO 37
END

IF WEIGHT #11 /* Triggers after states #: 49 95 100 101 108 109 even though they appear after this state */
~Global("RenalJob","GLOBAL",1)
PartyHasItem("MISC4V")~ THEN BEGIN 39 // from:
  SAY #21290 /* ~Ah, <CHARNAME>!  I was just counting some loot from a delightful outing we had not long ago and I thought of you.  Mask help me if I didn't smile just a little!~ */
  IF ~~ THEN GOTO 40
END

IF ~~ THEN BEGIN 40 // from: 39.0
  SAY #21291 /* ~You won't make that smile disappear, will you?  You've brought news, perhaps?  You've brought some evidence of Mae'Var's foulness?  Do tell, <CHARNAME>.~ */
  IF ~~ THEN REPLY #21292 /* ~Yes, I have the evidence you need in these writings.  It seems that Mae'Var has been making overtures to the Night Masks.~ */ DO ~AddexperienceParty(48250)
TakePartyItem("MISC4V")
TakePartyItem("MISC4T")
SetGlobal("MaeVarExposed","GLOBAL",1)
~ GOTO 41
END

IF ~~ THEN BEGIN 41 // from: 40.0
  SAY #21293 /* ~Is that so?  Hmmn.  Now, that is unexpected.  Fortunately, it's more than enough to damn Mae'Var completely.  I thank you, <CHARNAME>, for providing this.~ */
  IF ~~ THEN GOTO 43
END

IF ~~ THEN BEGIN 42 // from: 23.0
  SAY #21294 /* ~Once he is damned with proof, you can take care of this nuisance and eliminate Mae'Var.  One less headache for a busy man such as myself to be concerned with.~ */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 43 // from: 41.0
  SAY #21295 /* ~Only the last part of our deal remains to be carried out. Go and eliminate Mae'Var then, with my full authority.  Do that and this business shall be finished, finally.~ [RENAL09] */
  IF ~~ THEN REPLY #21296 /* ~Very well.  I'll go and eliminate the scum for you and return.~ */ GOTO 45
  IF ~~ THEN REPLY #21297 /* ~I'm no assassin, Renal. I've provided the evidence to you. Kill Mae'Var, yourself.~ */ GOTO 93
END

IF ~~ THEN BEGIN 44 // from: 27.0
  SAY #21298 /* ~The first part that needs to be taken care of, naturally, is finding the evidence on Mae'Var.~ */
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 45 // from: 109.0 46.0 43.0
  SAY #21305 /* ~That's a good sport!~ */
  IF ~~ THEN DO ~SetGlobal("RenalJob","GLOBAL",3)
SetGlobal("KillMae","GLOBAL",1)
SetGlobalTimer("EdwinMae","GLOBAL",ONE_DAY)
~ UNSOLVED_JOURNAL #34240 /* ~Find proof of Mae'Var's treachery.

Renal approved of the letter I brought him as sufficient evidence to damn Mae'Var, and has asked that I be the one to go and end the guildmaster's life.  After the deed is done, I must return to Renal and collect my just reward.~ */ EXIT
END

IF ~~ THEN BEGIN 46 // from: 93.0
  SAY #21306 /* ~You have been in Mae'Var's company and seen the ruthless nature of the man. If you will not do this for moral outrage, I will compensate your mercenary side.~ */
  IF ~~ THEN REPLY #21307 /* ~If that's the way it has to be, then I have little choice. I will kill Mae'Var and return.~ */ GOTO 45
  IF ~~ THEN REPLY #21309 /* ~I'll not kill him, reward or no.~ */ GOTO 47
  IF ~~ THEN REPLY #58408 /* ~He is, indeed, a despicable person. Does that warrant his execution?~ */ GOTO 94
END

IF ~~ THEN BEGIN 47 // from: 94.0 46.1
  SAY #21315 /* ~Well, the choice is yours. If you change your mind and wish to collect, I would consider it. I wouldn't wait too long, however.  Eventually I'll do it myself.~ */
  IF ~!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Korgan")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",2)
~ UNSOLVED_JOURNAL #34239 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp refuses to give me my due reward for exposing Mae'Var unless I also eliminate the guildmaster and his thieves!  I have refused, but Renal told me he would wait, for a while, for me to change my mind.~ */ EXIT
  IF ~IsValidForPartyDialog("Viconia")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",2)~ UNSOLVED_JOURNAL #34239 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp refuses to give me my due reward for exposing Mae'Var unless I also eliminate the guildmaster and his thieves!  I have refused, but Renal told me he would wait, for a while, for me to change my mind.~ */ EXTERN ~VICONIJ~ 57
  IF ~!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Edwin")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",2)~ UNSOLVED_JOURNAL #34239 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp refuses to give me my due reward for exposing Mae'Var unless I also eliminate the guildmaster and his thieves!  I have refused, but Renal told me he would wait, for a while, for me to change my mind.~ */ EXTERN ~EDWINJ~ 70
  IF ~!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Korgan")~ THEN DO ~SetGlobal("RenalJob","GLOBAL",2)~ JOURNAL #34239 /* ~Find proof of Mae'Var's treachery.

Renal Bloodscalp refuses to give me my due reward for exposing Mae'Var unless I also eliminate the guildmaster and his thieves!  I have refused, but Renal told me he would wait, for a while, for me to change my mind.~ */ FLAGS 128 EXTERN ~KORGANJ~ 92
END

IF WEIGHT #12 /* Triggers after states #: 49 95 100 101 108 109 even though they appear after this state */
~OR(2)
Global("RenalJob","GLOBAL",2)
Global("RenalJob","GLOBAL",3)
Dead("MaeVar")
~ THEN BEGIN 48 // from:
  SAY #21320 /* ~The tale of your deed has already reached my ear, as such things tend to.  Well done, I say!  Your reward is well-earned.~ [RENAL10] */
  IF ~Global("PlayerHasStronghold","GLOBAL",0)
Class(Player1,THIEF_ALL)
~ THEN DO ~SetGlobal("RenalJob","GLOBAL",4)
EraseJournalEntry(34194)
EraseJournalEntry(34198)
EraseJournalEntry(34201)
EraseJournalEntry(34205)
EraseJournalEntry(34207)
EraseJournalEntry(34211)
EraseJournalEntry(34217)
EraseJournalEntry(34218)
EraseJournalEntry(34220)
EraseJournalEntry(34232)
EraseJournalEntry(34233)
EraseJournalEntry(34234)
EraseJournalEntry(34235)
EraseJournalEntry(34236)
EraseJournalEntry(34237)
EraseJournalEntry(34238)
EraseJournalEntry(34239)
EraseJournalEntry(34240)
EraseJournalEntry(34241)
EraseJournalEntry(34243)
AddXPObject(Player1,45500)
AddXPObject(Player2,45500)
AddXPObject(Player3,45500)
AddXPObject(Player4,45500)
AddXPObject(Player5,45500)
AddXPObject(Player6,45500)
SetGlobal("RenalJob","GLOBAL",4)
~ SOLVED_JOURNAL #47538 /* ~Find proof of Mae'Var's treachery.

Mae'Var has been killed as Renal Bloodscalp wished.  Chalk one up for the integrity of the Shadow Thieves, I suppose.~ */ GOTO 60
  IF ~OR(2)
Global("PlayerHasStronghold","GLOBAL",1)
!Class(Player1,THIEF_ALL)
~ THEN DO ~SetGlobal("RenalJob","GLOBAL",4)
EraseJournalEntry(34194)
EraseJournalEntry(34198)
EraseJournalEntry(34201)
EraseJournalEntry(34205)
EraseJournalEntry(34207)
EraseJournalEntry(34211)
EraseJournalEntry(34217)
EraseJournalEntry(34218)
EraseJournalEntry(34220)
EraseJournalEntry(34232)
EraseJournalEntry(34233)
EraseJournalEntry(34234)
EraseJournalEntry(34235)
EraseJournalEntry(34236)
EraseJournalEntry(34237)
EraseJournalEntry(34238)
EraseJournalEntry(34239)
EraseJournalEntry(34240)
EraseJournalEntry(34241)
EraseJournalEntry(34243)
AddXPObject(Player1,45500)
AddXPObject(Player2,45500)
AddXPObject(Player3,45500)
AddXPObject(Player4,45500)
AddXPObject(Player5,45500)
AddXPObject(Player6,45500)
SetGlobal("RenalJob","GLOBAL",4)~ SOLVED_JOURNAL #47538 /* ~Find proof of Mae'Var's treachery.

Mae'Var has been killed as Renal Bloodscalp wished.  Chalk one up for the integrity of the Shadow Thieves, I suppose.~ */ GOTO 59
END

IF WEIGHT #7 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Dead("MaeVar")
Global("RenalJob","GLOBAL",1)
~ THEN BEGIN 49 // from:
  SAY #22479 /* ~You showed your face back here, eh?  I suppose you expect some kind of reward for that sloppy business with Mae'Var?~ [RENAL11] */
  IF ~!PartyHasItem("MISC4V")~ THEN REPLY #22480 /* ~Actually, I do.  I got rid of your problem, didn't I?~ */ DO ~EraseJournalEntry(34194)
EraseJournalEntry(34198)
EraseJournalEntry(34201)
EraseJournalEntry(34205)
EraseJournalEntry(34207)
EraseJournalEntry(34211)
EraseJournalEntry(34217)
EraseJournalEntry(34218)
EraseJournalEntry(34220)
EraseJournalEntry(34232)
EraseJournalEntry(34233)
EraseJournalEntry(34234)
EraseJournalEntry(34235)
EraseJournalEntry(34236)
EraseJournalEntry(34237)
EraseJournalEntry(34238)
EraseJournalEntry(34239)
EraseJournalEntry(34240)
EraseJournalEntry(34241)
EraseJournalEntry(34243)~ SOLVED_JOURNAL #47545 /* ~Find proof of Mae'Var's treachery.

I have killed Mae'Var, although I did it without the evidence that Renal needed and without his approval.  Even though I got the job done, Renal was not pleased with my performance.~ */ GOTO 50
  IF ~!PartyHasItem("MISC4V")
~ THEN REPLY #22481 /* ~I suppose not.  It was the best I could do, however.~ */ DO ~EraseJournalEntry(34194)
EraseJournalEntry(34198)
EraseJournalEntry(34201)
EraseJournalEntry(34205)
EraseJournalEntry(34207)
EraseJournalEntry(34211)
EraseJournalEntry(34217)
EraseJournalEntry(34218)
EraseJournalEntry(34220)
EraseJournalEntry(34232)
EraseJournalEntry(34233)
EraseJournalEntry(34234)
EraseJournalEntry(34235)
EraseJournalEntry(34236)
EraseJournalEntry(34237)
EraseJournalEntry(34238)
EraseJournalEntry(34239)
EraseJournalEntry(34240)
EraseJournalEntry(34241)
EraseJournalEntry(34243)~ SOLVED_JOURNAL #47545 /* ~Find proof of Mae'Var's treachery.

I have killed Mae'Var, although I did it without the evidence that Renal needed and without his approval.  Even though I got the job done, Renal was not pleased with my performance.~ */ GOTO 53
  IF ~PartyHasItem("MISC4V")
~ THEN REPLY #62159 /* ~But I have the evidence of Mae'Var's treachery right here!~ */ DO ~EraseJournalEntry(34194)
EraseJournalEntry(34198)
EraseJournalEntry(34201)
EraseJournalEntry(34205)
EraseJournalEntry(34207)
EraseJournalEntry(34211)
EraseJournalEntry(34217)
EraseJournalEntry(34218)
EraseJournalEntry(34220)
EraseJournalEntry(34232)
EraseJournalEntry(34233)
EraseJournalEntry(34234)
EraseJournalEntry(34235)
EraseJournalEntry(34236)
EraseJournalEntry(34237)
EraseJournalEntry(34238)
EraseJournalEntry(34239)
EraseJournalEntry(34240)
EraseJournalEntry(34241)
EraseJournalEntry(34243)~ SOLVED_JOURNAL #47545 /* ~Find proof of Mae'Var's treachery.

I have killed Mae'Var, although I did it without the evidence that Renal needed and without his approval.  Even though I got the job done, Renal was not pleased with my performance.~ */ GOTO 111
END

IF ~~ THEN BEGIN 50 // from: 49.0
  SAY #22482 /* ~Well, you've left me to deal with the rest of the guild, haven't you?  I wanted evidence, fool.  If I just wanted Mae'Var dead, I could have done that myself!~ */
  IF ~~ THEN GOTO 51
END

IF ~~ THEN BEGIN 51 // from: 111.0 50.0
  SAY #22483 /* ~At least you've rid me of a potential risk... and I can deny involvement because none of my men did the task. Still very sloppy, I expected better of you.~ */
  IF ~~ THEN GOTO 52
END

IF ~~ THEN BEGIN 52 // from: 51.0
  SAY #22484 /* ~Begone, then.  I hope you looted Mae'Var well, because you'll get nothing from me.~ */
  IF ~~ THEN DO ~SetGlobal("NotAllowedTHiefHQ","GLOBAL",1)
SetGlobal("RenalJob","GLOBAL",4)~ EXIT
END

IF ~~ THEN BEGIN 53 // from: 49.1
  SAY #22485 /* ~Bah. Now I have all sorts of problems. The other guildmasters will think I'm out to kill them all. Be gone, fool. You've left me with more than enough work to do.~ */
  IF ~~ THEN DO ~SetGlobal("NotAllowedTHiefHQ","GLOBAL",1)
SetGlobal("RenalJob","GLOBAL",4)~ EXIT
END

IF ~~ THEN BEGIN 54 // from: 108.0 12.0 8.0 4.0 1.0 0.0
  SAY #24973 /* ~Oh, I've been told many tales of your exploits.  Some bits of your activities here in Athkatla as well as further north.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 55 // from: 13.0
  SAY #24976 /* ~In this one instance, however, my men are limited.  I need someone of skill who is not one of the Shadow Thieves... someone more or less unknown to us.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 56 // from: 15.0
  SAY #27491 /* ~I have been looking for someone of your particular talents and abilities.  You have a reputation, and I wish to see if it holds true.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 57 // from: 21.0
  SAY #27492 /* ~Now, you're likely thinking: why not just eliminate him?  Yes, yes, I suppose I could.~ */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 58 // from: 22.0
  SAY #27493 /* ~So... where was I?  Oh, yes.  Your part in this.  I would like you to go to Mae'Var and join his guild.~ */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 59 // from: 71.0 48.1
  SAY #31716 /* ~I think you will find the amount adequate. 10,500 gold is no small fortune, though I think you deserve a little more. From my personal armory, a sword.~ */
  IF ~~ THEN GOTO 62
END

IF ~~ THEN BEGIN 60 // from: 48.0
  SAY #31718 /* ~You may find the reward I am about to offer to be as much a blessing as a curse. I know that I have felt as such on occasion. Listen to what I am about to say.~ */
  IF ~~ THEN GOTO 61
END

IF ~~ THEN BEGIN 61 // from: 60.0
  SAY #31724 /* ~I require someone to take the position left vacant by Mae'Var. It must be someone I can trust, so they cannot be too mired in the politics of the region.~ */
  IF ~~ THEN GOTO 63
END

IF ~~ THEN BEGIN 62 // from: 59.0
  SAY #31731 /* ~Take well and good care of it. You have served well and I am grateful. Go on your way with my blessing.~ */
  IF ~~ THEN REPLY #42460 /* ~I was wondering... is there anything you can tell me about this wizard, Irenicus?  Or about the Cowled Wizards who hold Imoen?~ */ DO ~GiveGoldForce(10500)
GiveItem("sw1h10",LastTalkedToBy)~ GOTO 84
  IF ~~ THEN REPLY #42461 /* ~I'll be on my way, then.~ */ DO ~GiveGoldForce(10500)
GiveItem("sw1h10",LastTalkedToBy)~ EXIT
END

IF ~~ THEN BEGIN 63 // from: 61.0
  SAY #31741 /* ~You might be a good choice for the job. You handled Mae'Var and his rhetoric, and you seem to understand the benefits of supporting the larger guild.~ */
  IF ~~ THEN GOTO 64
END

IF ~~ THEN BEGIN 64 // from: 63.0
  SAY #31748 /* ~What do you say? Care to have your name placed above a young guild of Shadow Thieves?~ */
  IF ~~ THEN REPLY #31749 /* ~Without question. I will do my best to turn it into a prosperous guild.~ */ GOTO 69
  IF ~~ THEN REPLY #31750 /* ~I can't. I must raise gold so the Shadow Thieves will aid me in finding Imoen.~ */ GOTO 65
  IF ~~ THEN REPLY #31751 /* ~I do not wish the headache of such a position. I am no guild leader.~ */ GOTO 67
END

IF ~~ THEN BEGIN 65 // from: 64.1
  SAY #31761 /* ~Ah, yes. I believe I have heard of your arrangement. It is admirable that you would place your goals above your personal advancement.~ */
  IF ~~ THEN GOTO 66
END

IF ~~ THEN BEGIN 66 // from: 65.0
  SAY #31764 /* ~I would suggest, however, that running a successful guild could be a very profitable exercise. Perform well and you may be closer to your goal than you think.~ */
  IF ~~ THEN REPLY #31776 /* ~Then I accept. I will do my best to turn the guild around.~ */ GOTO 69
  IF ~~ THEN REPLY #31777 /* ~No, I am no guild leader.~ */ GOTO 67
END

IF ~~ THEN BEGIN 67 // from: 66.1 64.2
  SAY #31867 /* ~No you are not, but what does that matter? Mae'Var was ideal, and yet he conspired to ruin everything. You are inexperienced, but I can at least trust you.~ */
  IF ~~ THEN GOTO 68
END

IF ~~ THEN BEGIN 68 // from: 67.0
  SAY #31869 /* ~Are you certain of this? I will not offer the position again.~ */
  IF ~~ THEN REPLY #31870 /* ~I accept. I will turn Mae'Var's treachery into your profit.~ */ GOTO 69
  IF ~~ THEN REPLY #31871 /* ~I cannot accept.~ */ GOTO 71
END

IF ~~ THEN BEGIN 69 // from: 68.0 66.0 64.0
  SAY #31873 /* ~Excellent, I look forward to seeing what you can do. Return to Mae'Var's vacant office. I will have it seeded it with a few promising young thieves.
~ */
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Yoshimo")~ THEN GOTO 77
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 149
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 218
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 74
END

IF ~~ THEN BEGIN 70 // from: 77.0
  SAY #31878 /* ~I will appoint a lieutenant of skill to aid you. Jariel will serve as a fine right hand. He will be waiting for you, and I will speak to you through him.~ */
  IF ~~ THEN REPLY #31937 /* ~I will make the Shadow Thieves proud.~ */ GOTO 72
  IF ~~ THEN REPLY #31938 /* ~I will remake the guild in my image.~ */ GOTO 73
  IF ~~ THEN REPLY #31939 /* ~I will move the guild cautiously forward.~ */ GOTO 74
END

IF ~~ THEN BEGIN 71 // from: 68.1
  SAY #31925 /* ~That is unfortunate, but I will not make you a leader if you don't want it. All right then, I will pay you a stranger's reward, and send you on your way.~ */
  IF ~~ THEN GOTO 59
END

IF ~~ THEN BEGIN 72 // from: 70.0
  SAY #31956 /* ~See that you do, but do not tailor your actions only to please your superiors. I have plenty of yes-men already. Good luck.~ */
  IF ~~ THEN REPLY #42470 /* ~I was wondering... is there anything you can tell me about this wizard, Irenicus?  Or about the Cowled Wizards who hold Imoen?~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("PlayerThiefGuild","GLOBAL",1)
SetGlobalTimer("JosterReturn","GLOBAL",FIVE_DAYS)
SetGlobal("JosterLeave","GLOBAL",1)
~ UNSOLVED_JOURNAL #45237 /* ~Thieves' Guild Stronghold

Renal has rewarded me for the death of Mae'Var by granting me the guild that Mae'Var once ran.  Renal has already sent new guildmembers there to serve and advise me, and I should check in as soon as possible to get things running.  Renal did mention that a quotamaster would be coming by the guild every now and again to collect his tithe... failure to pay will result in a loss of the guild.
But anything else I can make with the guild is my own profit.~ */ GOTO 84
  IF ~~ THEN REPLY #42471 /* ~Thank you... I'll be going, then.~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("PlayerThiefGuild","GLOBAL",1)
SetGlobalTimer("JosterReturn","GLOBAL",FIVE_DAYS)
SetGlobal("JosterLeave","GLOBAL",1)~ UNSOLVED_JOURNAL #45237 /* ~Thieves' Guild Stronghold

Renal has rewarded me for the death of Mae'Var by granting me the guild that Mae'Var once ran.  Renal has already sent new guildmembers there to serve and advise me, and I should check in as soon as possible to get things running.  Renal did mention that a quotamaster would be coming by the guild every now and again to collect his tithe... failure to pay will result in a loss of the guild.
But anything else I can make with the guild is my own profit.~ */ EXIT
END

IF ~~ THEN BEGIN 73 // from: 70.1
  SAY #31957 /* ~That is your decision to make, but I would not deviate too far from the established norm. You must please the Shadow Thieves in some measure. Good luck.~ */
  IF ~~ THEN REPLY #42473 /* ~I was wondering... is there anything you can tell me about this wizard, Irenicus?  Or about the Cowled Wizards who hold Imoen?~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("PlayerThiefGuild","GLOBAL",1)
SetGlobalTimer("JosterReturn","GLOBAL",FIVE_DAYS)
SetGlobal("JosterLeave","GLOBAL",1)
~ JOURNAL #45237 /* ~Thieves' Guild Stronghold

Renal has rewarded me for the death of Mae'Var by granting me the guild that Mae'Var once ran.  Renal has already sent new guildmembers there to serve and advise me, and I should check in as soon as possible to get things running.  Renal did mention that a quotamaster would be coming by the guild every now and again to collect his tithe... failure to pay will result in a loss of the guild.
But anything else I can make with the guild is my own profit.~ */ GOTO 84
  IF ~~ THEN REPLY #42474 /* ~Thank you... I'll be going, then.~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("PlayerThiefGuild","GLOBAL",1)
SetGlobalTimer("JosterReturn","GLOBAL",FIVE_DAYS)
SetGlobal("JosterLeave","GLOBAL",1)~ UNSOLVED_JOURNAL #45237 /* ~Thieves' Guild Stronghold

Renal has rewarded me for the death of Mae'Var by granting me the guild that Mae'Var once ran.  Renal has already sent new guildmembers there to serve and advise me, and I should check in as soon as possible to get things running.  Renal did mention that a quotamaster would be coming by the guild every now and again to collect his tithe... failure to pay will result in a loss of the guild.
But anything else I can make with the guild is my own profit.~ */ EXIT
END

IF ~~ THEN BEGIN 74 // from: 70.2
  SAY #31958 /* ~Wise, but do not be afraid to take large steps on occasion. You will need to be bold in your decisions. Good luck.~ */
  IF ~~ THEN REPLY #42475 /* ~I was wondering... is there anything you can tell me about this wizard, Irenicus?  Or about the Cowled Wizards who hold Imoen?~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("PlayerThiefGuild","GLOBAL",1)
SetGlobalTimer("JosterReturn","GLOBAL",FIVE_DAYS)
SetGlobal("JosterLeave","GLOBAL",1)
~ JOURNAL #45237 /* ~Thieves' Guild Stronghold

Renal has rewarded me for the death of Mae'Var by granting me the guild that Mae'Var once ran.  Renal has already sent new guildmembers there to serve and advise me, and I should check in as soon as possible to get things running.  Renal did mention that a quotamaster would be coming by the guild every now and again to collect his tithe... failure to pay will result in a loss of the guild.
But anything else I can make with the guild is my own profit.~ */ GOTO 84
  IF ~~ THEN REPLY #42476 /* ~Thank you... I'll be going, then.~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("PlayerThiefGuild","GLOBAL",1)
SetGlobalTimer("JosterReturn","GLOBAL",FIVE_DAYS)
SetGlobal("JosterLeave","GLOBAL",1)~ UNSOLVED_JOURNAL #45237 /* ~Thieves' Guild Stronghold

Renal has rewarded me for the death of Mae'Var by granting me the guild that Mae'Var once ran.  Renal has already sent new guildmembers there to serve and advise me, and I should check in as soon as possible to get things running.  Renal did mention that a quotamaster would be coming by the guild every now and again to collect his tithe... failure to pay will result in a loss of the guild.
But anything else I can make with the guild is my own profit.~ */ EXIT
END

IF WEIGHT #13 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Global("PlayerThiefGuild","GLOBAL",1)
Global("PGFailed","GLOBAL",0)
!Global("Chapter","GLOBAL",6)~ THEN BEGIN 75 // from:
  SAY #31965 /* ~You should be attending the affairs of your own guild, <CHARNAME>.  Joster will be by to collect your dues, and I'm sure your lieutenant can answer any other questions you have.  Shoo!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #14 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Global("RenalJob","GLOBAL",4)
Global("PlayerThiefGuild","GLOBAL",0)
Global("PGFailed","GLOBAL",0)
!Global("Chapter","GLOBAL",6)~ THEN BEGIN 76 // from:
  SAY #31966 /* ~I thank you for your assistance, but I am done with you for now. Leave me to my work.~ [RENAL12] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 77 // from: 69.0
  SAY #32433 /* ~Do not think me totally benevolent, I still intend to get some profit out of you. There will be a quota you must meet. If you fail, you will lose the guild.~ */
  IF ~~ THEN DO ~SetGlobal("PGQuota","GLOBAL",1)
GiveGoldForce(10500)
~ GOTO 70
END

IF WEIGHT #15 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Global("PGFailed","GLOBAL",1)
!Global("Chapter","GLOBAL",6)~ THEN BEGIN 78 // from:
  SAY #32859 /* ~Ahh, you have returned. I thought you might. Are you missing the feeling of control that you had as head of your guild? I do not blame you.~ */
  IF ~~ THEN REPLY #32866 /* ~Is there a way for me to become a guild leader again?~ */ GOTO 79
  IF ~~ THEN REPLY #32867 /* ~I don't mind that the guild is gone. I'm fine on my own for now.~ */ GOTO 83
END

IF ~~ THEN BEGIN 79 // from: 107.0 78.0
  SAY #32868 /* ~I suppose I could reinstall you as head of the guild, though you would have no new resources. It would just be a matter of you paying a small fine.~ */
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN GOTO 80
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN GOTO 81
END

IF ~~ THEN BEGIN 80 // from: 79.0
  SAY #32882 /* ~I think 5,000 gold will suffice, don't you? It will more than make up for the payments you have missed.~ */
  IF ~PartyGoldGT(4999)
~ THEN REPLY #32884 /* ~I'll pay it. Anything to regain the status I had as a guildmaster.~ */ DO ~TakePartyGold(5000)
~ GOTO 82
  IF ~~ THEN REPLY #32885 /* ~I cannot afford that just yet.~ */ GOTO 83
END

IF ~~ THEN BEGIN 81 // from: 79.1
  SAY #32883 /* ~Perhaps 4,000 gold will suffice. It will revitalize my faith in you as a provider for your guild.~ */
  IF ~PartyGoldGT(3999)
~ THEN REPLY #32886 /* ~I'll pay it. Anything to regain the status I had as a guildmaster.~ */ DO ~TakePartyGold(4000)
~ GOTO 82
  IF ~~ THEN REPLY #32887 /* ~I cannot afford that just yet.~ */ GOTO 83
END

IF ~~ THEN BEGIN 82 // from: 81.0 80.0
  SAY #32888 /* ~Well, it's good to have you back with us. Consider your guild resanctioned. Go take good care of it this time.~ */
  IF ~~ THEN DO ~SetGlobalTimer("JosterReturn","GLOBAL",SIX_DAYS)
SetGlobal("JosterLeave","GLOBAL",1)
SetGlobal("PGFailed","GLOBAL",0)
EraseJournalEntry(55542)
EraseJournalEntry(55538)
EraseJournalEntry(55543)~ EXIT
END

IF ~~ THEN BEGIN 83 // from: 107.1 81.1 80.1 78.1
  SAY #32889 /* ~Unfortunate. Perhaps you are just not guildmaster material. I am sorry I couldn't help you.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #55543 /* ~Thieves' Guild Stronghold: The price of failure.

It appears that Renal will allow me to continue as master of my own guild branch, but it will cost me to do so.~ */ EXIT
END

IF ~~ THEN BEGIN 84 // from: 74.0 73.0 72.0 62.0
  SAY #42462 /* ~Heh, you are a tricky one. Didn't Gaelan already tell you that the Shadow Thieves would be perfectly willing to help you out at the correct price?~ */
  IF ~~ THEN GOTO 87
END

IF ~~ THEN BEGIN 85 // from:
  SAY #42463 /* ~~ */
  IF ~~ THEN GOTO 86
END

IF ~~ THEN BEGIN 86 // from: 85.0
  SAY #42464 /* ~~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 87 // from: 84.0
  SAY #42465 /* ~I cannot confirm anything else about the deal, except to confirm that yes... we can look into the locations of both Irenicus and your friend Imoen.~ */
  IF ~~ THEN GOTO 88
END

IF ~~ THEN BEGIN 88 // from: 87.0
  SAY #42467 /* ~Prying such information from the Cowled Wizards will be difficult, hence the cost. That is all I will say.  Raise your money for Gaelan. You will not be disappointed.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #16 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Global("Chapter","GLOBAL",6)
Global("ShadowFightBodhi","GLOBAL",0)
!Dead("c6bodhi")
Global("PCComesForth","LOCALS",0)~ THEN BEGIN 89 // from:
  SAY #53123 /* ~I understand that the Shadowmaster himself has called for you, <CHARNAME>.  I suggest you do that, for I can do nothing to aid you, otherwise.~ */
  IF ~!Global("PGFailed","GLOBAL",1)~ THEN EXIT
  IF ~Global("PGFailed","GLOBAL",1)~ THEN GOTO 107
END

IF WEIGHT #17 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Global("Chapter","GLOBAL",6)
Global("ShadowFightBodhi","GLOBAL",1)
!Dead("c6bodhi")
Global("PCComesForth","LOCALS",0)~ THEN BEGIN 90 // from:
  SAY #53124 /* ~So the Shadow Thieves will help in your battle against that undead witch and her coven.  I'll be send my best assassins, you can be sure, <CHARNAME>.~ */
  IF ~!Global("PGFailed","GLOBAL",1)~ THEN EXIT
  IF ~Global("PGFailed","GLOBAL",1)~ THEN GOTO 107
END

IF WEIGHT #18 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Global("Chapter","GLOBAL",6)
Global("ShadowFightBodhi","GLOBAL",2)
!Dead("c6bodhi")
Global("PCComesForth","LOCALS",0)~ THEN BEGIN 91 // from:
  SAY #53126 /* ~Hmm, I don't know what you did to anger Aran, but he's told us to refuse any aid against that undead witch.  I'm sorry, <CHARNAME>, there's nothing I can do.~ */
  IF ~!Global("PGFailed","GLOBAL",1)~ THEN EXIT
  IF ~Global("PGFailed","GLOBAL",1)~ THEN GOTO 107
END

IF WEIGHT #19 /* Triggers after states #: 95 100 101 108 109 even though they appear after this state */
~Global("Chapter","GLOBAL",6)
Dead("c6bodhi")~ THEN BEGIN 92 // from:
  SAY #53134 /* ~I understand that the undead creature Bodhi is finally dead.  Good job, <CHARNAME>.  The Shadow Thieves will not forget you for this help you have given us.~ */
  IF ~!Global("PGFailed","GLOBAL",1)~ THEN EXIT
  IF ~Global("PGFailed","GLOBAL",1)~ THEN GOTO 107
END

IF ~~ THEN BEGIN 93 // from: 43.1
  SAY #58407 /* ~Did I accuse you of being one?  Certainly not.  Indeed, it is a grim vocation, and one I shy away from myself. It has, however, become necessary.~ */
  IF ~~ THEN GOTO 46
END

IF ~~ THEN BEGIN 94 // from: 46.2
  SAY #58409 /* ~Ask the men he tortures, or the brothers he would betray. He values no life over his own, and is not shy about cutting them short.~ */
  IF ~~ THEN GOTO 47
END

IF WEIGHT #2 ~NumTimesTalkedTo(0)
See("Yoshimo")
InParty("Yoshimo")~ THEN BEGIN 95 // from:
  SAY #59433 /* ~My, my.  If it isn't the freelancer, Yoshimo, come to see me at last.  I had nearly thought that the streets had opened up and swallowed you whole, dear lad.~ */
  IF ~~ THEN DO ~SetGlobal("YoshimoShadowTrouble","GLOBAL",1)
EraseJournalEntry(293)
~ EXTERN ~YOSHJ~ 140
END

IF ~~ THEN BEGIN 96 // from:
  SAY #59436 /* ~Well now, that would imply that you were one of my peers, as opposed to a rag-tag independent infringing on our territory. You are just too much, Yoshi.~ */
  IF ~~ THEN EXTERN ~YOSHJ~ 141
END

IF ~~ THEN BEGIN 97 // from:
  SAY #59438 /* ~Point taken. Have you finally come to pay your debt for your recent activities, or are we to simply trade barbs until I am forced to do something hideous?~ */
  IF ~~ THEN EXTERN ~YOSHJ~ 142
END

IF ~~ THEN BEGIN 98 // from:
  SAY #59440 /* ~I thought I did, but it appears you have done something better. Your traveling companion is of interest and you have brought <PRO_HIMHER> before me. My thanks.~ */
  IF ~~ THEN EXTERN ~YOSHJ~ 143
END

IF ~~ THEN BEGIN 99 // from:
  SAY #59443 /* ~I initially thought I did, but it appears you have done something better.  Your traveling companion, go and fetch <PRO_HIMHER>.  We have business, <PRO_HESHE> and I.~ */
  IF ~~ THEN DO ~SetGlobal("PCComesForth","LOCALS",1)~ EXIT
END

IF WEIGHT #3 ~Global("PCComesForth","LOCALS",1)
OR(2)
!See(Player1)
!See("Yoshimo")~ THEN BEGIN 100 // from:
  SAY #59445 /* ~I have nothing to say until both <CHARNAME> and Yoshimo are before me.  Please bring them and we may continue our discussion.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~Global("PCComesForth","LOCALS",1)
See(Player1)
See("Yoshimo")~ THEN BEGIN 101 // from:
  SAY #59447 /* ~Hmm.  This is the <CHARNAME> I have heard so much of, then, Yoshimo?~ */
  IF ~~ THEN DO ~SetGlobal("PCComesForth","LOCALS",0)
EraseJournalEntry(293)~ EXTERN ~YOSHJ~ 143
END

IF ~~ THEN BEGIN 102 // from:
  SAY #59449 /* ~No, no.  Nothing like that, I assure you.  Now let me speak to your companion for a moment.~ */
  IF ~ReactionLT(Player1,15)~ THEN GOTO 0
  IF ~ReactionGT(Player1,14)~ THEN GOTO 1
END

IF ~~ THEN BEGIN 103 // from:
  SAY #59450 /* ~Indeed, Yoshimo.  I suppose you are wondering about your own status, perhaps, now that <CHARNAME> has refused my proposal?~ */
  IF ~~ THEN EXTERN ~YOSHJ~ 144
END

IF ~~ THEN BEGIN 104 // from:
  SAY #59452 /* ~Well, I intend to wait for the off chance that you convince <CHARNAME> to take my offer.  We can put off your debt, Yoshimo... for now.~ */
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Korgan")~ THEN EXIT
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 146
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 90
END

IF ~~ THEN BEGIN 105 // from: 27.1
  SAY #59455 /* ~In case you are wondering, Yoshimo, this will ease your 'freelance' activity debts. So long as you help <CHARNAME>, they will be overlooked... for now.~ */
  IF ~~ THEN EXTERN ~YOSHJ~ 145
END

IF ~~ THEN BEGIN 106 // from:
  SAY #59457 /* ~~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 107 // from: 92.1 91.1 90.1 89.1
  SAY #61003 /* ~One more thing, <CHARNAME>; have you begun to miss control over your guild, yet?  Some take to guild life easier than others, perhaps you wish another chance?~ */
  IF ~~ THEN REPLY #61004 /* ~So there is a way for me to lead the guild again?~ */ GOTO 79
  IF ~~ THEN REPLY #61005 /* ~No, I think I'm fine on my own for now.~ */ GOTO 83
END

IF WEIGHT #5 ~NumTimesTalkedTo(0)
InParty("Yoshimo")
OR(2)
!See("Yoshimo")
Dead("Yoshimo")~ THEN BEGIN 108 // from:
  SAY #61049 /* ~So then, You are the <PRO_MANWOMAN> who is traveling with Yoshimo, yes? I've heard much about you and would rather speak to you than that thief, at any rate.~ */
  IF ~~ THEN REPLY #61050 /* ~What, exactly, have you been told of me?~ */ DO ~EraseJournalEntry(293)~ GOTO 54
  IF ~~ THEN REPLY #61051 /* ~You want to see me and not Yoshimo?  Why?  What do you want?~ */ DO ~EraseJournalEntry(293)~ GOTO 5
  IF ~~ THEN REPLY #61052 /* ~I came here at Yoshimo's request.  I won't stand here and be treated like a lackey.~ */ DO ~EraseJournalEntry(293)~ GOTO 8
END

IF WEIGHT #6 ~Global("RenalJob","GLOBAL",2)
!Dead("MaeVar")~ THEN BEGIN 109 // from:
  SAY #61961 /* ~O-ho!  Back again, I see.  Have you changed your mind, then?  I really would prefer to have Mae'Var taken care of, once and for all... and I can't think of anyone more capable than yourself.~ */
  IF ~~ THEN REPLY #61962 /* ~Yes, I've changed my mind.  I'll do it.~ */ GOTO 45
  IF ~~ THEN REPLY #61963 /* ~No, I'm not willing to do that, Renal.~ */ GOTO 110
END

IF ~~ THEN BEGIN 110 // from: 109.1
  SAY #61964 /* ~Then why did you return?  If the deed's not done, there's still no reward... that hasn't changed.  Continue to think about it, if you like.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 111 // from: 49.2
  SAY #62160 /* ~But that's not what I asked you to do, is it?  I needed the evidence before I could order Mae'Var's death!  Now it will look like I made the evidence after the fact!!~ */
  IF ~~ THEN DO ~AddexperienceParty(25000)
~ GOTO 51
END
