
[DialogNode] ID=town_magi1;
portraitIcon=portrait_magi;
portraitIconFrames=40;
statements=<rand=Hey, Captain./Hey there./Hello./Hello, Captain.> <rand=Need anything?/What's up?//>;
animations=;
[DialogOption] text=Chat;
nodeToConnectTo=town_magi_chat;
color=Orange;
formulaReq=g:magi_chat * 15 - g:town_trainer_chat;
[DialogOption] text=Info;
newLineOfOptions=true;
nodeToConnectTo=town_magi_info1;
[DialogOption] text=Shortcut ($75);
newLineOfOptions=true;
formulaReq=1 + g:zone_travel2_enabled - 1 - g:zone_travel2 * 10 - g:alreadyUnlockedShortcutThisRun * 10;
nodeToConnectTo=town_magi1_shortcut1;

[DialogOption] text=Shortcut ($150);
newLineOfOptions=true;
formulaReq=1 + g:zone_travel3_enabled + g:zone_travel2 - 2 - g:zone_travel3 * 10 - g:alreadyUnlockedShortcutThisRun * 10;
nodeToConnectTo=town_magi1_shortcut2;

[DialogOption] text=Shortcut ($400);
newLineOfOptions=true;
formulaReq=1 + g:zone_travel4_enabled + g:zone_travel3 - 2 - g:zone_travel4 * 10 - g:alreadyUnlockedShortcutThisRun * 10;
nodeToConnectTo=town_magi1_shortcut3;

[DialogOption] text=Shortcut ($500);
newLineOfOptions=true;
formulaReq=1 + g:zone_travel5_enabled + g:zone_travel4 - 2 - g:zone_travel5 * 10 - g:alreadyUnlockedShortcutThisRun * 10;
nodeToConnectTo=town_magi1_shortcut4;


[DialogOption] text=Goodbye;
bottomOption=true;
nodeToConnectTo=;


-----------------

[DialogNode] ID=town_magi1_shortcut1;
portraitIcon=portrait_magi;
portraitIconFrames=10;
portraitIconFrames=12;
portraitIconFrames=0;
statements=I have some contacts who can get me some powerful Gate Triggers. We can set these up at distant openings in the serpent.;
statements=That would allow us to Gate directly there when we want to start a new expedition! ...but, it's rather expensive.;
statements=Do you want to spend $75 setting up a shortcut to the next area?;
animations=;
[DialogOption] text=Let's do it. ($75);
formulaReq=m:money(75);
nodeToConnectTo=town_magi1_shortcut1_buy;
[DialogOption] text=I can't afford that.;
formulaReq=1 - m:money(75);
newLineOfOptions=true;
nodeToConnectTo=;
[DialogOption] text=Never mind.;
newLineOfOptions=true;
nodeToConnectTo=town_magi_endtalk;


[DialogNode] ID=town_magi1_shortcut1_buy;
portraitIcon=portrait_magi;
portraitIconFrames=40;
specialEffect=tUnlockShortcut1;
specialEffect=subtract75gp;
specialEffect=tUnlockFX;
statements=Alright! I'll set it up right away.;
nextNodeID=;

-----------------

[DialogNode] ID=town_magi1_shortcut2;
portraitIcon=portrait_magi;
portraitIconFrames=15;
portraitIconFrames=12;
portraitIconFrames=0;
statements=I can get another Gate trigger for the next shortcut, but my contacts are charging me more this time.;
statements=It's understandable... in most countries, Gate Triggers are highly regulated and not available to normal citizens.;
statements=Shall I spend $150 to get the equipment and set up the next shortcut?;
animations=;
[DialogOption] text=Let's do it. ($150);
formulaReq=m:money(150);
nodeToConnectTo=town_magi1_shortcut2_buy;
[DialogOption] text=I can't afford that.;
formulaReq=1 - m:money(150);
newLineOfOptions=true;
nodeToConnectTo=;
[DialogOption] text=Never mind.;
newLineOfOptions=true;
nodeToConnectTo=town_magi_endtalk;

[DialogNode] ID=town_magi1_shortcut2_buy;
portraitIcon=portrait_magi;
portraitIconFrames=40;
specialEffect=tUnlockShortcut2;
specialEffect=subtract150gp;
specialEffect=tUnlockFX;
statements=Great! I'll set it up right away.;
nextNodeID=;

-----------------

