----------------------------------------------------------------------
 *	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>
		doors = {"TutorialEntry", "TutorialZigzag1", "TutorialZigzag2", "TutorialZigzag3", "TutorialZigzag4"}
		doors2 = {doors[1], doors[2], doors[3], doors[4], doors[5], "TutorialEquipOut", "TutorialMeleeOut", "TutorialStorage", "TutorialShootingOut", 				     "TutorialTakeover"}
		items_up = {"Entropy Inverter", "Tachyon Condensator", "Antimatter-Matter Converter", "Superconducting Relay Unit", "Plasma Transistor"}
		ranged_combat = {"Normal Jacket", "Big kitchen knife", "Shoes", "Standard Shield", "Worker Helmet"}
		-- to avoid excessive map validator waypoint errors, map starts with all relevant doors open, so we need to close them here
		for var in ipairs(doors2) do
			change_obstacle_state(doors2[var], "closed")
		end
		-- we also need remove all tux skills, except use weapon
		downgrade_program("Hacking")
		downgrade_program("Repair equipment")
		downgrade_program("Emergency shutdown")
		set_bot_name(_"Tutorial Tom")
		display_console_message(_"Met [b]Tutorial Tom[/b]!")
</LuaCode>

<EveryTime LuaCode>
	if (partner_started()) then
		npc_says(_"Hi Linarian, I've been expecting you. My name is Tutorial Tom.")
		npc_says(_"Long stasis sleep unfortunately has the side effect of temporary memory loss, sometimes even for simple ordinary every day things.")
		npc_says(_"So let's start with the basics, shall we?")
		show(1, 7, 80)
		set_rush_tux(0)
	elseif (has_quest(_"Tutorial Movement") and not has_cookie("talk_to_tom")) then
		add_cookie("talk_to_tom")
		npc_says(_"Glad to see you figured out the quest log!")
	elseif (has_quest(_"Tutorial Movement") and has_cookie("move_black") and not has_cookie("sprinting") ) then
		add_cookie("sprinting")
		npc_says(_"Speaking of moment, you can also [b]sprint[/b] by holding the [b]control key[/b].")
		update_quest(_"Tutorial Movement", _"Apparently I can sprint if I hold down the control key as I move. This might help if I get in a tight spot.")
		npc_says(_"This distance is determined by your yellow stamina bar; the more you have, the farther you can run without becoming winded.")
	end

	if (has_cookie("TutorialTux-PastWall")) then
		hide(70) show(30, 38)
	end

	show(99)
</LuaCode>
----------------------------------------------------------------------

Nr=1 Text=_"Yes, it would be most kind of you. I don't remember anything."
<LuaCode>
	npc_says(_"You Linarians keep a quest [b]Log[/b] where you write down key bits of information.")
	npc_says(_"When you aren't speaking with someone, you can open it up or close it by pressing the [b]Q key[/b].")
	npc_says(_"I'll assign you a new quest, so you can try it out. Once you are done, [b]left click[/b] on me.")
	if (not has_quest(_"Tutorial Movement")) then
		add_quest(_"Tutorial Movement", _"To talk to someone, left click on them. You can talk to any friendly bot or person. Friendly people and bots have a green bar above them. Press the 'Q' key to open or close the quest log. Left click back on Tutorial Tom to learn more!")
	end
	display_big_message(_"Press 'Q' for Quests!")
	end_dialog()
	hide(1, 7, 80) show(2, 3, 4, 5, 8)
</LuaCode>
----------------------------------------------------------------------

Nr=2 Text=_"What can you tell me about finding my way in the world?"
<LuaCode>
	npc_says(_"You Linarians see the world similar to the Heads Up Displays, or [b]HUD[/b], used in computer games.")
	npc_says(_"Linarians, like all birds, have a remarkable internal sense of direction. Apparently your HUD has a [b]compass[/b], represented by four red arrows in the upper right corner with North marked on it.")
	npc_says(_"You can temporarily disable this compass by pressing the 'tab' key.")
	update_quest(_"Tutorial Movement", _"I learned the four red arrows in the upper-right of my HUD is a compass with north marked on it. I can toggle it using the 'tab' key.")
	npc_says(_"Rumor is there was a device Linarians used to remember every place they had been, called an [b]automap[/b].")
	npc_says(_"Although, you don't currently have such a device, you might find someone with nanotechnology skills to make one.")
	tux_says(_"I'll keep that in mind.")
	hide(2)
</LuaCode>
----------------------------------------------------------------------

Nr=3 Text=_"My limbs don't seem to want to work properly. Can you help me with that?"
<LuaCode>
	npc_says(_"Ah yes, movement. It's second nature to us humans, but our research with you in the past showed that your brain seems to work more like a computer.")
	npc_says(_"To move somewhere, you first need to determine where you want to go by [b]left clicking[/b] where you want to go on your HUD.")
	npc_says(_"If you can go there, you will do so.")
	npc_says(_"Now try to move to the red dot to the north. Then to the black grating to the east, and then talk to me again.")
	update_quest(_"Tutorial Movement", _"I'm supposed to left click anywhere to move to a location. If I can figure out a way, I will move there automatically. Tom wants me to first try to move to the red dot to the North.")
	add_cookie("learn_to_walk")
	end_dialog()
	hide(3)
</LuaCode>
----------------------------------------------------------------------

Nr=4 Text=_"What else makes me different as a Linarian?"
<LuaCode>
	npc_says(_"As a Linarian, you have some special abilities that no human does: Linarians can translate programming source code into something like magic.")
	npc_says(_"However, using these [b]Programs[/b], adversely affect your body temperature, which you must regulate.")
	npc_says(_"But you normally have a special program called [b]Emergency Shutdown[/b], which freezes your motions for several seconds but significantly cools your body.")
	npc_says(_"This, and the ability to hack bots will soon return once your mind recovers from the stasis.")
	npc_says(_"Once it does, we'll talk more about programs. You can toggle the [b]Skills/Program menu[/b] by pressing the [b]S key[/b].")
	update_quest(_"Tutorial Movement", _"View the Skills/Program menu by pressing the 'S' key.")
	hide(4)
</LuaCode>
----------------------------------------------------------------------

