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

BEGIN ~NEERA~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #27721 /* ~You! HEY, YOU! Yes, you. I don't see anybody else around here. A little help, please?~ [NEA1] */
  IF ~~ THEN REPLY #27722 /* ~Of course, what do you need?~ */ DO ~SetGlobal("NEERA_MEETING","LOCALS",1)
~ GOTO 1
  IF ~~ THEN REPLY #27723 /* ~Keep your distance, woman! Who are you, and what is the problem here?~ */ DO ~SetGlobal("NEERA_MEETING","LOCALS",1)
~ GOTO 2
  IF ~~ THEN REPLY #27724 /* ~I would like no part of this. Stay where you are.~ */ DO ~SetGlobal("NEERA_MEETING","LOCALS",1)
~ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #27725 /* ~There's bandits! Vicious magic bandits! And they must have gone to advanced bandit school or something. They're trying to capture me!~ [NEA2] */
  IF ~~ THEN REPLY #27726 /* ~Very well, I shall defend you from these bandits.~ */ GOTO 3
  IF ~~ THEN REPLY #27727 /* ~A group of spellcasting bandits? This sounds like a tall tale.~ */ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.1 0.2 0.1
  SAY #27728 /* ~Listen, I'd love to give you a really long and detailed explanation of what's going on but— Oh, look! WE'RE OUT OF TIME.~ [NEA3] */
  IF ~~ THEN DO ~SetGlobal("RedWizards","AR3300",1)
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.0
  SAY #27729 /* ~My hero! Now, where are the rest of your men hiding? I'll be honest, I was betting on you having a legion of soldiers, because you'll need it, and— OH GOODNESS, THEY'RE HERE.~ [NEA4] */
  IF ~~ THEN DO ~SetGlobal("RedWizards","AR3300",1)
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: NEEKANDO:0.0
  SAY #27730 /* ~You're the one trying to capture me! And I still don't know what you want, so I'd rather not let it happen. Get out of here before me and my new friends decide to inject a fist into your mouth!~ [NEA6] */
  IF ~  InParty("EDWIN")
~ THEN EXTERN ~EDWINJ~ 13
  IF ~  !InParty("EDWIN")
~ THEN EXTERN ~NEEKANDO~ 3
END

IF ~~ THEN BEGIN 5 // from:
  SAY #27731 /* ~No use at all! Can't cook, can't clean, can't dance. You may as well just let me go.~ [NEA6D] */
  IF ~~ THEN EXTERN ~NEEKANDO~ 2
END

IF ~~ THEN BEGIN 6 // from: NEEKANDO:5.1 NEEKANDO:3.2
  SAY #27732 /* ~Really? REALLY? That's just great. People like you really bolster my faith in strangers.~ [NEA13] */
  IF ~~ THEN DO ~StartCutSceneMode()
StartCutScene("CUTNE1A")
~ EXIT
END

IF ~  Global("RedWizards","AR3300",4)
Dead("NETHAY01")
Dead("NETHGUA1")
Dead("NETHGUA2")
~ THEN BEGIN 7 // from:
  SAY #27733 /* ~I am really, really, really, really, really sorry about what just happened. I didn't want to involve you, but if I hadn't run into you when I did, they'd be elbow deep in my brains right now.~ [NEB1] */
  IF ~~ THEN REPLY #27734 /* ~What will you do now? Surely Ekandor will return at some point.~ */ DO ~SetGlobal("RedWizards","AR3300",5)
SetGlobal("NEERA_START","GLOBAL",1)
~ GOTO 8
  IF ~~ THEN REPLY #27735 /* ~No apology is necessary, I was merely doing what any honorable person would do.~ */ DO ~SetGlobal("RedWizards","AR3300",5)
SetGlobal("NEERA_START","GLOBAL",1)
~ GOTO 8
  IF ~~ THEN REPLY #27736 /* ~That's well and good, but custom dictates that you dump a load of gold into my hands.~ */ DO ~SetGlobal("RedWizards","AR3300",5)
SetGlobal("NEERA_START","GLOBAL",1)
~ GOTO 9
END

IF ~~ THEN BEGIN 8 // from: 7.1 7.0
  SAY #27737 /* ~Since you were kind enough to save me from those wizardly thugs, I was wondering if I could stay with you for awhile. For your protection as well as mine. I swear, I'm quite a skilled spellcaster. I can hurl a fireball like you wouldn't believe!~ [NEB2] */
  IF ~~ THEN REPLY #27738 /* ~Very well, your company would be appreciated.~ */ GOTO 12
  IF ~~ THEN REPLY #27739 /* ~I'm sorry, no.~ */ GOTO 13
