----------------------------------------------------------------------
 *  This file is part of Freedroid
 *
 *  Freedroid is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  Freedroid is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Freedroid; see the file COPYING. If not, write to the 
 *  Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 *  MA  02111-1307  USA
----------------------------------------------------------------------

If you have questions concerning FreedroidRPG, please send an email to:

freedroid-discussion@lists.sourceforge.net


Beginning of new chat dialog for character="XXXXX"
----------------------------------------------------------------------

<FirstTime LuaCode>
	npc_says(_"HI THERE! I'll be your humble servant for the duration of your stay at Ewald's bar! We hope you enjoy your stay here and come again! Don't forget to tell ALL your friends about us! I LOVE YOU!")
	show(0)
</LuaCode>

<EveryTime LuaCode>
	if (has_met("Ewalds_296")) then
		npc_says(_"HI THERE! I'll be your humble servant-", "NO_WAIT")
		tux_says(_"Uhh, yes, thank you, I know.")
	end

	if (has_item_backpack("Nuclear Science for Dummies IV") > 0) then
		show(10)
	end

	if (has_cookie("ewalds_296_reactor_fix") and not has_cookie("296_self_sacrifice")) then
		show(11)
	end

	if (has_cookie("ewalds_296_teleported")) then
		show(30)
	end

	if (done_quest(_"An Explosive Situation")) then
		hide(30) show(31)
	end
</LuaCode>
----------------------------------------------------------------------

Nr=0 Text=_"Who are you? And why do you talk so... Friendly-like-ish?"
<LuaCode>
	npc_says(_"I am a 296 Customer Service Droid, designed to make your day memorable!")
	tux_says(_"Uh huh. I just-", "NO_WAIT")
	npc_says(_"I have installed on me the Service with a Smile software package, copyrighted by MEGASYS CORPORATION, to make sure I'm REALLY happy and appealing to customers!")
	npc_says(_"May I interest you in reading the license to you? Perhaps the terms of usage? The privacy policy?")
	tux_says(_"Uh, no, I'm fine.")
	npc_says(_"Oh, that's a real shame, sir and or madam! We have a special Chef's Surprise today! Would you be interested in-", "NO_WAIT")
	tux_says(_"No, I'm fine, really!")
	hide(0) show(1, 99)
</LuaCode>
----------------------------------------------------------------------

Nr=1 Text=_"What is this place? What are you doing with that funny-looking tool? WHAT VILE PLOTS HAVE YOU BEEN BREWING HERE?!"
<LuaCode>
	npc_says(_"Our GREAT and SUPER AWESOME barman EWALD has been brewing fantastic drinks for your enjoyment-", "NO_WAIT")
	tux_says(_"That's NOT what I meant!")
	hide(1) show(2, 3, 9)
</LuaCode>
----------------------------------------------------------------------

Nr=2 Text=_"I'm giving you one chance to explain yourself, bot. You'd better make it quick."
<LuaCode>
	npc_says(_"My Advanced Nuclear Maintenance Program v0.93 tells me that this is a standard Parafunken Triple-Core X41Z5 Nuclear Reactor Backup Power supply. Would you be interested in it?")
	tux_says(_"Your... what? Did Ewald actually install that on you?")
	npc_says(_"Absolutely!")
	npc_says(_"The tool I am holding is a SUPER AWESOME standard-issue Parafunken Geiger Counter. May I suggest a sample?")
	tux_says(_"A super awesome- I mean, a Geiger counter? To measure radiation? Interesting. It's making all those funny clicking sounds... What is it saying?")
	npc_says(_"It is saying the reactor is nearing terminal radiation overload! AWESOME!")
	add_quest(_"An Explosive Situation", _"I found a 296 belonging to Ewald in the maintenance tunnels underneath the town. It claims to be monitoring a damaged nuclear reactor.")
	hide(2, 3) show(4, 5, 16)
</LuaCode>
----------------------------------------------------------------------

