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

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

IF WEIGHT #2 /* Triggers after states #: 22 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #8538 /* ~Only the protagonist may cast Find Familiar.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #8539 /* ~Anomen, tell me what drew such a handsome, powerful and charismatic individual like yourself to the dreary, hectic life of adventuring?~ [VICONI51] */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #8562 /* ~Are you jealous, <CHARNAME>?  Poor child, there is no reason to be.  I've no interest in this glory-hound, and he's hardly as handsome as you.~ */ GOTO 2
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #8563 /* ~And what would you do if I don't move away?  Berate me, coward?  Tell me a story about Gorion until I fall asleep?~ */ GOTO 3
  IF ~CheckStatGT(LastTalkedToBy,14,STR)
~ THEN REPLY #8564 /* ~Take that back.  Step away, and I'll leave you your limbs and your breath.~ */ GOTO 4
  IF ~CheckStatLT(LastTalkedToBy,15,STR)
~ THEN REPLY #8565 /* ~Let's just keep it together and let this slide. It's not worth arguing about.~ */ GOTO 5
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #8566 /* ~Hah! Typical!  You're worse than a bureaucrat.  All talk, no action.  It's all I've come to expect from you, <CHARNAME>.  Filling the air with words and not the song of steel.~ */ GOTO 6
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #8567 /* ~Your territorial instinct is commendable, but sorely misguided.  A woman's treats are no cause.~ */ GOTO 7
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #8540 /* ~You approach a line that you do not want to cross, Anomen.  Step back before it's too late.~ */
  IF ~~ THEN REPLY #8568 /* ~Er, yes, well. I'm sure he had his reasons. Often it is best to obey the duties of your calling and serve the greater...~ */ GOTO 8
  IF ~~ THEN REPLY #8569 /* ~Awright, I be moving, guv. No need to get yer boots out. Hey, you ain't no city guard. Push off, this here is my squat. Get your own.~ */ GOTO 9
  IF ~~ THEN REPLY #8570 /* ~She! Where is this she? Where has the lady of the house gone?~ */ GOTO 10
END

IF ~~ THEN BEGIN 3 // from: 1.1
  SAY #8541 /* ~I am an instrument of justice, a redeemer of the weak, protector of the righteous and the fallen alike.  I do this because I am compelled by forces beyond my ken.  You?~ */
  IF ~~ THEN DO ~SetGlobal("CharlestonMoved","GLOBAL",1)
CreateCreature("GALLOR",[3077.1261])
ActionOverride("Gallor",MoveToPoint([3069.1315]))
MoveToPoint([3077.1261])
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 1.2
  SAY #8542 /* ~Well, Viconia, you don't have to sleep so far away, next time.  Your hands across these muscles would be more welcome than the brush of canvas, I'd venture.~ */
  IF ~~ THEN REPLY #8571 /* ~Leastwise you could tell the truth if'n yer gonna talk. I knows you ain't the owner.  He wouldn't show his face here... abandoned his wife, they say.~ */ GOTO 6
  IF ~~ THEN REPLY #8572 /* ~Maybe you is him. Yous talk like him. He had a load of reasons too, and I mean a 'LOAD.   Ain't no wonder she hooked up with that bastard when ol' nature boy left.~ */ GOTO 11
  IF ~~ THEN REPLY #8573 /* ~Please, good sir, I must know where she has gone.~ */ GOTO 9
END

IF ~~ THEN BEGIN 5 // from: 1.3
  SAY #8543 /* ~Well, noble one, it seemed like a good idea at the time.  And it seemed to me that all the most muscular and attractive men were doing it so...~ */
  IF ~~ THEN REPLY #8574 /* ~Galia?  I just knows she took her little 'un and went looking where she could for help.  Get lost, nature boy. No sympathy from me.~ */ GOTO 6
  IF ~~ THEN REPLY #8575 /* ~Must? Of all the people it is you that SHOULD know, but now you gotta ask the gutterboy? I say you a sad one.  Go ask Fennecia, maybe she pity you too.~ */ GOTO 10
  IF ~~ THEN REPLY #8576 /* ~Fennecia! She was our serving girl. I was going to ask about her as well.~ */ GOTO 13
  IF ~~ THEN REPLY #8577 /* ~I bet you were. Well, she's turned nanny now. Ain't but across the street.  Don't think she be sympathetic, tho', havin' to take nature boy's place.~ */ GOTO 12