Nr=5 Text=_"I'm sensing some sort of strange presence in the vicinity."
<LuaCode>
	npc_says(_"Ah, yes.", "NO_WAIT")
	npc_says(_"Linarians seem to [b]detect items[/b] - even through walls - in an augmented reality.")
	npc_says(_"The [b]Z key[/b] will toggles this augmentation, while the [b]X key[/b] momentarily flashes it.")
	npc_says(_"Moving your pointer over an item will tell you more about that item.")
	npc_says(_"On our way to the next stopping point, we'll pass some items on the floor.")
	npc_says(_"Feel free to stop and examine them to get practice.")
	npc_says(_"[b]Left clicking[/b] on an item will pick it up and put it in your inventory, toggled by the [b]I key[/b], where you can examine it further.")
	update_quest(_"Tutorial Movement", _"Toggle detect items by pressing the 'Z' key, and press 'X' to flash the ability. To pick up an item, left click on it. To view an item you've picked up, open the inventory by pressing 'I'.")
	change_obstacle_state("TutorialEntry", "opened")
	hide(5)
</LuaCode>
----------------------------------------------------------------------

Nr=7 Text=_"No, thanks, I still remember how to walk, run, navigate, and pick things up."
<LuaCode>
	hide(1, 7, 80) next(9)
</LuaCode>
----------------------------------------------------------------------

Nr=8 Text=_"Thank you, that was very informative. Can we move on now?"
<LuaCode>
	end_quest(_"Tutorial Movement")
	npc_says(_"I just closed your first quest. You can still see what you learned by clicking on the 'done quests' tab in the quest screen.", "NO_WAIT")
	hide(8) next(9)
</LuaCode>
----------------------------------------------------------------------

Nr=9 Text=_"I'm eager to learn more."
<LuaCode>
	npc_says(_"Ok, follow me into the next area.")
	for var in ipairs(doors) do
			change_obstacle_state(doors[var], "opened")
		end
	end_dialog()
	hide(1, 2, 3, 4, 5) show(10)
</LuaCode>
----------------------------------------------------------------------

Nr=10 Text=_"What is in that chest?"
<LuaCode>
	npc_says(_"Well, you can interact with several types of objects by simply [b]left clicking[/b] on them.")
	npc_says(_"Left click on the chest to open it up and see what is inside.")
	add_quest(_"Tutorial Melee", _"I'm supposed to left click on chests to open them up.")
	hide(10) show(11, 19)
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=11 Text=_"Some items came out."
<LuaCode>
	npc_says(_"Well, you've discovered a great secret: chests sometimes contain items.")
	npc_says(_"We humans have a fascination with hiding our treasures. What comprises a treasure means different things to different people.")
	npc_says(_"For some, it's valuable metals in robotic circuitry. That's the current monetary standard on our world.")
	npc_says(_"For others, it may be weapons, or even just items that may be used as weapons in a pinch.")
	npc_says(_"Still others, odd as it may sound, keep dishes hidden away.")
	npc_says(_"Perhaps the best thing you can find, though, is armor. At least, given the current situation with the bots, that is.")
	hide(11) show(12, 13)
</LuaCode>
----------------------------------------------------------------------

Nr=12 Text=_"Armor? I should know more about this."
<LuaCode>
	npc_says(_"In the years since you entered stasis, mankind has done much research in the field of robotics.")
	npc_says(_"One branch in particular that has served us well is the realm of nanotechnology.")
	npc_says(_"Because they run a very simple operating system, nanobots were not affected by whatever caused the Great Assault.")
	npc_says(_"To this day, our armor and clothing are made out of nanobots. This enables many different sizes of people to wear the same clothing.")
	npc_says(_"The nanobots reshape the garment for a comfortable fit, so even you should be able to wear them without problem.")
	hide(12) show(14)
</LuaCode>
----------------------------------------------------------------------

Nr=13 Text=_"How does wearing clothes and holding shields help me?"
<LuaCode>
	npc_says(_"Well, it can help you avoid indecent exposure charges.")
	tux_says("...")
	npc_says(_"But all jokes aside, the bots will not mess around.")
	npc_says(_"Even the best of fighters sometimes get hit by enemy blows. If I were you, I would seriously consider wearing some sort of armor before mixing it up with those bots.")
	npc_says(_"They will help to mitigate some of the damage you take from melee or ranged combat.")
	npc_says(_"Keep in mind, though, that there is a chance that your armor will take damage whenever you get hit. Keep an eye on it, or you'll lose it.")
	hide(13) show(15)
</LuaCode>
----------------------------------------------------------------------

Nr=14 Text=_"That sounds useful. How do I use armor?"
<LuaCode>
	npc_says(_"Well, let me start by saying that there are four classes of armor: headgear, shoes, body armor, and shields.")
	npc_says(_"When you pick up a piece of armor of a particular class, and you don't already have one equipped, you will automatically equip it if you can.")
	npc_says(_"Picking up armor and items can be accomplished by [b]left clicking[/b] on the item. If your inventory has space, you will pick the item up.")
	npc_says(_"If you currently have one piece of armor equipped that you would like to swap out for another, simply drag the new armor piece to the current armor piece and left click.")
	npc_says(_"They will swap places, and you can put the other piece of armor back into your inventory.")
	npc_says(_"Alternatively, you can drag it into your field of view and drop it on the ground.")
	hide(14) show(16)
</LuaCode>
----------------------------------------------------------------------

Nr=15 Text=_"I wouldn't want to lose any armor. What can I do about that?"
<LuaCode>
	npc_says(_"Well, there are several ways to keep that from happening.")
	npc_says(_"Equipped items in poor condition will show up yellow and should turn red if in critical condition.")
	npc_says(_"If you don't unequip an item in poor or critical condition it may be ruined!")
	npc_says(_"There are three things you can do when an item reaches critical condition:")
	npc_says(_"First, you can sell or discard the item.")
	npc_says(_"Second, you can use your [b]repair equipment[/b] program on the item, which will repair the item at the cost of some of its durability.")
	npc_says(_"Or third, you can have the item repaired at a shop, which maintains the item's durability at a price.")
	hide(15) show(17)
</LuaCode>
----------------------------------------------------------------------

Nr=16 Text=_"You mentioned discarding an item. Why would I want to do that?"
<LuaCode>
	npc_says(_"Well, I can think of a few reasons.")
	npc_says(_"You might not have enough room in your inventory for an item you need more, or can sell for more.")
	npc_says(_"If an item is close to being destroyed, you might also consider dropping it.")
	npc_says(_"And finally some items give negative status effects, and aren't worth selling.")
	npc_says(_"Armor or weapons may affect you in different ways.")
	npc_says(_"Some will help you out, for example by increasing your cooling rate or increasing your dexterity. This is the work of specialized nanobots, but the reverse can happen too.")
	hide(16)
