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

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

IF WEIGHT #1 /* Triggers after states #: 9 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 0 // from:
  SAY #85387 /* ~Night children wayward, are you?  Well, you are welcome here so long as you keep your manners about you.  There is a cost for each head kept safe, but I do not feel like charging today.  Please, rest a while with no worries.~ */
  IF ~~ THEN DO ~StartStore("_TOSILEN",LastTalkedToBy(Myself))
~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 9 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN BEGIN 1 // from:
  SAY #85388 /* ~Walk yourself slowly in, and keep your arms at your sides.  This is no Inn and you get no smiling welcome.  I expect payment for your safekeeping, and you pay by the day and by the head!  The risk I take harboring you low grade hooligans is simply not worth it.  5 gold up front now, if you please.~ */
  IF ~~ THEN REPLY #85389 /* ~Sorry, we can't pay.~ */ GOTO 4
  IF ~~ THEN REPLY #85390 /* ~Here is your 5 gold.~ */ DO ~TakePartyGold(5)
StartStore("_TOSILEN",LastTalkedToBy(Myself))
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 9 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #85391 /* ~This be your one warning!  Walk ye slowly back out with your hands where I can see 'em!  You twitch an eye and you're a fine red mist, instead o' the thick sludge you are now!  Sanctuary ain't open to just any pig-stealin' knicker!~ */
  IF ~~ THEN DO ~Wait(10)
Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #85392 /* ~Payment-time! 5 gold or you hit the bricks!  Everybody have your rent ready.~ */
  IF ~~ THEN REPLY #85393 /* ~We have not the money to pay you with.~ */ GOTO 4
  IF ~~ THEN REPLY #85394 /* ~Here's your coin.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 3.0 1.0
  SAY #85395 /* ~You've not the coin?  I don't run a charity here!  You've got till I get my muscle to be gone.  After that, you'll hit the bricks a touch harder.~ */
  IF ~~ THEN DO ~SetGlobal("NoPayment","GLOBAL",1)
Wait(10)
CreateCreature("_GUARD",[0.0],0)
~ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #85396 /* ~You canna say I didn't warn you.  Please move along before Mongo makes you.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 9 even though they appear after this state */
~Global("Chapter","GLOBAL",7)
Global("SeenSanctuary","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #85397 /* ~I know you not, but I'll not be turning away any of the night's children nowadays.  It's almost with a vengeance that the Flaming Fist keep a lock on the streets now.  Sanctuary be free of charge for the immediate future.  Come in and rest you well.~ */
  IF ~~ THEN DO ~SetGlobal("SeenSanctuary","GLOBAL",1)
StartStore("_TOSILEN",LastTalkedToBy(Myself))
~ JOURNAL #85398 /* ~According to Silence, a member of the local Thieves' Guild, the Flaming Fist has been coming down hard on guildmembers as of late.~ */ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 9 even though they appear after this state */
~Global("Chapter","GLOBAL",7)
Global("SeenSanctuary","GLOBAL",1)
~ THEN BEGIN 7 // from:
  SAY #85399 /* ~I recall you.  Hard to forget a face when I see so few nowadays.  Many a sneaksman has been lost to the guard, now that they seem intent on cleaning the streets to the bone.  Sanctuary is free for the time being.  Rest well.~ */
  IF ~~ THEN DO ~StartStore("_TOSILEN",LastTalkedToBy(Myself))
~ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 9 even though they appear after this state */
~True()
~ THEN BEGIN 8 // from:
  SAY #85400 /* ~I've crossed this Realm time and again, and I am thoroughly convinced that many a fight could have been avoided if the combatants simply had a good night's sleep 'aforehand.  Sanctuary be not so much for hiding as it is for resting nervous bones.~ */
  IF ~~ THEN DO ~StartStore("_TOSILEN",LastTalkedToBy(Myself))
~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #85401 /* ~You may stay in Sanctuary for as long as you like.  Friends like yerselves are hard to come by, I don't wish you to come to trouble on the streets.~ */
  IF ~~ THEN DO ~StartStore("_TOSILEN",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #85402 /* ~Lost your chance with me, you did!  Get lost!  I'll have you quartered and halved if your not gone soon enough!~ */
  IF ~~ THEN EXIT
END