END

IF ~~ THEN BEGIN 6 // from: 5.0 4.0 1.4
  SAY #8544 /* ~Anomen, snap out of it. She's playing you like a cheap violin.~ */
  IF ~~ THEN REPLY #8578 /* ~You needn't continue to chastise.  I have learned my humble position and I shall walk with due care, as a ground squirrel must scurry amidst the feet of...~ */ GOTO 9
  IF ~~ THEN REPLY #8579 /* ~Yammer, yammer, yammer. Save it for someone who cares.~ */ GOTO 8
  IF ~~ THEN REPLY #8580 /* ~Some coins for you, regardless. Farewell.~ */ GOTO 14
END

IF ~~ THEN BEGIN 7 // from: 1.5
  SAY #8545 /* ~It is my pleasure, as always.~ */
  IF ~~ THEN REPLY #8581 /* ~Thanks, guv. I'll send it to me kids. I knows where mine are.~ */ GOTO 14
  IF ~~ THEN REPLY #8582 /* ~Well, that was unpleasant. I guess I should expect more of the same to come. As the trees are buffeted and snapped in the face of the gale, I shall be as the bamboo and flex.~ [CERND69] */ GOTO 8
  IF ~~ THEN REPLY #8583 /* ~A good attitude. You will need it if you wish a second chance from these people.~ */ GOTO 9
END

IF ~~ THEN BEGIN 8 // from: 7.1 6.1 2.0
  SAY #8546 /* ~The line was crossed when your cursed Order dumped me like useless garbage.  Stand and fight, maggot!  I've been pushed too far!~ */
  IF ~~ THEN REPLY #8584 /* ~Oh shut up.~ */ GOTO 15
  IF ~~ THEN REPLY #8585 /* ~A few less parables perhaps. Don't be so quick to proclaim the moral high ground while here.~ */ GOTO 14
  IF ~~ THEN REPLY #8586 /* ~Your faith gives you strength but it is also the indirect cause of this mess. Lay off a bit.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 16.1 14.1 14.0 8.2 7.2 6.0 4.2 2.1
  SAY #8547 /* ~Don't do this, Anomen.~ */
  IF ~~ THEN DO ~SetGlobal("CharlestonMoved","GLOBAL",1)
CreateCreature("GALLOR",[3077.1261])
ActionOverride("Gallor",MoveToPoint([3069.1315]))
MoveToPoint([3077.1261])
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 5.1 2.2
  SAY #8548 /* ~Ah, it is always good to see you. How might I be of service?~ [KELDOR84] */
  IF ~~ THEN DO ~SetGlobal("CharlestonMoved","GLOBAL",1)
CreateCreature("GALLOR",[3077.1261])
ActionOverride("Gallor",MoveToPoint([3069.1315]))
MoveToPoint([3077.1261])
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 4.1
  SAY #8549 /* ~Die, you bastard!~ */
  IF ~~ THEN DO ~SetGlobal("CharlestonMoved","GLOBAL",1)
CreateCreature("GALLOR",[3077.1261])
ActionOverride("Gallor",MoveToPoint([3069.1315]))
MoveToPoint([3077.1261])
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 5.3
  SAY #8550 /* ~I am here to learn more of your Order, Keldorn, if you would be so kind.~ */
  IF ~~ THEN DO ~SetGlobal("CharlestonMoved","GLOBAL",1)
CreateCreature("GALLOR",[3077.1261])
ActionOverride("Gallor",MoveToPoint([3069.1315]))
MoveToPoint([3077.1261])
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 5.2
  SAY #8551 /* ~That is alright. I shall find my own way about, thank you.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from: 8.1 7.0 6.2
  SAY #8552 /* ~I have come to petition for your service. I have need of an experienced knight to assist me in my journeys.~ */
  IF ~CheckStatLT(LastTalkedToBy,9,STR)
~ THEN REPLY #8587 /* ~You are right, I am deserving of their scorn.  I hope my wife Galia is forgiving.  I thought we had an understanding. Come, the house is but across the street.~ */ GOTO 9
  IF ~~ THEN REPLY #8589 /* ~I still feel my greater duty was to nature.  There are several kinds of duty, I suppose.  I hope Galia still understands... come, it is just across the street.~ */ GOTO 9
  IF ~~ THEN REPLY #8590 /* ~It is who I am, but I shall speak with care. I hope Galia is more forgiving. We left under good terms... or so I thought. Come, the nanny is but across the street.~ */ DO ~SetGlobal("CharlestonPay","GLOBAL",50)