</LuaCode>
----------------------------------------------------------------------

Nr=17 Text=_"Repair equipment program? How do I use that?"
<LuaCode>
	npc_says(_"Perhaps I should start by explaining programs in general.")
	npc_says(_"To use a program, select it through your HUD (remember the [b]S key[/b] toggles your [b]Skills/Program menu[/b]).")
	npc_says(_"After you've selected a program, run the program by right clicking. Depending on the program you can target an enemy, an item, or just the world.")
	npc_says(_"You can also assign quick-select keys to programs. Simply hover over the program in the Skills/Program menu and press one of the keys [b]F5[/b] to [b]F12[/b]. Then, whenever you press this button, you will select the corresponding program.")
	npc_says(_"If you're curious what a program does, you can find out by clicking the question mark in the Skills/Program menu.")
	npc_says(_"Now, to answer your question, you use your repair equipment program by selecting it in the Skills/Program menu, then right clicking on the item you wish to repair.")
	improve_program("Repair equipment")
	add_cookie("has_repair")
	update_quest(_"Tutorial Melee", _"Run a program by right clicking after it has been selected from the Skills/Program menu. My shoes are damaged, so I might try the repair equipment program on them to slightly repair them.")
	hide(17)
</LuaCode>
----------------------------------------------------------------------

Nr=19 Text=_"I think I'm ready for the next section of the tutorial."
<LuaCode>
	npc_says(_"Ok, I'll open the next door then. But prepare yourself, soon you will learn how to fight against bots in hand-to-hand combat.")
	if (not has_cookie("has_repair")) then
		improve_program("Repair equipment")
	end
	change_obstacle_state("TutorialEquipOut", "opened")
	end_dialog()
	hide(10, 11, 12, 13, 14, 15, 16, 17, 19) show(20, 29)
</LuaCode>
----------------------------------------------------------------------

Nr=20 Text=_"Can you tell me how to fight the bots?"
<LuaCode>
	npc_says(_"I will certainly try my best.")
	npc_says(_"It's odd to think that a flightless bird would be such a scrapper, but you Linarians have been surprising us since the beginning.")
	npc_says(_"We prefer to fight the blamed droids at a distance. They're less likely to rend us limb from limb that way.")
	npc_says(_"Unfortunately, guns and other ranged weaponry are hard to come by these days.")
	npc_says(_"That goes double for ammunition. Because these are bots, you really can't effectively keep them at bay by just waving around an empty gun.")
	npc_says(_"With that in mind, your most reliable weapons are your fists. They never run out of ammo or wear down, but of course they don't do much damage against a metal body, either.")
	hide(20) show(21, 23)
</LuaCode>
---------------------------------------------------------------------

Nr=21 Text=_"So I'm supposed to fight bots with my fists?"
<LuaCode>
	npc_says(_"There may be times when you have no choice.")
	npc_says(_"Melee combat, armed or unarmed, can be initiated by [b]left clicking[/b] on an enemy.")
	npc_says(_"You will then walk over to the enemy and start hitting them.")
	npc_says(_"Now, I understand you may have some concerns over your safety during this...")
	tux_says(_"CONCERNS? Erm... Yes, this doesn't sound like a particularly healthy endeavor.")
	npc_says(_"Fred, if you're afraid, you'll have to overlook it. Besides, you knew the job was dangerous when you took it.")
	tux_says(_"I beg your pardon? Who is Fred?")
	npc_says(_"Never mind, just an old song.")
	npc_says(_"Fighting the bots hand-to-hand has risks, there is no question. However, there are things you can do to even the odds.")
	npc_says(_"We already discussed armor. Another useful type of item is medical supplies.")
	npc_says(_"There are a few different types of restorative items. The most common are health drinks.")
	hide(21) show(22)
</LuaCode>
----------------------------------------------------------------------

Nr=22 Text=_"Tell me about health drinks."
<LuaCode>
	npc_says(_"Man has practiced medicine in one form or another for hundreds of years.")
	npc_says(_"Using some of the same nanotechnology that makes up your armor, we've perfected drinks that instantaneously restore your health.")
	npc_says(_"There are many kinds, but all accomplish the same thing, to varying degrees.")
	npc_says(_"Certain items, like health drinks, can be used directly without clicking on them.")
	npc_says(_"At the bottom of your HUD, you'll notice your item access belt. Small items can go here and be used by pressing the numbers [b]0[/b] through [b]9[/b].")
	npc_says(_"Unlike armor or weapons, multiple of these items will group together in your inventory slots.")
	npc_says(_"If you have Diet Supplements equipped in item slot 1, you can press 1 to use one.")
	npc_says(_"This will restore your health, and will be invaluable in the heat of battle.")
	update_quest(_"Tutorial Melee", _"Small one-time-use items, like diet supplements, can be placed in inventory spots labels 1 to 0, and can be used by pressing the corresponding key.")
	hide(22)
</LuaCode>
----------------------------------------------------------------------

Nr=23 Text=_"I'm ready to fight my first bot."
<LuaCode>
	npc_says(_"We keep two bots captive for melee practice.")
	npc_says(_"I've unlocked the door leading to the first bot. Take care of it, then come back and talk to me.")
	npc_says(_"I'm also giving you some health drinks. Feel free to use them, though I can heal you if you need it.")
	npc_says(_"Your health will also regenerate over time. I wish it were so easy for us humans.")
	npc_says(_"The first bot is carrying an [b]Entropy Inverter[/b]. Bring it to me to prove you've beaten it.")
	npc_says(_"Come back and talk to me when you have the Entropy Inverter.")
	change_obstacle_state("TutorialMelee1", "opened")
	add_item("Doc-in-a-can", 3)
	update_quest(_"Tutorial Melee", _"I'm going to fight my first bot! To start melee combat left click on the bot. Tom wants the Entropy Inverter from the bot after I've defeated it, so I should pick that up.")
	end_dialog()
	hide(23) show(24, 25)
</LuaCode>
----------------------------------------------------------------------

Nr=24 Text=_"Can you heal me?"
<LuaCode>
	npc_says(_"You should be more careful, Linarian. But yes, I can heal you.")
	npc_says(_"There, all better.")
	heal_tux()
</LuaCode>
----------------------------------------------------------------------