[DialogNode] ID=town_magi1_shortcut3;
portraitIcon=portrait_magi;
portraitIconFrames=15;
portraitIconFrames=11;
statements=This time another Gate Trigger is really going to cost us. These things are in short supply.;
statements=Do you think it's worth $400?;
animations=;
[DialogOption] text=Let's do it. ($400);
formulaReq=m:money(400);
nodeToConnectTo=town_magi1_shortcut3_buy;
[DialogOption] text=I can't afford that.;
formulaReq=1 - m:money(400);
newLineOfOptions=true;
nodeToConnectTo=;
[DialogOption] text=Nevermind.;
newLineOfOptions=true;
nodeToConnectTo=town_magi_endtalk;

[DialogNode] ID=town_magi1_shortcut3_buy;
portraitIcon=portrait_magi;
portraitIconFrames=40;
specialEffect=tUnlockShortcut3;
specialEffect=subtract400gp;
specialEffect=tUnlockFX;
statements=Alright, I'll set it up right away.;
nextNodeID=;


-----------------

[DialogNode] ID=town_magi1_shortcut4;
portraitIcon=portrait_magi;
portraitIconFrames=10;
portraitIconFrames=80;
statements=I actually need to buy a more powerful Gate Trigger this time - we've got quite a lot of vertical distance to cover.;
statements=Naturally, that means it costs more... $500, this time.;
animations=;
[DialogOption] text=Let's do it. ($500);
formulaReq=m:money(500);
nodeToConnectTo=town_magi1_shortcut4_buy;
[DialogOption] text=I can't afford that.;
formulaReq=1 - m:money(500);
newLineOfOptions=true;
nodeToConnectTo=;
[DialogOption] text=Nevermind.;
newLineOfOptions=true;
nodeToConnectTo=town_magi_endtalk;

[DialogNode] ID=town_magi1_shortcut4_buy;
portraitIcon=portrait_magi;
portraitIconFrames=40;
specialEffect=tUnlockShortcut4;
specialEffect=subtract500gp;
specialEffect=tUnlockFX;
statements=Great - I'll set it up right away!;
nextNodeID=;


----------


[DialogNode] ID=town_magi0;
portraitIcon=portrait_magi;
portraitIconFrames=54;
portraitIconFrames=40;
statements=That went well!;
statements=Now, let me fill you in on the rest of our setup.;
specialEffect=facingRot90;

nextNodeID=town_magi0a;



[DialogNode] ID=town_magi0a;
portraitIcon=portrait_magi;
portraitIconFrames=12;
portraitIconFrames=50;
portraitIconFrames=26;
portraitIconFrames=73;
portraitIconFrames=76;
statements=As you can see, we'll monitor and advise our troops using this gate device here.;
statements=The innkeeper, Gavin, is a friend of mine - he's agreed to provide a barracks of sorts for us.;
statements=Regrettably, our troops are pretty poorly trained, so I've hired on a trainer for them. She's a bit odd, but it should be fine... I think.;
statements=You should go meet those two before the next mission. It would be good to meet the blacksmith, as well.;
statements=Hmm, what else...<p=5> oh!<p=3> Here are the remaining funds for the expedition.;

specialEffect=tCam_magi1;

nextNodeID=town_magi0b;


[DialogNode] ID=town_magi0b;
portraitIcon=portrait_magi;
portraitIconFrames=99;
portraitIconFrames=40;
statements=(Lorim hands you 50<icon_big=gp> gold pieces).;
statements=I think that's about it! Talk to me again if you have any questions.;
specialEffect=add50gp;
specialEffect=incDefaultNode;
nextNodeID=town_magi0c;

[DialogNode] ID=town_magi0c;
specialEffect=tCleanUp_magi1;
nextNodeID=;

-------------

[DialogNode] ID=town_magi_info1;
portraitIcon=portrait_magi;
portraitIconFrames=0;
statements=What do you want to know about?;
[DialogOption] text=Tips;
nodeToConnectTo=town_magi_info_tips1;
[DialogOption] text=Gate device;
newLineOfOptions=true;
nodeToConnectTo=town_magi_info_gate1;
[DialogOption] text=Alvora;
newLineOfOptions=true;
nodeToConnectTo=town_magi_info_alvora1;
[DialogOption] text=Golden Palace;
newLineOfOptions=true;
nodeToConnectTo=town_magi_info_palace1;
formulaReq=g:town_magi_chat - 8;
[DialogOption] text=Never mind.;
newLineOfOptions=true;
nodeToConnectTo=town_magi_endtalk;


[DialogNode] ID=town_magi_info_tips1;
portraitIcon=portrait_magi;
portraitIconFrames=74;
portraitIconFrames=40;
portraitIconFrames=13;
portraitIconFrames=50;
statements=Well, I don't know much about fighting...;
statements=But I do know one thing -<p=3> we usually don't have to fight if we don't want to.;
statements=A lot of times,<p=1> you can just sneak around the enemies.;
statements=And if you do get into a fight you don't like,<p=1> you can always <color=Gold>flee<color=White> by walking to the exit.;
nextNodeID=town_magi_info1;