~ GOTO 15
  IF ~CheckStatGT(LastTalkedToBy,8,STR)
~ THEN REPLY #8588 /* ~Galia didn't like my words either, but they helped show we were not compatible.  I hope our reunion will be smoother.  Come, the nanny is across the street.~ */ GOTO 16
END

IF ~~ THEN BEGIN 15 // from: 16.0 14.2 8.0
  SAY #8553 /* ~ ay!~ [AERIE13] */
  IF ~~ THEN DO ~SetGlobal("HelpCharleston","GLOBAL",1)
SetGlobal("CharlestonMoved","GLOBAL",1)
CreateCreature("GALLOR",[3077.1261])
ActionOverride("Gallor",MoveToPoint([3069.1315]))
MoveToPoint([3077.1261])
~ EXIT
END

IF ~~ THEN BEGIN 16 // from: 14.3
  SAY #8554 /* ~~ [AERIE14] */
  IF ~~ THEN REPLY #8591 /* ~Who's about? Guards?  Why don'cha go bother slavers instead of the gutterboys? Ain't nobody here to mind. Hey, you ain't no guard. Get off, this is my squat.~ */ DO ~SetGlobal("CharlestonPay","GLOBAL",100)
~ GOTO 15
  IF ~~ THEN REPLY #8592 /* ~This is no more your home than it is mine. I travel with the former owner, and he never mentioned you.~ */ GOTO 9
END

IF WEIGHT #3 /* Triggers after states #: 22 even though they appear after this state */
~Global("CharlestonMoved","GLOBAL",1)
Global("HelpCharleston","GLOBAL",1)
~ THEN BEGIN 17 // from:
  SAY #8555 /* ~Lady Elgea~ */
  IF ~~ THEN DO ~SetGlobal("CharlestonMoved","GLOBAL",2)
ClearAllActions()
StartCutScene("Digcut01")
~ EXIT
END

IF ~~ THEN BEGIN 18 // from:
  SAY #8556 /* ~(My condition draws fools like flies to honey).  Silence, you idiot!  You've a death wish that is larger than your swollen head.~ [EDWINW39] */
  IF ~~ THEN EXTERN ~DIGGER~ 7
END

IF WEIGHT #4 /* Triggers after states #: 22 even though they appear after this state */
~NumDeadGT("CharleDig",5)
PartyHasItem("MISC48")
Global("TalkedToCharleston","GLOBAL",1)
~ THEN BEGIN 19 // from:
  SAY #8558 /* ~Could you two wait until tonight before you start talking dirty and whispering sweet nothings?~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToCharleston","GLOBAL",2)
~ GOTO 21
END

IF WEIGHT #5 /* Triggers after states #: 22 even though they appear after this state */
~NumDeadGT("CharleDig",5)
!PartyHasItem("MISC48")
Global("TalkedToCharleston","GLOBAL",1)
~ THEN BEGIN 20 // from:
  SAY #8559 /* ~Hey, Anomen..step aside! From where I'm standing, it doesn't look much like Viconia's buying what you're selling.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToCharleston","GLOBAL",2)
~ GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.0 19.0
  SAY #8560 /* ~Keep your comments to yourself, <CHARNAME>.~ */
  IF ~~ THEN DO ~GivePartyGoldGlobal("CharlestonPay","GLOBAL")
TakePartyItem("MISC48")
AddexperienceParty(1000)
ReputationInc(1)
~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 22 // from:
  SAY #8953 /* ~I did not think him capable of such a thing. What happened exactly?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 23 // from:
  SAY #8954 /* ~Yes, well he would, wouldn't he? It doesn't matter, really. What's done is done and there's not a damn thing he can do to make it better.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 ~Global("CharlestonMoved","GLOBAL",1)
Global("HelpCharleston","GLOBAL",0)
~ THEN BEGIN 24 // from:
  SAY #1211 /* ~I see. Well, if you travel with the one that harmed me it becomes my business. The 'friends of my enemies' and all that.~ */
  IF ~~ THEN EXIT
END
