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

BEGIN ~MEILUM~

IF ~  True()
~ THEN BEGIN 0 // from:
  SAY #18463 /* ~Greetings, little ones. You have the look of experienced travelers, and a few of you look to be fine warriors. My name is Meilum, I'm the Sword Coast's most skilled swordsman. You may have heard of my name, I'm quite famous, after all.~ */
  IF ~~ THEN REPLY #18467 /* ~No, we haven't heard your name before. We'd just like to be on our way.~ */ GOTO 2
  IF ~~ THEN REPLY #18468 /* ~If you're such a good swordsman, why are you wandering about the wilderness dressed in what amounts to rags?~ */ GOTO 3
  IF ~~ THEN REPLY #18471 /* ~Wow! The best swordsman on the Sword Coast. It's an honor to meet such a distinguished man.~ */ GOTO 1
  IF ~Global("X#MEILUM0","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MEILUM0","GLOBAL",1)~ GOTO 10
  IF ~Global("X#MEILUM0","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MEILUM0","GLOBAL",1)~ EXTERN ~VICONJ~ 213
  IF ~Global("X#MEILUM0","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MEILUM0","GLOBAL",1)~ EXTERN ~EDWINJ~ 198
  IF ~Global("X#MEILUM0","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MEILUM0","GLOBAL",1)~ EXTERN ~GARRIJ~ 194
END

IF ~~ THEN BEGIN 1 // from: 13.2 12.2 11.2 10.2 2.1 0.2
  SAY #18473 /* ~Yes, I know, I know. I'm quite unbeatable. Never lost a fight once. Sometimes it can be a pain being such a renowned swordsman. You know, people making challenges, women throwing their underpants. But what can a man do? If you're born with a skill, you may as well show it off.~ */
  IF ~~ THEN REPLY #18476 /* ~Ye natty clap-dragon. We're making a challenge, so draw steel and we'll see who's the best swordsman on the Sword Coast.~ */ GOTO 4
  IF ~~ THEN REPLY #18477 /* ~Well, it was nice meeting you, Meilum. Maybe we'll meet again, and you could show us a few of your techniques.~ */ GOTO 5
  IF ~Global("X#SHARTEELMEILUM1","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELMEILUM1","GLOBAL",1)~ EXTERN ~SHARTJ~ 111
END

IF ~~ THEN BEGIN 2 // from: 13.0 12.0 11.0 10.0 0.0
  SAY #18478 /* ~You've never heard my name! Why, that's impossible. I'm famous. Think hard... you have heard of Meilum the Masterful.~ */
  IF ~~ THEN REPLY #18479 /* ~Nope, can't say that we've heard of anyone known as Meilum the (heh heh) "Masterful."~ */ GOTO 3
  IF ~~ THEN REPLY #18480 /* ~Yes... now that I've thought harder, I do remember the name Meilum. Wow, I'm in the presence of a real sword saint.~ */ GOTO 1
  IF ~Global("X#SHARTEELMEILUM2","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELMEILUM2","GLOBAL",1)~ EXTERN ~SHARTJ~ 113
END

IF ~~ THEN BEGIN 3 // from: 13.1 12.1 11.1 10.1 2.0 0.1
  SAY #18481 /* ~Are you insulting me?! You had better not dare to insult me, or I'll show you the metal of my blade. Once I've drawn my sword, I'm honor bound to wet the blade.~ */
  IF ~~ THEN REPLY #18482 /* ~Well, why don't you draw your sword then, so that we can see who the better swordsman is: you or our party.~ */ GOTO 4
  IF ~~ THEN REPLY #18483 /* ~No, I'm not insulting you. Just calm down. We'll be on our way now.~ */ GOTO 6
  IF ~Global("X#SHARTEELMEILUM3","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELMEILUM3","GLOBAL",1)~ EXTERN ~SHARTJ~ 114
END

IF ~~ THEN BEGIN 4 // from: 9.0 8.0 3.0 1.0
  SAY #18484 /* ~Now you've done it. You'll be sorry for doubting my skill. So very sorry...~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~Global("X#BranwenMelium","GLOBAL",0)
InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#BranwenMelium","GLOBAL",1)~ EXTERN ~BRANWJ~ 27
END

