// creator  : weidu.exe (version 23600)
// argument : X#DAVI.DLG
// game     : .
// source   : ./override/X#DAVI.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~X#DAVI~

IF ~  Global("X#XanQuest1","GLOBAL",1)
~ THEN BEGIN 0 // from:
  SAY #48080 /* ~Help me! Help-~ */
  IF ~~ THEN EXTERN ~X#CHOP~ 1
END

IF ~~ THEN BEGIN 1 // from: X#CRU11:1.1 X#CRU11:0.1
  SAY #48081 /* ~Why, it is a great consolation that I will not die alone, but in the company of these oafs. I guess I will be served as a side-dish, now. What a relief! It's not that Jansens never ended up in the stomachs of various monsters, but they were all main courses... Aunt Marta will be tremendously proud of me, once she learns of this. You will carry a message to her, won't you? Oh! How silly of me! If you will be the *main* course, you won't be able to deliver a message. Oh, I know! Let me go, dear ogre-ladies, and I shall tell Aunt Marta all about how I nearly made it as a side-dish. Bet she'd still be proud. Aunt Marta is the sort of woman who'd be proud of anything.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #48082 /* ~It reminds me of when Cousin Jan had just started smuggling monkeys and- *pauses to take in a breath*~ */
  IF ~~ THEN EXTERN ~X#CHOP~ 2
END

IF ~~ THEN BEGIN 3 // from: X#CRU11:2.2
  SAY #48083 /* ~Noble adventurers! I shall tell everyone about your bravery in saving a small gnome such as I.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #48084 /* ~In fact, I am going to start doing so immediately - or my name isn't David Jansen, famous illusionist and minstrel!~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #48085 /* ~Farewell ladies, I take no offence, for your actions toward me were fueled by the combination of your exceptionally low intellect and my irresistible persona. Too bad that you misinterpreted your attraction as culinary in nature. Wheeee!~ */
  IF ~~ THEN DO ~ReputationInc(1)
AddexperienceParty(200)
EscapeArea()
~ EXTERN ~X#CHOP~ 7
END

IF ~~ THEN BEGIN 6 // from: X#CRU11:2.4 8.1
  SAY #48086 /* ~So, Jan Jansen had only smuggled his first party of monkeys from Chult to Athkatla, and Aunty Marta decided to hold a monkey-themed party because she was so proud of Jan. But one cannot hold a monkey-themed party without a monkey, right? So she let herself into the secret place where Jan kept the monkeys, and put them in the cart to drive to Jan's home. Unfortunately, the guards happened along, and so Jan made it into prison for the very first time. Aunty Marta was very proud of it, too. Not every day your nephew is sent to prison for monkey-smuggling!~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #48087 /* ~They say it was then, in prison, that my dear cousin Jan invented his Bruiser Mates; thinking of Aunt Marta, no doubt. And - Wheeeee!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXTERN ~X#CHOP~ 7
END

IF ~~ THEN BEGIN 8 // from: X#CHOP:8.0
  SAY #48088 /* ~Mmm... turnips... I'd take a good turnip with rhubarb sauce over a gnome a la Tunigian any day! Not even as a side dish. A pity, really. Not a single Jansen yet made a proper side-dish. It's not that we've never ended up in the stomachs of various monsters, but they were all main courses... Aunt Marta will be tremendously proud of me once she learns of this. You will carry a message to her, won't you? Oh! How silly of me! If you will be the *main* course, you won't be able to deliver a message. Oh, I know! Let me go, dear ogre-ladies, and I shall tell Aunt Marta all about how I nearly made it as a side-dish. Bet she'd still be proud. Aunt Marta is the sort of woman who'd be proud of anything. It reminds me of when Cousin Jan had just started smuggling monkeys and- *pauses to take in a breath*~ */
  IF ~~ THEN REPLY #48089 /* ~Erm... so how about I bring you some turnips and grain in exchange for the gnome, my charming lady?~ */ EXTERN ~X#CHOP~ 13
  IF ~~ THEN REPLY #48090 /* ~Please do continue, this story is fascinating!~ */ GOTO 6
  IF ~~ THEN REPLY #48091 /* ~*sigh* I'll leave you, ladies, to listen to this most distinguished gnome.~ */ EXTERN ~X#CHOP~ 6
  IF ~  Race(Player1,HALFORC)