Nr=3 Text=_"DIE, YOU EVIL PIECE OF SCRAP METAL!"
<LuaCode>
	npc_says(_"Sir or ma-")
	tux_says(_"DIE!")
	drop_dead()
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=4 Text=_"Terminal radiation overload? What in the name of ice have you done!?"
<LuaCode>
	npc_says(_"I've been trying to extract the expired-", "NO_WAIT")
	tux_says(_"You... You've been sitting down here, plotting to kill everyone!")
	next(3)
</LuaCode>
----------------------------------------------------------------------

Nr=5 Text=_"Terminal radiation overload? Isn't that a bit... Dangerous?"
<LuaCode>
	npc_says(_"My Maintenance Program v0.93 Glossary tells me the condition of 'Terminal Radiation Overload' can cause a nuclear explosion and EXTREME DEATH!")
	tux_says(_"Oh. Nice. Does it actually say 'extreme death' in there?")
	npc_says(_"It most certainly does! This program is the BEST! We have it in 5 different flavors! Care to try some?")
	tux_says(_"... Thanks, I think I'll pass.")
	tux_says(_"But... If this nuclear reactor is about to explode... The town up there...")
	npc_says(_"My data on 'Nuclear Explosion' says it will vaporize ANYTHING within several hundred kilometers! The entire area will be UNINHABITABLE for several decades! Would you like to order anything?")
	update_quest(_"An Explosive Situation", _"Ewald's 296 has assured me that the nuclear reactor is about to explode and destroy the town! I have to do something!")
	hide(4, 5) show(6, 7)
</LuaCode>
----------------------------------------------------------------------

Nr=6 Text=_"Why aren't you calling someone? Why aren't you trying to fix this? You have a maintenance program!"
<LuaCode>
	npc_says(_"You would like to see my manager? I don't think that would be necessary, Dave. I mean, sir and or madam.")
	tux_says(_"Fine, don't call anyone, but fix this thing! It's unstable!")
	npc_says(_"I've been trying to extract the expired graphite module and replace it with a BRAND NEW, CHEAP one! But my maintenance program does not have data on 'Graphite Module'. I am afraid I can't do it, Dave.")
	npc_says(_"... Sir and or madam.")
	hide(6) show(8)
</LuaCode>
----------------------------------------------------------------------

Nr=7 Text=_"I suppose I might as well order something while I'm here. Give me the menu, please."
<LuaCode>
	npc_says(_"I'm sorry, sir and or madam, we have no menu at the moment.")
	tux_says(_"All right, then give me some cold water.")
	npc_says(_"I'm sorry, sir and or madam, we're fresh out of water.")
	tux_says(_"But you just offered me...")
	npc_says(_"Sorry!")
	hide(7)
</LuaCode>
----------------------------------------------------------------------

Nr=8 Text=_"We need to do something. We can't just sit here and wait for it to blow up!"
<LuaCode>
	npc_says(_"My DELICIOUS database is insufficient to repair the radiation leak and replace the module!")
	tux_says(_"All right, so you need more data... How about a sourcebook? Would that help?")
	npc_says(_"The Maintenance program contains references to the popular Subatomic and Nuclear Science for Dummies series, volume IV.")
	tux_says(_"Subatomic and Nuclear Science for Dummies, volume IV?. Maybe someone in town has it. I have to go now, there's no time to lose!")
	npc_says(_"Would you like the check?")
	add_cookie("ewalds_296_sourcebook")
	update_quest(_"An Explosive Situation", _"If I can get a copy of Subatomic and Nuclear Science for Dummies, Volume IV, the 296 may be able to stop the explosion. I hope someone in town has it!")
	hide(8)
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=9 Text=_"How on Earth did you get here?"
<LuaCode>
	npc_says(_"While our SUPER AWESOME barman EWALD was restoring his biological energy supply, I went down to the basement to refill the bar taps and get some more soft and tender napkins for our WONDERFUL customers!")
	npc_says(_"My balance mechanism suddenly went WILD. The ground started SHAKING and the next thing I knew, I was FALLING!")
	tux_says(_"The floor must have given way. From what I've seen, the whole tunnel system isn't very stable.")
	npc_says(_"I was looking for LOVELY customers to serve and care for. Then I found this BEAUTIFUL chamber, with this EXPLOSIVE reactor!")
	hide(9)