Nr=25 Text=_"I've beaten the first bot."
<LuaCode>
	if (has_item_backpack("Entropy Inverter") > 0) then
		npc_says(_"So you have. Well done.")
		npc_says(_"I'll trade you this wrench for it. I think you'll find it handy.")
		npc_says(_"Now would be an appropriate time to mention bot parts, I guess.")
		npc_says(_"Certain parts in the bots are extra valuable. You can sell them at stores for cash.")
		npc_says(_"If you can learn to extract these parts, it can help improve your lot in the world.")
		npc_says(_"Hopefully, you can find someone to teach you.")
		del_item_backpack("Entropy Inverter", 1)
		add_item("Big wrench", 1)
		update_quest(_"Tutorial Melee", _"I brought the entropy inverter to Tom and he gave me my first weapon: a Big wrench. I should equip it.")
		hide(25) show(26)
	else
		npc_says(_"Trying to cheat your way through the tutorial doesn't bode well for your chances in the real world.")
		npc_says(_"I'll need proof that you've beaten the first bot.")
		npc_says(_"Don't come back without the [b]Entropy Inverter[/b] it was carrying.")
		end_dialog()
	end
</LuaCode>
----------------------------------------------------------------------

Nr=26 Text=_"You mentioned another bot?"
<LuaCode>
	npc_says(_"That's correct. The second bot is a lot more dangerous, and you're not likely to make much headway against it with your fists.")
	npc_says(_"Lucky for you, there's another dimension to melee combat.")
	npc_says(_"Fighting bots with your fists is fine, but there are a number of items you can use for melee.")
	npc_says(_"There are several traditional weapons in the world such as swords or light sabers that can be used against the bots.")
	npc_says(_"However, more common items you encounter everyday can often be used to bash or pry at droid armor.")
	npc_says(_"For example, that wrench I just gave you will increase the damage you do, and should let you best the next bot.")
	hide(26) show(27)
</LuaCode>
----------------------------------------------------------------------

Nr=27 Text=_"I'm ready to take the next bot on."
<LuaCode>
	npc_says(_"I certainly hope so. I will heal you before you go to the next room.")
	npc_says(_"I'm also giving you another healing drink, just in case.")
	npc_says(_"A 247 is nothing to trifle with, so I'm giving you a shield in the hopes that it'll help keep you alive.")
	npc_says(_"Finally, I'm giving you couple of somewhat experimental pills that will temporarily increase your strength and dexterity, respectively.")
	npc_says(_"Use them in the same way you would use a health drink.")
	npc_says(_"If I were you, I would think about using your repair equipment program on your armor and that wrench before you go into the room.")
	npc_says(_"You'll also need to equip them. I won't do that for you.")
	npc_says(_"Like the last bot, this one will be carrying an item. Bring me the [b]Tachyon Condensator[/b] it is carrying to continue.")
	npc_says(_"I've unlocked the door. Good luck, and talk to me when you have the Tachyon Condensator.")
	change_obstacle_state("TutorialMelee2", "opened")
	heal_tux()
	add_item("Doc-in-a-can", 1)
	add_item("Strength Capsule", 1)
	add_item("Dexterity Capsule", 1)
	add_item("Standard Shield", 1)
	end_dialog()
	hide(27) show(28)
</LuaCode>
----------------------------------------------------------------------

Nr=28 Text=_"I've beaten the second bot."
<LuaCode>
	if (has_item_backpack("Tachyon Condensator") > 0) then
		npc_says(_"Very good! You've completed your melee training.")
		npc_says(_"These skills will serve you well in the future.")
		npc_says(_"As a reward, I'm trading you a .22 Automatic pistol for that Tachyon Condensator.")
		npc_says(_"Talk to me when you're ready to move on to the next part of the tutorial.")
		del_item_backpack("Tachyon Condensator", 1)
		add_item(".22 Automatic", 1)
		add_cookie("has_gun")
		hide(28) show(29)
	else
		npc_says(_"You didn't bring back the Tachyon Condensator. You'll need to bring it back before we can continue.")
		npc_says(_"I'll go ahead and heal you. If your weapon or armor are in bad shape, perhaps you should repair them before going back in there.")
		npc_says(_"Don't come back without the [b]Tachyon Condensator[/b].")
		end_dialog()
	end
	heal_tux()
</LuaCode>
----------------------------------------------------------------------

Nr=29 Text=_"I'm ready to move on."
<LuaCode>
	if (not done_quest(_"Tutorial Melee")) then
		complete_quest(_"Tutorial Melee", _"I decided to move on and go to the shooting tutorial.")
	end
	if (has_cookie("has_gun")) then
		npc_says(_"I'll bet you're itching to try that pistol out on some bots.")
		npc_says(_"Our next destination is the ranged combat training area, so you're in luck.")
	end
	npc_says(_"I'll unlock the door to the south. Follow the corridor east to the shooting range.")
	change_obstacle_state("TutorialMeleeOut", "opened")
	set_bot_destination("TutorialTom-Wall")
	end_dialog()
	hide(20, 21, 22, 23, 24, 25, 26, 27, 28, 29) show(70)
</LuaCode>
----------------------------------------------------------------------

Nr=30 Text=_"Ranged weaponry seems safer than getting up close and personal."
<LuaCode>
	npc_says(_"Well, Linarian, most of the time it is.")
	npc_says(_"There are some bots with ranged weaponry, but we don't have any of those in captivity.")
	add_quest(_"Tutorial Shooting", _"I am learning about how to use ranged weapons.")
	hide(30) show(31)
</LuaCode>
----------------------------------------------------------------------

Nr=31 Text=_"So what can you tell me about guns?"
<LuaCode>
	npc_says(_"The basic idea behind ranged weaponry is to hurt or kill an enemy without having to come within swinging range.")
	npc_says(_"There are three basic ways to do this: traditional firearms, lasers, and plasma weapons.")
	npc_says(_"Traditional firearms are things that go bang. A small explosion accelerates the ammunition towards the target at a high velocity, causing injury.")
	npc_says(_"Lasers use an intensified beam of light to burn through the intended victim. These operate on replaceable charge packs.")
	npc_says(_"Plasma weapons use superheated ionized gas to burn the target. The gas comes in loadable canisters.")
	npc_says(_"Most other ranged weapons are variations of these three. We have a few in storage for training purposes.")
	hide(31) show(32)
</LuaCode>
----------------------------------------------------------------------