[DialogNode] ID=town_magi_info_gate1;
portraitIcon=portrait_magi;
portraitIconFrames=12;
portraitIconFrames=74;
portraitIconFrames=75;
portraitIconFrames=50;
portraitIconFrames=10;
portraitIconFrames=76;
statements=This device is extremely complicated... I'm not sure even most Gatekeepers could understand it exactly.;
statements=Suffice to say, it was extremely expensive to get.;
statements=And possibly illegal for them to sell to me.;
statements=But the important thing is, it lets us communicate with our troops, who hold a corresponding device.;
statements=It also allows us to Gate them back here when the mission is done. It works best when Alvora's carapace isn't between the two devices.;
statements=That's why we can't Gate back properly with all our loot until the troops are at an opening in the serpent.;
nextNodeID=town_magi_info1;


[DialogNode] ID=town_magi_info_alvora1;
portraitIcon=portrait_magi;
portraitIconFrames=11;
portraitIconFrames=12;
portraitIconFrames=50;
portraitIconFrames=0;
portraitIconFrames=76;
portraitIconFrames=12;
portraitIconFrames=40;
statements=I probably don't know much more than you do.;
statements=Alvora's always been a looming presence, like an inevitable natural disaster... strange to think it's finally dead.;
statements=I guess this is a huge moment for everyone in Limroft, isn't it? <p=3>It's like knowing earthquakes are gone forever.;
statements=Anyway, what little I do know is all from the past few weeks.;
statements=There's a lot of gold and treasure being brought out. Some unknown ruins have already been found. And there have already been a number of casualties.;
statements=Yeah... seems like Alvora is infested with parasites we haven't seen before.;
statements=I'm sure we can handle it though!;
nextNodeID=town_magi_info1;



[DialogNode] ID=town_magi_info_palace1;
portraitIcon=portrait_magi;
portraitIconFrames=13;
portraitIconFrames=12;
portraitIconFrames=74;
portraitIconFrames=75;
statements=It was made by Jarrod the Miser-king,<p=3> who was infamous for being a tyrant that executed a lot of his own people.;
statements=He was so paranoid about being overthrown,<p=1> that he had all of his wives and heirs executed.;
statements=Jarrod spent most of his later years building his palace -<p=2> the Golden Palace -<p=1> into a trap-filled labyrinth.;
statements=Sounds like a fun place, right?;
nextNodeID=town_magi_endchat;


------------------

[DialogNode] ID=town_magi_chat;
specialEffect=modNodeIDGlobalVar_1;
specialEffect=goToNodeID_plus_GlobalVar;
specialEffect=tSet_magi_chat0;

[DialogNode] ID=town_magi_chat1;
portraitIcon=portrait_magi;
portraitIconFrames=40;
portraitIconFrames=54;
portraitIconFrames=40;
statements=How are you doing, Captain?;
statements=I have to say, this is the most exciting assignment I've been on. This is a historic moment!;
animations=;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat2;
portraitIcon=portrait_magi;
portraitIconFrames=40;
portraitIconFrames=13;
statements=I hope the appointments I've made are working out, Captain.;
statements=I know some of them act a bit unprofessional, but it's the best I could find on such short notice...<p=> just let me know if they cause any trouble!;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat3;
portraitIcon=portrait_magi;
portraitIconFrames=10;
portraitIconFrames=15;
portraitIconFrames=60;
portraitIconFrames=18;
statements=The parasites in Alvora may be dangerous, Captain, but what I'm really concerned about is our fellow explorers.;
statements=Some of them are getting very competitive... and they've noticed that there's zero oversight over what happens inside the serpent.;
statements=A lot of well-equipped groups went missing... and then some of their stuff turned up on the market.;
statements=It's a sad thing, but we'd better assume the worst when we're in there.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat4;
portraitIcon=portrait_magi;
portraitIconFrames=40;
portraitIconFrames=50;
statements=I forgot to mention it before, Captain, but I get new magic equipment in here after every mission.;
statements=Make sure to check back and see if there's anything you like!;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat5;
portraitIcon=portrait_magi;
portraitIconFrames=40;
portraitIconFrames=54;
statements=You know, Gavin puts on a stern attitude, but he doesn't mean any harm.;
statements=Trust me, he's a good man - I've worked with him before.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat6;
portraitIcon=portrait_magi;
portraitIconFrames=10;
portraitIconFrames=54;
portraitIconFrames=73;
statements=You know, Sivle actually came highly recommended.;
statements=The caravan she rode here on was attacked by pangullins - the caravan master told me she dropped more than half the flock herself!;
statements=I tried to hire her on as muscle, but she would only accept a training position, for some reason.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat7;
portraitIcon=portrait_magi;
portraitIconFrames=40;
portraitIconFrames=45;
statements=You know, Zirel came by the other day asking how the expedition was going.;
statements=She may act gruff, but I think she's actually concerned about us.;
nextNodeID=town_magi_endchat;