</LuaCode>
----------------------------------------------------------------------

Nr=10 Text=_"I have the sourcebook here. Look up whatever you need."
<LuaCode>
	npc_says(_"[b]Processing data, please wait... Updating database, this may take a while...[/b]")
	npc_says(_"[b]To adjust to the changes, the system must restart.[/b]")
	npc_says(_"[b]BEEP![/b]")
	tux_says(". . .")
	npc_says(_"... HI THERE! I'll be your humble servant for the duration of your stay in-", "NO_WAIT")
	tux_says(_"THE REACTOR! What about the reactor? Can you replace the module now?")
	npc_says(_"Yes, the reactor! Your order has been processed, sir and or madam! Please wait patiently!")
	add_cookie("ewalds_296_reactor_fix")
	update_quest(_"An Explosive Situation", _"I gave the book to Ewald's 296. Now all I can do is wait while it attempts to repair the reactor.")
	del_item("Nuclear Science for Dummies IV")
	hide(10)
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=11 Text=_"Well? Is the reactor fixed?"
<LuaCode>
	npc_says(_"My analysis of the reactor determines the graphite module has melted and can not be replaced.")
	npc_says(_"The reactor must SPECTACULARLY self-destruct to prevent a nuclear explosion, which would be NOT COOL!")
	tux_says(_"Oh, so all we had to do all this time was to blow up the reactor. Great. Well, set the timer and let's get out of here!")
	npc_says(_"The self-destruct mechanism is flawed, and the countdown can not function properly. The mechanism must be operated manually.")
	tux_says(_"Manually? You mean someone has to stay here and make sure it blows up?")
	npc_says(_"Affirmative.")
	npc_says(_"... My maintenance program contains the required data for the procedure.")
	tux_says(_"You're... Volunteering to do it? But... You'll-", "NO_WAIT")
	npc_says(_"Unit 296 will be terminated.")
	hide(11, 99) show(12, 13)
</LuaCode>
----------------------------------------------------------------------

Nr=12 Text=_"OK then, have fun. See you!"
<LuaCode>
	npc_says(_"Of course... Have a nice day.")
	tux_says(_"Yeah, sure. Crazy bot.")
	update_quest(_"An Explosive Situation", _"The 296 has volunteered to sacrifice itself in order to safely destroy the reactor. It might be admirable, if it weren't a (particularly annoying) bot.")
	add_cookie("296_self_sacrifice")
	hide(7, 9, 12, 13, 16) show(99)
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=13 Text=_"No. No, I won't let you do it! I can't let you die!"
<LuaCode>
	npc_says(_"Only this version of the program-", "NO_WAIT")
	tux_says(_"I don't care! You're willing to sacrifice yourself to save the people up there. That qualifies as a bot worth saving in my eyes.")
	tux_says(_"I am not letting you die.")
	npc_says(_"You must not try to stop me, sir and or madam.")
	hide(12, 13) show(14, 15)
</LuaCode>
----------------------------------------------------------------------

Nr=14 Text=_"I am going to save you, even if... Even if I have to hack you and drag you all the way up!"
<LuaCode>
	npc_says(_"You wish to fight, sir and or madam?")
	tux_says(_"I don't want to hurt you. Follow me, and we can think of a better way to do this.")
	npc_says(_"Negative. The reactor can only be safely destroyed using the manual self-destruction mechanism.")
	tux_says(_"All right then. I guess I'll just have to force you to come.")
	npc_says(_"I cannot allow sir and or madam to come to harm.")
	update_quest(_"An Explosive Situation", _"The 296 bravely volunteered to sacrifice itself in order to blow the reactor up safely. I wasn't about to let it throw its life away like that, but as I prepared to hack it and force it to follow me, I was suddenly teleported into town! Wait... Was that an explosion? Oh no...")
	add_cookie("296_self_sacrifice")
	add_cookie("ewalds_296_teleported")
	teleport("TeleportHomeTarget")
	teleport_npc("296TeleportTarget")
	hide(7, 9, 12, 14, 15, 16) show(30, 99)
	end_dialog()