Nr=32 Text=_"So how do I use guns?"
<LuaCode>
	npc_says(_"Well, firing is pretty simple. First, equip a ranged weapon that you have ammunition for.")
	npc_says(_"Next, simply [b]left click[/b] on your target, and you'll begin firing.")
	npc_says(_"Alternatively, you can fire a single shot using the [b]Fire Weapon[/b] program, and [b]right clicking[/b] on the enemy.", "NO_WAIT")
	npc_says(_"That is the best way if you are trying to conserve precious ammo with high rate of fire guns.")
	npc_says(_"There are a couple of new tricks with ranged weapons. If you want to [b]move while firing[/b]: hold [b]shift[/b] and [b]left click[/b] your desired position.")
	npc_says(_"If you'd rather stay in place: Hold [b]A[/b], then [b]left click[/b] your target.")
	npc_says(_"When your weapon runs out of ammo during combat, it will try to automatically reload if you have extra ammunition for it.")
	npc_says(_"Sometimes, you will need or want to manually reload. You can do this by pressing the [b]R key[/b].")
	npc_says(_"If you are reloading, or you are out of ammo, the small message screen at the bottom of your HUD will tell you what type of ammo to get.")
	if (not has_cookie("guns_how_to")) then
		add_cookie("guns_how_to")
		update_quest(_"Tutorial Shooting", _"If I have equipped a ranged weapon and I left click on an enemy, I will begin firing upon it until my gun is empty, and automatically reload. But if I want to fire a single shot, I need to also equip the Fire Weapon program, and then right click. To move while firing, I have to shift + left click to where I want to go. Also, if I want to manually reload I have to press the 'R' key. The small message screen at the bottom of my HUD will tell me if I'm reloading or out of ammunition.")
	end
	if (not has_cookie("opened_door")) then show(33) end
</LuaCode>
----------------------------------------------------------------------

Nr=33 Text=_"I think I understand how to use guns now."
<LuaCode>
	npc_says(_"In that case, I'll let you in to the armory. There are some crates and chests in there with weapons and ammunition.")
	npc_says(_"Be careful though, smashing open crates and barrels could hurt you.")
	if (has_cookie("has_gun")) then
		npc_says(_"You already got the .22 pistol I gave you earlier when destroying that 247. It's not much as guns go, but it can do the trick.")
	else
		npc_says(_"Here's my personal .22 Automatic pistol. It's not much as guns go, but it can do the trick.")
		add_item(".22 Automatic", 1)
	end
	npc_says(_"Here is some more ammunition for it.")
	npc_says(_"You'll no doubt get more mileage out of the plasma pistol, though. Or any other gun, for that matter.")
	npc_says(_"Practice switching weapons and reloading.")
	npc_says(_"On the other side of that fence are some bots. Practice killing them off with various ranged weapons.")
	npc_says(_"Once you've gotten rid of them all, we can move on.")
	update_quest(_"Tutorial Shooting", _"Tutorial Tom wants me to shoot those bots.")
-- TODO probably explain leveling as well as balancing changes to XP always risk causing leveling here. Or somehow make sure Tux can't level
	add_cookie("opened_door")
	change_obstacle_state("TutorialStorage", "opened")
	change_obstacle_state("TutorialShootCage", "opened")
	add_item(".22 LR Ammunition", 50)
	end_dialog()
	hide(33) show(34, 35)
</LuaCode>
----------------------------------------------------------------------

Nr=34 Text=_"I ran out of ammo. Can I have some more?"
<LuaCode>
	npc_says(_"Check the storage room to the west for more guns and ammo.")
	hide(34)
</LuaCode>
----------------------------------------------------------------------

Nr=35 Text=_"I killed all the bots."
<LuaCode>
	if (done_quest(_"Tutorial Shooting")) then
		npc_says(_"Excellent job.")
		npc_says(_"Keep shooting like that, and the bots will never stand a chance, as long as you still have ammo.")
		npc_says(_"Next, we'll be moving on to learning the [b]Hacking[/b] program.")
		npc_says(_"But first, you'll need to give me your weapons.")
		npc_says(_"Put all your ranged weapons in your inventory, then talk to me and we'll move on.")
		update_quest(_"Tutorial Shooting", _"That was like shooting fish in a barrel. I could use a fish about now.")
		end_dialog()
		hide(35, 38) show(36, 37)
	else
		npc_says(_"I don't mind if you don't want to do this, but please don't try to trick me.")
		npc_says(_"I don't have verified kills on all those bots.")
	end
</LuaCode>
----------------------------------------------------------------------

Nr=36 Text=_"I would like a few more bots to shoot at."
<LuaCode>
	npc_says(_"Ok, I'll create some more droids.")
	i = 1
	while (i < 8) do
		create_droid("shootingrange"..i, 123)
		i = i + 2
	end
	end_dialog()
	hide(36)
</LuaCode>
----------------------------------------------------------------------

Nr=37 Text=_"I'm ready to move on."
<LuaCode>
	if (has_item_backpack(".22 Automatic") > 0 and has_item_backpack("Laser pistol") > 0 and has_item_backpack("Plasma pistol") > 0) then
		hide(36, 37) next(39)
	else
		npc_says(_"I'll need you to surrender your guns. Unequip them all, then talk to me again.")
		npc_says(_"You will need to have the guns in your inventory to give them to me, so if you dropped them, please go get them.")
		npc_says(_"That includes the laser and plasma pistols in the storage room to the west.")
		end_dialog()
	end
</LuaCode>
----------------------------------------------------------------------

Nr=38 Text=_"I'd rather just move on to the next section of the tutorial."
<LuaCode>
	npc_says(_"As you wish, Linarian.")
	if (has_cookie("opened_door")) then
		if (has_item_backpack(".22 Automatic") > 0 and has_item_backpack("Laser pistol") > 0 and has_item_backpack("Plasma pistol") > 0) then
			end_quest(_"Tutorial Shooting", _"I decided not to finish the shooting tutorial.")
			next(39)
		else
			npc_says(_"I'll need you to surrender your guns. Unequip them all, then talk to me again.")
			npc_says(_"You will need to have the guns in your inventory to give them to me, so if you dropped them, please go get them.")
			npc_says(_"That includes the laser and plasma pistols in the storage room to the west.")
		end
	elseif has_cookie("has_gun") then
		if (has_item_backpack(".22 Automatic") > 0) then
			end_quest(_"Tutorial Shooting", _"I decided not to finish the shooting tutorial.")
			next(39)
		else
			npc_says(_"I'll need you to surrender your .22 pistol. Unequip it, then talk to me again.")
			end_dialog()
		end
	else
		end_quest(_"Tutorial Shooting", _"I decided not to do the shooting tutorial.")
		next(39)
	end
</LuaCode>
----------------------------------------------------------------------