~ THEN REPLY #48092 /* ~Kill him, please! And QUICKLY!~ */ EXTERN ~X#CHOP~ 4
  IF ~  !Race(Player1,HALFORC)
~ THEN REPLY #48092 /* ~Kill him, please! And QUICKLY!~ */ EXTERN ~X#CHOP~ 3
END

IF ~  Global("X#XanQuest1","GLOBAL",7)
~ THEN BEGIN 9 // from:
  SAY #48093 /* ~Mmmgh... Turnips. Ladies, prepare for a treat!~ */
  IF ~~ THEN DO ~TakePartyItem("P#BAG01")
TakePartyItem("P#BAG02")
~ EXTERN ~X#CHOP~ 9
END

IF ~  Global("X#XanQuest1","GLOBAL",8)
OR(3)
!InParty("xan")
!InMyArea("xan")
StateCheck("xan",CD_STATE_NOTVALID)
~ THEN BEGIN 10 // from:
  SAY #48094 /* ~Thank you so much. That elfy must have had a gnomish ancestor, I tell ye, to come up with such a scam. I shall tell everyone about your ingenuity in saving a gnome such as I. In fact, I am going to start doing so immediately - or my name isn't David Jansen, famous illusionist and minstrel!~ */
  IF ~~ THEN DO ~ReputationInc(1)
AddexperienceParty(200)
EscapeArea()
~ EXTERN ~X#CHOP~ 7
END

IF ~  Global("X#XanQuest1","GLOBAL",8)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN BEGIN 11 // from:
  SAY #48095 /* ~Thank you so much. And you, my brother in arts - congratulations, this was rather inventive of you. Are there any gnomes amongst your ancestors?~ */
  IF ~~ THEN EXTERN ~XANJ~ 158
END

IF ~  Global("X#XanQuest1","GLOBAL",11)
~ THEN BEGIN 12 // from:
  SAY #48096 /* ~I prefer you to stay mystified by my amazing abilities. Aunt Marta always was, and even Cousin Jan often spent the whole of five minutes puzzling over my ruses. If I fooled you, I should be able to fool a crowd of miners and peasants. I wonder if one day I may learn Count Calliostroni's Tethyrian trick, which made a bare-naked lady disappear in a puff of smoke with a tray of gems and gold collected from the audience. *sighs wistfully* That was an artist for you! Too bad he was captured somewhere in Thesk and hanged by a group of Thayvian Wizards. But he should have known better than to change the color of the Nevron's robes to green... *bows flamboyantly, reaching even nearer the ground* Good <DAYNIGHT> to you, my friends.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~  Global("X#XanQuest1","GLOBAL",11)
~ THEN BEGIN 13 // from:
  SAY #48097 /* ~Ah, I hope that my business in Nashkel will be most profitable. I wonder if one day I may learn Count Calliostroni's Tethyrian trick, which made a bare-naked lady disappear in a puff of smoke with a tray of gems and gold collected from the audience. *sighs wistfully* That was an artist for you! Too bad he was captured somewhere in Thesk and hanged by a group of Thayvian Wizards. But he should have known better than to change the color of the Nevron's robes to green... *bows flamboyantly, reaching even nearer the ground* Good <DAYNIGHT> to you, my friends.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #48132 /* ~No? I thought as much. It was a bit crude for a gnome, but for an elf it was a perfect scam.~ */
  IF ~~ THEN EXTERN ~XANJ~ 159
END

IF ~~ THEN BEGIN 15 // from:
  SAY #48134 /* ~I sense sarcasm in your tone, elven wizard. Know now, that it's not some simple gnome talking to you, but David Jansen, the famous Illusionist and Minstrel! Hey, no giggling! I will show you... I will prove you my greatness! Here!~ */
  IF ~~ THEN DO ~SetGlobal("X#XanQuest1","GLOBAL",9)
~ EXIT
END

IF ~~ THEN BEGIN 16 // from: X#CRU11:4.0
  SAY #48120 /* ~Go, my noble friends. If I do remember aright, there was a trader who did not charge outrageously for his turnips at the Nashkel fare. Ever did Jansens suspect that their salvation lies in turnips!~ */
  IF ~~ THEN DO ~SetGlobal("X#XanQuest1","GLOBAL",6)
~ EXIT
END