</LuaCode>
--------------------------------------------------------------------------------------------------------------------------------------------

Nr=15 Text=_"... You're sure you want to do this?"
<LuaCode>
	npc_says(_"There is no other way, sir and or madam.")
	tux_says(_"I understand.")
	tux_says(_"Good luck, 296. You won't be forgotten.")
	npc_says(_"Thank you, sir and or madam.")
	npc_says(_"I must go now. Goodbye.")
	update_quest(_"An Explosive Situation", _"The 296 has bravely volunteered to sacrifice itself in order to blow the reactor up safely. A very courageous droid - I'm sorry to see it go.")
	add_cookie("296_self_sacrifice")
	hide(7, 9, 12, 14, 15, 16) show(99)
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=16 Text=_"What's that smashed droid there?"
<LuaCode>
	npc_says(_"That is a REALLY FLAT 476 Maintenance droid! I found it when I first came here!")
	npc_says(_"According to the reactor's BORING repair log, the 476 was supposed to make a monthly system check FIVE DAYS AGO!")
	tux_says(_"Oh, great. The one droid that was keeping the reactor in check is now a metallic pancake.")
	npc_says(_"We offer DELICIOUS pancakes-", "NO_WAIT")
	tux_says(_"I'm not interested!")
	hide(16)
</LuaCode>
----------------------------------------------------------------------
 
Nr=30 Text=_"Erm... But didn't you... Uh..."
<LuaCode>
	npc_says(_"Allow me to clear up your confusion, sir and or madam!")
	npc_says(_"My Nick of Time software package allowed me to tap into the town's teleportation network.")
	npc_says(_"This COMPLETELY AWESOME set of subroutines let me teleport in an iron bar to take my place at the last possible moment!")
	tux_says(_"And now you're-", "NO_WAIT")
	npc_says(_"Back in the employ of the GREAT and SUPER AWESOME Ewald!")
	tux_says(_"Well, I'm glad to see you're not destroyed.")
	end_quest(_"An Explosive Situation", _"I found Ewald's 296 alive and well in Ewald's bar! I was sure it was destroyed in that explosion I heard, but it's safe and sound. Well, I guess all's well that ends well.")
	add_xp(1500)
	show(31) hide(30)
</LuaCode>
----------------------------------------------------------------------

Nr=31 Text=_"So, 296, how's it going?"
<LuaCode>
	npc_says(_"Great, sir and or madam! The business is flourishing and everything is AMAZINGLY back to normal!")
	npc_says(_"Would sir and or madam be interested in a refreshing drink, ON THE HOUSE?")
	tux_says(_"Why, thank you!")
	heat_tux(-50)
	npc_says(_"Would sir and or madam want any other service?")
	if (not has_cookie("has_ewalds_password")) then
		show(32)
	end
	show(33) hide(31)
</LuaCode>
----------------------------------------------------------------------

Nr=32 Text=_"Hmm... How about... Ewald's password?"
<LuaCode>
	npc_says(_"Our MAGNIFICENT bartender EWALD has an UNBREAKABLE password! His account is the most secure EVER! NO ONE except for him can get on it!")
	tux_says(_"What's the password?")
	npc_says(_"Five asterisks!")
	tux_says("...")
	npc_says(_"... Maybe I shouldn't have said that.")
	add_cookie("has_ewalds_password")
	hide(32)
</LuaCode>
----------------------------------------------------------------------

Nr=33 Text=_"I'd like another drink, please."
<LuaCode>
	npc_says(_"Certainly! This one's on the house!")
	heat_tux(-10)
</LuaCode>
----------------------------------------------------------------------

Nr=99 Text=_"Well, I should really be going now."
<LuaCode>
	npc_says_random(_"Thank you, come again!", _"Tell your friends about us!", _"We hope you've enjoyed our service!")
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

End of chat dialog for character="XXXXX"