Nr=39 Text="BUG, REPORT ME! tutorial node39 -- REMOVE WEAPONS" --hidden
NO_TEXT
<LuaCode>
	del_item_backpack(".22 Automatic")
	del_item_backpack("Laser pistol")
	del_item_backpack("Plasma pistol")
	npc_says(_"Thank you, Linarian. We'll now move on to hacking.")
	change_obstacle_state("TutorialShootingOut", "opened")
	end_dialog()
	hide(30, 31, 32, 33, 37, 38, 39) show(40)
</LuaCode>
----------------------------------------------------------------------

Nr=40 Text=_"Why are we stopping?"
<LuaCode>
	npc_says(_"You've done well so far, Linarian. Let's take a little break.")
	npc_says(_"Once you get out into the real world, you'll find that your current abilities aren't always enough to survive.")
	npc_says(_"As you achieve combat experience, you'll be able to apply it to better yourself.")
	npc_says(_"As with most things, you view this as a panel in your HUD. Press the [b]C key[/b] to open the [b]Character panel[/b].")
	npc_says(_"Once you've gained enough experience, you'll level up. This will automatically improve some of your statistics.")
	npc_says(_"You'll also be given 5 points to spend however you choose in three different areas. Characteristics, Skills and Programs.")
	npc_says(_"[b]Strength[/b] governs the amount of damage you do with each hit in melee combat.")
	npc_says(_"[b]Dexterity[/b] controls your hit rate, or how likely you are to hit the enemy. It also determines how likely you are to dodge a hit from them.")
	npc_says(_"[b]Cooling[/b] is your processors cooling. or heat resilience, and determines how much you can process before your system starts overheating.")
	npc_says(_"Finally, among your main characteristics, [b]Physique[/b] determines how much health you have.")
	npc_says(_"There are general [b]Melee[/b] and [b]Ranged[/b] fighting skills, both of which increase the damage you inflict and how fast you attack as you improve them.")
	npc_says(_"You also have the [b]Programming[/b] skill, which essentially is about programming in an energy-efficient manner so programs cause less heat.")
	npc_says(_"Apart from this, a few programs require a teacher and training points to improve.")
	npc_says(_"[b]Extract Bot Parts[/b] is a special passive skill that will allow you to salvage parts from bots you 'retire', which you can trade for money in the town.")
	npc_says(_"A good technician is able to make use of those parts.")
	npc_says(_"He can create, let's say, an add-on and, after doing some modifications to the item, attach this add-on.")
	npc_says(_"This way an upgraded item is created.")
	add_quest(_"Tutorial Upgrading Items", _"There is a way to upgrade items if I meet a good technician. It sounds useful, maybe I should learn more about this.")
	npc_says(_"The [b]Hacking[/b] program we will speak a bit more of in a little while.")
	hide(40) show(41)
</LuaCode>
----------------------------------------------------------------------

Nr=41 Text=_"I'll have to keep that in mind."
<LuaCode>
	npc_says(_"Well, how about you try it out?")
	npc_says(_"I'll give you some points to spend, and you can distribute them as you like.")
	npc_says(_"Since you'll be hacking up ahead, you should probably use a few of them on [b]Cooling[/b].")
	npc_says(_"But, again, that's your choice.")
	add_xp("2000")
	end_dialog()
	hide(41) show(42, 58)
</LuaCode>
----------------------------------------------------------------------

Nr=42 Text=_"Alright, I'm ready to go hack some bots."
<LuaCode>
	if (not done_quest(_"Tutorial Upgrading Items")) then
		end_quest(_"Tutorial Upgrading Items",_"I decided that I don't need to know how to upgrade items.")
	end
	npc_says(_"First, you'll need to unlock the door.")
	npc_says(_"See that [b]Terminal[/b] to the left?")
	npc_says(_"You will need to login, by left clicking on it, and then select unlock door.")
	npc_says(_"Terminals act very similar to hacked bots.")
	add_quest(_"Tutorial Hacking", _"I need to login to the Terminal by left clicking on it. Then I'll unlock the door, so I can go hack some bots!")
	end_dialog()
	hide(42, 58, 59, 60) show(50, 56)
</LuaCode>
----------------------------------------------------------------------

Nr=50 Text=_"So how does this work?"
<LuaCode>
	npc_says(_"We talked about programs before. Now, we're going to focus on hacking programs in particular.")
	npc_says(_"As I mentioned before, your brain works in a way remarkably similar to a central processing unit.")
	npc_says(_"In many ways, you interact with the world around you as a virtual environment.")
	npc_says(_"You seem to have access to an API that isn't exposed to humans. You can interact with the environment in ways we only dream of.")
	npc_says(_"Because of this, you can run various programs on the bots.")
	npc_says(_"You can attempt to take them over, or monkey with their programming, or even cause them to damage themselves.")
	npc_says(_"Likewise, there are certain programs that affect you or items around you.")
	hide(50) show(51)
</LuaCode>
----------------------------------------------------------------------

Nr=51 Text=_"Tell me about taking bots over."
<LuaCode>
	npc_says(_"I'm afraid that you will have to experience it for yourself to really understand.")
	npc_says(_"However, you did leave yourself instructions before you went into stasis sleep.")
	npc_says(_"Taking over a bot comes in the form of a game or competition placing you against the bot.")
	npc_says(_"You initiate it by selecting the [b]Hacking[/b] program, then [b]right-clicking[/b] on a hostile bot.")
	npc_says(_"The field of play is split into two sides, one green, one maroon, representing circuit boards.")
	npc_says(_"In the center of the field is a column of boxes known as logic cores. These cores have wires attached to them from both circuit boards.")
	npc_says(_"Your objective is to activate as many cores in your chosen color as possible at the end of each round.")
	npc_says(_"This is accomplished by selecting a wire with the up or down buttons, then pressing spacebar to activate that core.")
	npc_says(_"You will be given about 10 seconds initially to select which color you want with spacebar.")
	npc_says(_"At that point, you have 10 more seconds in which to activate more cores than the bot.")
	npc_says(_"You have a limited number of charges, 3 by default, so choose your targets carefully.")
	npc_says(_"I can tell you about some more advanced techniques, if you'd like.")
	update_quest(_"Tutorial Hacking", _"Apparently in order to hack, all I have to do is select the Hacking program, right click a bot, and play a little game. I've got this!")
	show(52, 53, 54) hide(51)
</LuaCode>
----------------------------------------------------------------------