IF ~~ THEN BEGIN 5 // from: 8.1 1.1
  SAY #18485 /* ~All right then, I'd better be off now. You know how it is, places to go, people to meet.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 9.1 3.1
  SAY #18486 /* ~Hmmph! Goodbye and good riddance.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #45154 /* ~Ah, my pretty, I'd rather you show me what you like between the sheets, but if you doubt my skill...~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #46484 /* ~Holding a knitting crochet? Woman, I said *people* making challenges, *women* throwing underpants.~ */
  IF ~~ THEN REPLY #18476 /* ~Ye natty clap-dragon. We're making a challenge, so draw steel and we'll see who's the best swordsman on the Sword Coast.~ */ GOTO 4
  IF ~~ THEN REPLY #18477 /* ~Well, it was nice meeting you, Meilum. Maybe we'll meet again, and you could show us a few of your techniques.~ */ GOTO 5
  IF ~  InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN EXTERN ~SHARTJ~ 112
END

IF ~~ THEN BEGIN 9 // from:
  SAY #46488 /* ~Oh, not another one who covers up the fears of being defeated with philosophical nonsense.~ */
  IF ~~ THEN REPLY #18482 /* ~Well, why don't you draw your sword then, so that we can see who the better swordsman is: you or our party.~ */ GOTO 4
  IF ~~ THEN REPLY #18483 /* ~No, I'm not insulting you. Just calm down. We'll be on our way now.~ */ GOTO 6
  IF ~  InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN EXTERN ~SHARTJ~ 115
END

IF ~~ THEN BEGIN 10 // from: 0.3
  SAY #50131 /* ~Dismissing my skill as such just shows you to be the ignorant one, drow.~ */
  IF ~~ THEN REPLY #18467 /* ~No, we haven't heard your name before. We'd just like to be on our way.~ */ GOTO 2
  IF ~~ THEN REPLY #18468 /* ~If you're such a good swordsman, why are you wandering about the wilderness dressed in what amounts to rags?~ */ GOTO 3
  IF ~~ THEN REPLY #18471 /* ~Wow! The best swordsman on the Sword Coast. It's an honor to meet such a distinguished man.~ */ GOTO 1
END

IF ~~ THEN BEGIN 11 // from:
  SAY #50131 /* ~Dismissing my skill as such just shows you to be the ignorant one, drow.~ */
  IF ~~ THEN REPLY #18467 /* ~No, we haven't heard your name before. We'd just like to be on our way.~ */ GOTO 2
  IF ~~ THEN REPLY #18468 /* ~If you're such a good swordsman, why are you wandering about the wilderness dressed in what amounts to rags?~ */ GOTO 3
  IF ~~ THEN REPLY #18471 /* ~Wow! The best swordsman on the Sword Coast. It's an honor to meet such a distinguished man.~ */ GOTO 1
END

IF ~~ THEN BEGIN 12 // from:
  SAY #50131 /* ~Dismissing my skill as such just shows you to be the ignorant one, drow.~ */
  IF ~~ THEN REPLY #18467 /* ~No, we haven't heard your name before. We'd just like to be on our way.~ */ GOTO 2
  IF ~~ THEN REPLY #18468 /* ~If you're such a good swordsman, why are you wandering about the wilderness dressed in what amounts to rags?~ */ GOTO 3
  IF ~~ THEN REPLY #18471 /* ~Wow! The best swordsman on the Sword Coast. It's an honor to meet such a distinguished man.~ */ GOTO 1
END

IF ~~ THEN BEGIN 13 // from:
  SAY #50131 /* ~Dismissing my skill as such just shows you to be the ignorant one, drow.~ */
  IF ~~ THEN REPLY #18467 /* ~No, we haven't heard your name before. We'd just like to be on our way.~ */ GOTO 2
  IF ~~ THEN REPLY #18468 /* ~If you're such a good swordsman, why are you wandering about the wilderness dressed in what amounts to rags?~ */ GOTO 3
  IF ~~ THEN REPLY #18471 /* ~Wow! The best swordsman on the Sword Coast. It's an honor to meet such a distinguished man.~ */ GOTO 1
END
