// creator  : weidu.exe (version 23600)
// argument : DUSHAI.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #1 /* Triggers after states #: 15 even though they appear after this state */
~  Global("MetMendas","GLOBAL",1)
Global("DushTalk","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #21351 /* ~Come to old Dushai, ye do. Come to drink of me gnomish knowledge.~ */
  IF ~~ THEN REPLY #21365 /* ~Uh... yes. Your fame has spread far and wide and adventurers such as ourselves could not pass through Ulgoth's Beard without stopping to see you.~ */ GOTO 1
  IF ~~ THEN REPLY #21369 /* ~I'm sorry, have we met?~ */ GOTO 3
  IF ~~ THEN REPLY #21373 /* ~I sincerely doubt that you have any knowledge that would be of interest to me. Why don't you take your arrogant assumptions and return to your home for the aged where, undoubtedly, your deathbed awaits?~ */ GOTO 2
  IF ~~ THEN REPLY #21378 /* ~Certainly, old woman, if you have knowledge to depart then you have my ear.~ */ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #21381 /* ~A charmer ye be. Even in me younger days I never believed that I held fame beyond the Beard. I know that ye follow Balduran's path to far Anchorome. This is easy to discover for an old woman that knows to heed the whispering stones.~ */
  IF ~~ THEN REPLY #21382 /* ~Well, unfortunately for you, senility has set in and your ravings hold no interest for a young and sane person such as me.~ */ GOTO 2
  IF ~~ THEN REPLY #21383 /* ~What other knowledge do you hold?~ */ GOTO 4
  IF ~~ THEN REPLY #21384 /* ~I'd love to stay and chat but it is nearing the time of departure for the very adventure of which you speak.~ */ GOTO 5
END

IF ~~ THEN BEGIN 2 // from: 1.0 0.2
  SAY #21387 /* ~How very rude ye be! Ye best apologize, for your callous remarks have wounded me delicate spirit.~ */
  IF ~~ THEN REPLY #21388 /* ~I've had enough of you, old gnome! Leave me be!~ */ GOTO 6
  IF ~~ THEN REPLY #21389 /* ~I am sorry ma'am. I spoke wrongly and I beg your forgiveness. Adventuring can be somewhat stressful and I have, unfairly, taken it out on you.~ */ GOTO 7
  IF ~~ THEN REPLY #21390 /* ~You'll get no apologies from me, crone!~ */ GOTO 8
END

IF ~~ THEN BEGIN 3 // from: 0.1
  SAY #21396 /* ~Nay, we have not. I know that ye follow Balduran's path through the Trackless Sea. The stones have told me so.~ */
  IF ~~ THEN REPLY #21398 /* ~I'd love to stay and chat, but it is nearing the time of departure for the very adventure of which you speak.~ */ GOTO 5
  IF ~~ THEN REPLY #21401 /* ~Well, unfortunately for you, senility has set in and your ravings hold no interest for a young and sane person such as myself.~ */ GOTO 8
  IF ~~ THEN REPLY #21403 /* ~What other knowledge do you hold?~ */ GOTO 4
END

IF WEIGHT #2 /* Triggers after states #: 15 even though they appear after this state */
~  Global("DushTalk","GLOBAL",1)
Global("MetMendas","GLOBAL",1)
~ THEN BEGIN 4 // from: 3.2 1.1 0.3
  SAY #21404 /* ~Ye walk quite blindly into this adventure. I know something of Balduran's story and will share it with you. I require only a bit of gold for me research expenses.~ */
  IF ~~ THEN REPLY #21405 /* ~Of course. Will 50 gold pieces do?~ */ GOTO 13
  IF ~~ THEN REPLY #21406 /* ~Alas, I am quite bereft at present. In fact, I was about to ask you for a loan.~ */ GOTO 12
  IF ~  PartyGoldGT(99)
~ THEN REPLY #21407 /* ~Perhaps 100 gold pieces will satisfy your muse?~ */ GOTO 9
  IF ~  PartyGoldLT(100)
~ THEN REPLY #22136 /* ~Will 100 pieces of gold do?~ */ GOTO 16
END

IF ~~ THEN BEGIN 5 // from: 13.0 3.0 1.2
  SAY #21409 /* ~As ye will, adventurer. Should ye wish to hear the story of Balduran at another time, here I shall be.~ */
  IF ~~ THEN DO ~SetGlobal("DushTalk","GLOBAL",1)
~ UNSOLVED_JOURNAL #27027 /* ~Balduran's Final Voyage
A gnomish woman named Dushai claims to have knowledge of Balduran's final voyage. She will share it with us for a "research fee."~ */ EXIT
END

IF ~~ THEN BEGIN 6 // from: 2.0
  SAY #21411 /* ~Oh yes, I will leave ye. This'll teach ye not to be rude with Dushai when she offers help.~ */
  IF ~~ THEN DO ~ForceSpell(LastTalkedToBy,WIZARD_WEB)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 2.1
  SAY #21416 /* ~Well spoken. Perhaps ye have found your manners at last. Ye walk quite blindly into this adventure. I know something of Balduran's story and will share it with you. I require only a bit of gold for me research expenses.~ */
  IF ~~ THEN REPLY #21417 /* ~Of course. Will 50 gold pieces do?~ */ GOTO 13
  IF ~~ THEN REPLY #21420 /* ~Alas, I am quite bereft at present. In fact, I was about to ask you for a loan.~ */ GOTO 12
  IF ~  PartyGoldGT(99)
~ THEN REPLY #21421 /* ~Perhaps 100 gold pieces will satisfy your muse?~ */ GOTO 9
  IF ~  PartyGoldLT(100)
~ THEN REPLY #22134 /* ~Will 100 pieces of gold do?~ */ GOTO 16
END

IF ~~ THEN BEGIN 8 // from: 13.1 3.1 2.2
  SAY #21422 /* ~No respect on me own doorstep. Perhaps ye could use a time out to think upon what ye have said.~ */
  IF ~~ THEN DO ~ForceSpell(LastTalkedToBy,WIZARD_WEB)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 13.2 7.2 4.2
  SAY #21426 /* ~It will, at that. Listen then, and learn. As ye may know, Baldur's Gate was named for the legendary seafaring explorer Balduran, who long ago sailed past Evermeet in search of the rich, fabled isles of Anchorome. Balduran returned with tales of strange, vast lands across the seas. He also brought back much wealth and scattered it about his sparsely settled home harbor. So Baldur's Gate was born.~ */
  IF ~~ THEN DO ~TakePartyGold(100)
~ GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #21428 /* ~He then set sail again for the wondrous lands he had found. Balduran never returned. Some say he sails still, finding new lands in the endless reaches of the far sea, or even that he sailed off the world and fares now among the stars. Others whisper that he met with misfortune and perished in the deeps, while still others believe that he lived to a ripe old age in his newfound home.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #21429 /* ~Perhaps you will discover his fate on this island that you sail to, perhaps not. Regardless, I wish ye well on your journey and may say no more.~ */
  IF ~~ THEN DO ~SetGlobal("Dushover","GLOBAL",1)
EraseJournalEntry(27027)
~ UNSOLVED_JOURNAL #27028 /* ~Balduran's Final Voyage
The gnome Dushai tells us that Balduran sailed for Anchorome and never returned. No one knows his final fate for certain. However, it is odd that he did not return to the city which he founded and loved.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: 7.1 4.1
  SAY #21431 /* ~A bit of a buffoon ye be. Have it as ye will. Come and see me when ye are done with your wretched jests.~ */
  IF ~~ THEN DO ~SetGlobal("DushTalk","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 7.0 4.0
  SAY #21433 /* ~Nay, ye must do better than that.~ */
  IF ~~ THEN REPLY #21464 /* ~Then I shall have to go without your knowledge.~ */ GOTO 5
  IF ~~ THEN REPLY #21465 /* ~Thievery! Surely you hold no knowledge that is worth more than 50 gold. Away hag.~ */ GOTO 8
  IF ~  PartyGoldGT(99)
~ THEN REPLY #21466 /* ~100 gold then. Will that do?~ */ GOTO 9
END

IF WEIGHT #3 /* Triggers after states #: 15 even though they appear after this state */
~  Global("MetMendas","GLOBAL",0)
~ THEN BEGIN 14 // from:
  SAY #21442 /* ~I'm trying to meditate, adventurer. Come and see me later.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  Global("DushOver","GLOBAL",1)
~ THEN BEGIN 15 // from:
  SAY #21467 /* ~I can say nothing more that will help ye.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 16 // from: 7.3 4.3
  SAY #22135 /* ~It will but ye haven't that amount. Return when ye have enough.~ */
  IF ~~ THEN DO ~SetGlobal("DushTalk","GLOBAL",1)
~ EXIT
END