Nr=52 Text=_"What was that about activating more cores than the bot?"
<LuaCode>
	npc_says(_"Ah, yes. While you are busy trying to take the bot over, it will be busy trying to stop you.")
	npc_says(_"The truth is, if the bot programming was perfect, it would be almost impossible to defeat.")
	npc_says(_"Fortunately for you, software bugs do indeed exist, and therefore some cores will be on your side from the beginning.")
	npc_says(_"Likewise, the bots only have a limited number of charges. Occasionally, they will have more than you, but that is a risk you have to take.")
	npc_says(_"Because you are initiating the attack, you do get to choose your side, which can let you handicap the bot greatly if used wisely.")
	hide(52)
</LuaCode>
----------------------------------------------------------------------

Nr=53 Text=_"Tell me about more advanced techniques."
<LuaCode>
	npc_says(_"Each charge will activate and remain active for a certain amount of time. This will let you take over a core that a bot just took over.")
	npc_says(_"Sometimes, the bots will already have charges on the wires. When you activate one of these, it will increase the time that wire is activated for.")
	npc_says(_"The bot can use this trick to, so it may be wise to give up a heavily guarded wire for an easier target.")
	npc_says(_"The wiring inside the bots sometimes contain splitters. These can be used in two ways.")
	npc_says(_"A 2-to-1 splitter is undesirable. This requires two charges to activate one core, halving your efficiency.")
	npc_says(_"A 1-to-2 splitter, however, will activate two nodes for the price of one charge.")
	npc_says(_"Sometimes these splitters will be stacked. Tracing the route ahead of time will be crucial to your tactical success.")
	npc_says(_"Ideally, you want to stick your opponent with 2-to-1 splitters, while you have 1-to-2 splitters at your disposal.")
	npc_says(_"Finally, remember that patience is often a virtue. Taking over all cores early on only to lose them later can be a crushing blow.")
	hide(53)
</LuaCode>
----------------------------------------------------------------------

Nr=54 Text=_"I'm ready to try hacking bots."
<LuaCode>
	npc_says(_"I certainly hope so.")
	npc_says(_"I should, however, take the time to tell you a few more things.")
	npc_says(_"Hacking, like most other programs, incurs a cost to you.")
	npc_says(_"Processing programs seems to heat up your brain.")
	npc_says(_"You seem to be able to handle quite a bit of heat, but you have your limits.")
	npc_says(_"If you accumulate too much heat, you will automatically shut down in order to cool off.")
	npc_says(_"Over time, the heat will seep away from your body naturally. However, there are ways to speed up the process.")
	npc_says(_"If you can find them, cooling drinks will quickly relieve your thermal discomfort, in much the same way healing drinks help your health.")
	npc_says(_"Remember you also have a special program called [b]Emergency Shutdown[/b] that will lower your heat level drastically. Unfortunately using Emergency Shutdown will shut you down and render you paralyzed for several seconds. It makes you a sitting duck... er, penguin.")
	tux_says(_"I take it that was a joke also?")
	npc_says(_"Quite.", "NO_WAIT")
	npc_says(_"In addition to hacking, you have the ability to execute arbitrary code on bots.")
	npc_says(_"These scripts and programs can be learned through reading source code books. To read a book, right-click on it in inventory.")
	npc_says(_"You should have recovered your hacking ability by now, and I'll give you a couple of source code books as well.")
	show(55, 57) hide(54)
</LuaCode>
----------------------------------------------------------------------

Nr=55 Text=_"Thanks. I'm ready now."
<LuaCode>
	npc_says(_"We have several bots behind that fence for you to practice on.")
	npc_says(_"Take them over, then talk to me when they're all dead, and we'll be done with the tutorial.")
	npc_says(_"If you need more help, don't hesitate to ask.")
	npc_says(_"Oh, and Linarian... If you fail when hacking, you'll receive an electrical shock.")
	npc_says(_"It shouldn't kill you, but you need to be aware of it nonetheless.")
	improve_program("Hacking")
	improve_program("Emergency shutdown")
	add_item("Liquid nitrogen", 1)
	add_item("Source Book of Calculate Pi", 1)
	add_item("Source Book of Malformed packet", 1)
	add_cookie("hacking_bots")
	update_quest(_"Tutorial Hacking", _"Tutorial Tom wants me to hack those bots. The only thing I need to worry about is overheating. But if I get too hot I can always try the Emergency shutdown program.")
	change_obstacle_state("TutorialTakeoverCage", "opened")
	end_dialog()
	hide(55) show(56)
-- TODO Also explain improving program revisions
</LuaCode>
----------------------------------------------------------------------

Nr=56 Text=_"I'm finished. I'm ready to move on."
<LuaCode>
	if (has_cookie("hacking_bots")) then
		if (not done_quest(_"Tutorial Hacking")) then
			npc_says(_"The bots aren't dead, Linarian.")
			npc_says(_"Come back and talk to me after they are.")
			npc_says(_"If you're having trouble, you might try the [b]Malformed Packet[/b] program.")
		else
			npc_says(_"Well done! That concludes our tutorial.")
			del_cookie("hacking_bots")
			update_quest(_"Tutorial Hacking", _"Well, it took a lot of work, but I showed those bots who's boss.")
		end
	end
	npc_says(_"Now, there's one last thing you should know.")
	npc_says(_"You Linarians can apparently withdraw from our world temporarily.")
	npc_says(_"Time stops, and everything freezes in place.")
	npc_says(_"This can be accomplished by using the [b]Esc key[/b].")
	if (not has_cookie("hacking_bots")) then
		npc_says(_"Your final task is to leave us using this menu.")
		npc_says(_"I'm afraid there's nothing more I can teach you. I wish you good luck, Linarian.")
		npc_says(_"You'll need it if our world is to survive.")
	end
	end_dialog()
	hide(51, 52, 53, 54, 55, 57)
</LuaCode>
----------------------------------------------------------------------

Nr=57 Text=_"Tell me again about take over, I'm not sure I got it all."
<LuaCode>
	npc_says(_"Tell me exactly what part you want me to explain again.")
	npc_says(_"But things will be much clearer once you try for yourself than when I try to explain.")
	npc_says(_"Use your experience as notes, and all should be clear.")
	show(51, 52, 53) hide(57)
</LuaCode>
----------------------------------------------------------------------