END

IF ~~ THEN BEGIN 9 // from: 7.2
  SAY #27740 /* ~Yeah, about that... I only had a little bit of gold that I borrowed from a friend a few weeks back, and I've spent most of it. But, I can offer you something much more useful!~ [NEB3] */
  IF ~~ THEN REPLY #27741 /* ~And that would be?~ */ GOTO 10
  IF ~~ THEN REPLY #27742 /* ~Save it, I don't want to hear it. You're no use to me.~ */ GOTO 13
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #27743 /* ~My talents! I'm an accomplished mage. I managed to send Ekandor... uh, somewhere. You saw!~ [NEB4] */
  IF ~~ THEN REPLY #27744 /* ~I get the impression that you didn't really intend for that to happen.~ */ GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #27745 /* ~Oh since when has intent ever mattered outside of the courts? I got the job done! What do you say? I could really use some new friends.~ [NEB5] */
  IF ~~ THEN REPLY #27746 /* ~You raise a good point. I would be glad to have you accompany me.~ */ GOTO 12
  IF ~~ THEN REPLY #27747 /* ~I would rather my companions be slightly more predictable.~ */ GOTO 13
END

IF ~~ THEN BEGIN 12 // from: 11.0 8.0
  SAY #27748 /* ~Fantastic! Let me just get my... well, nothing. I'm ready to go now!~ [NEB6] */
  IF ~~ THEN DO ~SetGlobalTimer("NEERATIMER","GLOBAL",ONE_DAY)
AddJournalEntry(31609,INFO)
SetGlobal("NEERAPARTY","GLOBAL",1)
CreateCreatureObjectOffset("NEERA6",Myself,[0.0])
DestroySelf()
ActionOverride("NEERA",JoinParty())
~ EXIT
  IF ~  XPLT(Player1,39999)
~ THEN DO ~SetGlobalTimer("NEERATIMER","GLOBAL",ONE_DAY)
AddJournalEntry(31609,INFO)
SetGlobal("NEERAPARTY","GLOBAL",1)
CreateCreatureObjectOffset("NEERA4",Myself,[0.0])
DestroySelf()
ActionOverride("NEERA",JoinParty())
~ EXIT
  IF ~  XPLT(Player1,10000)
~ THEN DO ~SetGlobalTimer("NEERATIMER","GLOBAL",ONE_DAY)
AddJournalEntry(31609,INFO)
SetGlobal("NEERAPARTY","GLOBAL",1)
CreateCreatureObjectOffset("NEERA2",Myself,[0.0])
DestroySelf()
ActionOverride("NEERA",JoinParty())
~ EXIT
  IF ~  XPLT(Player1,2500)
~ THEN DO ~SetGlobalTimer("NEERATIMER","GLOBAL",ONE_DAY)
AddJournalEntry(31609,INFO)
SetGlobal("NEERAPARTY","GLOBAL",1)
JoinParty()
~ EXIT
  IF ~  InParty("EDWIN")
~ THEN EXTERN ~EDWINJ~ 17
END

IF ~~ THEN BEGIN 13 // from: 14.1 11.1 9.1 8.1
  SAY #27749 /* ~Well, that's disappointing. I was all worked up to go on an adventure, and now you've left me to DIE IN THE WILDERNESS. I guess I'll head back to the Friendly Arm Inn. Hopefully we'll run into each other when you're feeling less heartless.~ [NEB7] */
  IF ~~ THEN DO ~SetDialogue("NEERAP")
AddJournalEntry(31608,INFO)
SetGlobal("NEERAPARTY","GLOBAL",0)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #27750 /* ~Well, I don't want to be a wedge, but I really don't want to stay on my own out here. Surely you're not going to leave me to be devoured by gibberlings?!~ [NEB9] */
  IF ~~ THEN REPLY #27751 /* ~I'm sorry, Edwin, but Neera would be a valuable addition to the group.~ */ EXTERN ~EDWINJ~ 18
  IF ~~ THEN REPLY #27752 /* ~I must side with Edwin. Perhaps we will meet again some time in the future, Neera.~ */ GOTO 13
END
