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

BEGIN ~_VARCI~

IF ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #80174 /* ~P-Please, might I have your ear a moment?~ */
  IF ~~ THEN DO ~SetGlobalTimer("Varci","GLOBAL",TEN_DAYS)
~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #80175 /* ~My name is Varci, and I have heard you sometimes help those in need, f-for a fee of course.  Please, would you meet with my guardian at his house?  My guardian will reveal the nature of the job once we arrive.  Please, it's a matter of death or life.~ */
  IF ~~ THEN REPLY #80176 /* ~Prove your intention.  I want gold up front before I take a step your direction.~ */ GOTO 3
  IF ~~ THEN REPLY #80177 /* ~Lead on, young one; I will follow.~ */ GOTO 5
  IF ~~ THEN REPLY #80178 /* ~Waste not my time, child!  Begone!~ */ GOTO 4
  IF ~~ THEN REPLY #80179 /* ~I'll not move a muscle without knowing your intent.  What do you require of me?~ */ GOTO 2
  IF ~Global("X#VARCI1","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VARCI1","GLOBAL",1)~ EXTERN ~_KIVANJ~ 431
  IF ~Global("X#VARCI1","GLOBAL",0)
InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VARCI1","GLOBAL",1)~ EXTERN ~_DYNAHJ~ 276
END

IF ~~ THEN BEGIN 2 // from: 6.3 3.2 1.3
  SAY #80180 /* ~It is to my shame that I must ask your help at all.  Please don't make me announce my folly in public.  Unseen ears can divine our words, and our cause be lost if it become known.  My guardian will tell you once we arrive at his home.  He is a Lord Priest of Tymora, and will ensure secrecy.~ */
  IF ~~ THEN REPLY #80176 /* ~Prove your intention.  I want gold up front before I take a step your direction.~ */ GOTO 3
  IF ~~ THEN REPLY #80181 /* ~Lead on young one, I will follow.~ */ GOTO 5
  IF ~~ THEN REPLY #80178 /* ~Waste not my time, child!  Begone!~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 6.0 2.0 1.0
  SAY #80182 /* ~I have naught to offer now, but my guardian will arrange payment of a handsome fee I am sure.  Please, you'll have to trust my good intent.~ */
  IF ~~ THEN REPLY #80181 /* ~Lead on young one, I will follow.~ */ GOTO 5
  IF ~~ THEN REPLY #80178 /* ~Waste not my time, child!  Begone!~ */ GOTO 4
  IF ~~ THEN REPLY #80179 /* ~I'll not move a muscle without knowing your intent.  What do you require of me?~ */ GOTO 2
END

IF ~~ THEN BEGIN 4 // from: 6.2 3.1 2.2 1.2
  SAY #80183 /* ~I see.  I have been misinformed about you.  I had hoped to avoid a known mercenary group, but now I have little choice.  I will bother you no further.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AjantisVarci1","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AjantisVarci1","GLOBAL",1)~ EXTERN ~_AJANTJ~ 72
END

IF ~~ THEN BEGIN 5 // from: 6.1 3.0 2.1 1.1
  SAY #80184 /* ~Oh, excellent!  I may yet repair the damage I have caused.  This way.  I'll show you to the house where my master is staying.~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
  IF ~Global("X#VARCI5","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VARCI5","GLOBAL",1)~ GOTO 12
  IF ~Global("X#VARCI5","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VARCI5","GLOBAL",1)~ EXTERN ~_IMOEN2~ 502
  IF ~Global("X#VARCI5","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VARCI5","GLOBAL",1)~ GOTO 14
  IF ~Global("X#VARCI5","GLOBAL",0)
!Global("X#AjantisRejectedVarci","GLOBAL",1)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VARCI5","GLOBAL",1)~ EXTERN ~_AJANTJ~ 303
  IF ~Global("X#VARCI5","GLOBAL",0)
Global("X#AjantisRejectedVarci","GLOBAL",1)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VARCI5","GLOBAL",1)~ EXTERN ~_AJANTJ~ 304
END