Nr=58 Text=_"Can you tell me more about upgrading items?"
<LuaCode>
	npc_says(_"You can upgrade most weapons and clothing. First, you'll need some materials to craft add-ons.")
	npc_says(_"Parts needed for this process can be extracted from bots. You'll have to learn how to do it.")
	npc_says(_"When you have enough materials, you can craft an add-on. Make sure the add-on is suitable for your equipment.")
	npc_says(_"After this, you have to make a socket in your equipment so you can plug in the add-on.")
	npc_says(_"That's the theory. Simple, isn't it?")
	npc_says(_"I'll give you some materials now and let you craft an add-on.")
	npc_says(_"Pay attention to the type of socket the add-on needs.")
	update_quest(_"Tutorial Upgrading Items", _"Before crafting an add-on I have to get some materials. The best way is to extract them from the bots, using Extract Bot Parts skill. Each add-on requires a socket in the item. When the add-on is ready, I have to create a socket in the item and plug the add-on. Only technicians can craft add-ons or plug them.")
-- TODO decide on what type of upgrade should player make?
	for var in ipairs(items_up) do
		add_item(items_up[var], 20)
	end
	craft_addons()
	npc_says(_"Now you'll need to pay some more money in order to make a socket and plug in the add-on. Here, take some.")
	add_gold(600)
	npc_says(_"Choose an item and add an appropriate socket by clicking '+' on the right of the item. Then attach the add-on to this item and confirm your choice.")
	upgrade_items()
	end_quest(_"Tutorial Upgrading Items",_"Maybe I need some time to practice this, but I got the basics.")
	hide(58) show(59, 60)
</LuaCode>
----------------------------------------------------------------------

Nr=59 Text=_"I wasted my materials on the add-on I didn't need. Can you give more?"
<LuaCode>
	npc_says(_"Yes, but only this time. I'll give you some money too. Just be more careful in the future and make wise choices.")
	npc_says(_"Reality is not as generous as I am.")
	for var in ipairs(items_up) do
		add_item(items_up[var], 20)
	end
	add_gold(600)
	tux_says(_"Thank you.")
	npc_says(_"Think carefully before you make your next add-on.")
	hide(59)
</LuaCode>
----------------------------------------------------------------------

Nr=60 Text=_"Upgrading items is still too complex for me. Can you explain it again?"
<LuaCode>
	npc_says(_"First step is finding materials. They may be extracted from bots, but you'll have to learn how to do it.")
	npc_says(_"Those materials can be used in crafting add-ons. Make sure the add-on will fit your equipment. Also, remember the type of the socket your add-on needs.")
	npc_says(_"I gave you materials. Let's craft an add-on now.")
	craft_addons()
	npc_says(_"All you have to do now is to choose a suitable item and add a socket by clicking ''+'' on the right of the chosen item.")
	npc_says(_"Remember you pay for both adding a socket and plugging an add-on.")
	npc_says(_"Let's try it, shall we?")
	upgrade_items()
	npc_says(_"I hope it's clear now.")

</LuaCode>
----------------------------------------------------------------------

Nr=70 Text=_"There is a wall in the path! How will we get through?"
<LuaCode>
	npc_says(_"Notice part of it is made of a weak material, glass.")
	npc_says(_"Obstacles you can interact with change color when your cursor is hovering over them.")
	npc_says(_"[b]Left click[/b] on the glass wall to break it.")
	npc_says(_"After you break through the glass wall, walk to the other side so I know you are ready to move on.")
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

Nr=80 Text=_"I'd like to skip to a later section of the Tutorial."
<LuaCode>
	npc_says(_"OK, what would you like to learn about?")
	show(81, 82, 83, 84, 85, 86) hide(1, 7, 80)
</LuaCode>
----------------------------------------------------------------------

Nr=81 Text=_"Chests and Armor"
<LuaCode>
	npc_says(_"OK, I'll take us to the Chest.")
	teleport_npc("TutorialTom-Chest")
	teleport("TutorialTux-Chest")
	next(10) hide(81, 82, 83, 84, 85, 86)
</LuaCode>
----------------------------------------------------------------------

Nr=82 Text=_"Melee Combat"
<LuaCode>
	npc_says(_"OK, I'll take us to the melee arena and give you some armor.")
	teleport_npc("TutorialTom-Melee")
	teleport("TutorialTux-Melee")
	add_quest(_"Tutorial Melee", _"I skipped ahead to the Melee practice. Tom gave me some armor to use.")
	add_item("Normal Jacket")
	add_item("Improvised Buckler")
	add_item("Shoes")
	add_item("Worker Helmet")
	next(20) hide(81, 82, 83, 84, 85, 86)
</LuaCode>
----------------------------------------------------------------------

Nr=83 Text=_"Ranged Combat"
<LuaCode>
	npc_says(_"OK, I'll take us to the shooting range and give you some armor and a weapon.")
	teleport_npc("TutorialTom-Ranged")
	teleport("TutorialTux-Ranged")
	for var in ipairs(ranged_combat) do
		add_item(ranged_combat[var])
	end
	change_obstacle_state("TutorialShootCage", "opened")
	next(30) hide(81, 82, 83, 84, 85, 86)
</LuaCode>
----------------------------------------------------------------------

Nr=84 Text=_"Abilities"
<LuaCode>
	npc_says(_"OK, I'll take us there and give you some armor and a weapon.")
	teleport_npc("TutorialTom-Terminals")
	teleport("TutorialTux-Terminals")
	for var in ipairs(ranged_combat) do
		add_item(ranged_combat[var])
	end
	next(40) hide(81, 82, 83, 84, 85, 86)
</LuaCode>
----------------------------------------------------------------------

Nr=85 Text=_"Upgrading Items & Terminals"
<LuaCode>
	npc_says(_"OK, I'll take us there and give you some armor and a weapon to work with.")
	teleport_npc("TutorialTom-Terminals")
	teleport("TutorialTux-Terminals")
	for var in ipairs(ranged_combat) do
		add_item(ranged_combat[var])
	end
	next(58) show(42) hide(81, 82, 83, 84, 85, 86)
</LuaCode>
----------------------------------------------------------------------

Nr=86 Text=_"Hacking Bots"
<LuaCode>
	npc_says(_"OK, I'll take us to the hacking area. Also I'll give you some XP so you can improve your cooling.")
	add_xp("2000")
	teleport_npc("TutorialTom-Takeover")
	teleport("TutorialTom-Takeover")
	next(50) hide(81, 82, 83, 84, 85, 86)
</LuaCode>
----------------------------------------------------------------------

Nr=99 Text=_"Let me take a short break and practice on my own for a while."
<LuaCode>
	npc_says(_"Ok, I'll be around if you need any more questions answered. Don't hesitate to ask.")
	end_dialog()
</LuaCode>
----------------------------------------------------------------------

End of chat dialog for character="XXXXX"