[DialogNode] ID=town_magi_chat8;
portraitIcon=portrait_magi;
portraitIconFrames=10;
portraitIconFrames=13;
portraitIconFrames=12;
portraitIconFrames=74;
portraitIconFrames=75;
statements=I've been researching the Golden Palace that Alvora devoured, Captain.;
statements=It was made by Jarrod the Miser-king,<p=3> who was infamous for being a tyrant that executed a lot of his own people.;
statements=He was so paranoid about being overthrown,<p=1> that he had all of his wives and heirs executed.;
statements=Jarrod spent most of his later years building his palace -<p=2> the Golden Palace -<p=1> into a trap-filled labyrinth.;
statements=Sounds like a fun place, right?;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat9;
portraitIcon=portrait_magi;
portraitIconFrames=11;
portraitIconFrames=13;
portraitIconFrames=73;
portraitIconFrames=10;
statements=I learned a little more about the Golden Palace that might be useful.;
statements=One of the things it's famous for is its many Vaults - said to contain immense treasure.;
statements=However, they weren't just locked -<p=1> they were magically sealed and the keys were hidden in the palace.;
statements=Supposedly the Miser-king had a huge amount of Volskarn machinery created just for protecting the Vaults.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat10;
portraitIcon=portrait_magi;
portraitIconFrames=46;
portraitIconFrames=55;
portraitIconFrames=23;
statements=I've heard from Gavin that Sivle's training methods have been an issue.;
statements=I hate to cause any trouble for him...<p=3> but Sivle has been very successful as a trainer, regardless of her<speed=0.4>... <speed=1><p=1>eccentricities.;
statements=I'll go have a talk with her, try to keep them off eachothers' backs.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat11;
portraitIcon=portrait_magi;
portraitIconFrames=18;
portraitIconFrames=46;
portraitIconFrames=43;
statements=You know, in times like these, it's a huge relief that I studied at Castrill Academy for a few years.;
statements=There's a lot of ruffians around... people here just to fight and kill in Alvora, where they can get away with it.;
statements=Knowing fire magic does a lot for my peace of mind.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat12;
portraitIcon=portrait_magi;
portraitIconFrames=81;
portraitIconFrames=80;
portraitIconFrames=93;
statements=<speed=0.5>Nnggrhgg... <p=3>...sorry...<speed=1><p=2> not in a great mood right now.;
statements=Sivle keeps trying to sneak in and 'borrow' my trigger stones for some dumb training exercise<speed=0.5>...<speed=1><p=2> I lost my favorite plate<speed=0.5>...<speed=1><p=2> and I just stubbed my toe.;
statements=Nothing important<speed=0.5>...<speed=1><p=2> just one of those days. Don't mind me.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat13;
portraitIcon=portrait_magi;
portraitIconFrames=76;
portraitIconFrames=10;
portraitIconFrames=13;
portraitIconFrames=73;
statements=Captain, I learned more about the Golden Palace's construction recently.;
statements=Supposedly the Miser-king was obsessed with statues, and had likenesses of himself placed all around the palace.;
statements=He was also very particular about who created the statues, as well, and apparently had very detailed instructions about how they were made.;
statements=Something tells me those statues might be connected to all the Volskarn equipment he comissioned.; 
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat14;
portraitIcon=portrait_magi;
portraitIconFrames=54;
portraitIconFrames=53;
portraitIconFrames=73;
statements=You know, even if we recovered no treasure at all, this expedition would still bring a wealth of knowledge and discovery.;
statements=The new parasites alone are a massive find!;
statements=I should write a paper on it sometime...<p=2> remind me to do that later.;
nextNodeID=town_magi_endchat;

[DialogNode] ID=town_magi_chat15;
portraitIcon=portrait_magi;
portraitIconFrames=40;
portraitIconFrames=54;
statements=How are you doing, Captain?;
statements=The expedition is going great, don't you think?<p=3> It was a lot more challenging than I expected, but we've risen to the occasion!<p=3> Thanks to your leadership!;
nextNodeID=town_magi_endchat;


[DialogNode] ID=town_magi_endchat;
specialEffect=nextDialogNode_hideWindow;
nextNodeID=town_magi1;

[DialogNode] ID=town_magi_endtalk;
specialEffect=nextDialogNode_hideWindow;
nextNodeID=town_magi1;