IF ~!GlobalTimerExpired("Varci","GLOBAL")
Global("HelpVarci","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #80185 /* ~There is yet time to help me, if you so choose.  Please, come to The Lady's Hall with me.  My guardian waits there.~ */
  IF ~~ THEN REPLY #80176 /* ~Prove your intention.  I want gold up front before I take a step your direction.~ */ GOTO 3
  IF ~~ THEN REPLY #80181 /* ~Lead on young one, I will follow.~ */ GOTO 5
  IF ~~ THEN REPLY #80178 /* ~Waste not my time, child!  Begone!~ */ GOTO 4
  IF ~~ THEN REPLY #80179 /* ~I'll not move a muscle without knowing your intent.  What do you require of me?~ */ GOTO 2
END

IF ~~ THEN BEGIN 7 // from: _TREMAI:1.0
  SAY #80186 /* ~Your thoughts know as I do, and there be no denying it.  We need outside help to fix what's done, and talk among the alleys say this group may be as effective as any we could hope for.~ */
  IF ~~ THEN EXTERN ~_TREMAI~ 2
END

IF ~~ THEN BEGIN 8 // from: _VICONJ:130.0 _TREMAI:17.0 _TREMAI:2.0
  SAY #80220 /* ~We thought it would be exciting, causing a little mischief amidst Umberlee's underlings, only it wasn't that much fun when we were caught.  We both ran.  I got away; Casson didn't.  They... they killed him as we sought to escape.~ */
  IF ~~ THEN EXTERN ~_TREMAI~ 3
END

IF ~~ THEN BEGIN 9 // from:
  SAY #80221 /* ~I realize that our meeting didn't go exceptionally well, but please reconsider.  If you were to deliver Casson's body here within the 10 days, I am sure the original offer would still stand.  I implore you, there is no other solution for him or us.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from: _TREMAI:10.0
  SAY #80222 /* ~Please pay Tremain no mind, we have risked much only to have failed.  Though our deal was not completed, and you not paid, we respect that you tried nonetheless.  I shall spread the word among the clergy that you are to be extended every hospitality.  As much as Tremain has tried to keep this private, a number of his brethren know and sympathize with his plight.  They will look kindly on you if needs be.  Goodbye.~ */
  IF ~~ THEN DO ~EraseJournalEntry(80202)
ActionOverride("tremain",EscapeArea())
EscapeArea()
~ SOLVED_JOURNAL #88969 /* ~Tremain's son

I was not able to rescue Tremain's son in a timely manner, so any hope of raising the boy has been lost.~ */ EXIT
END

IF ~Global("TremainMove","GLOBAL",3)
~ THEN BEGIN 11 // from:
  SAY #80223 /* ~I've your payment here.  Tsk, it will be some time before Casson and I get a night out again.  It is good to have him back among the living, though I take some small pleasure in the trouble he's in for what we did.  You'll notice I've not sat down since you've known me.  Sometimes "Our Lady Who Smiles" downright laughs out loud.  Look to us if you need aid in the future.  Many a Tymoran will look favorably on you now.  Good day.~ */
  IF ~~ THEN DO ~SetGlobal("TremainMove","GLOBAL",4)
EraseJournalEntry(80202)
GiveGoldForce(2000)
GiveItem("_SHLD07",LastTalkedToBy)
AddexperienceParty(5000)
EscapeArea()
~ SOLVED_JOURNAL #88970 /* ~Tremain's son

I rescued Casson from the Temple of Umberlee in time for life to be restored to his body.  Tremain was overjoyed, but his jubilance quickly turned into a storm of paternal anger at his son's mischief.  Poor boy... twice chastised for his folly, and the punishment of the Umberlants looking the less harsh of the two!~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: 5.1
  SAY #103789 /* ~This way!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #103789 /* ~This way!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from: 5.3
  SAY #99458 /* ~Thank you!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN GOTO 15
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_IMOEN2~ 503
END

IF ~~ THEN BEGIN 15 // from: 14.1
  SAY #103789 /* ~This way!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 16 // from:
  SAY #99458 /* ~Thank you!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN GOTO 17
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_IMOEN2~ 504
END

IF ~~ THEN BEGIN 17 // from: 16.1
  SAY #103789 /* ~This way!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 18 // from:
  SAY #99458 /* ~Thank you!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN GOTO 19
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_IMOEN2~ 505
END

IF ~~ THEN BEGIN 19 // from: 18.1
  SAY #103789 /* ~This way!~ */
  IF ~~ THEN DO ~SetGlobal("HelpVarci","GLOBAL",1)
MoveToPoint([900.717])
OpenDoor("door0617")
DestroySelf()
~ EXIT
END
