| 1 |
--------------------------------------------------------------------- |
| 2 |
-- This file is part of Freedroid |
| 3 |
-- |
| 4 |
-- Freedroid is free software; you can redistribute it and/or modify |
| 5 |
-- it under the terms of the GNU General Public License as published by |
| 6 |
-- the Free Software Foundation; either version 2 of the License, or |
| 7 |
-- (at your option) any later version. |
| 8 |
-- |
| 9 |
-- Freedroid is distributed in the hope that it will be useful, |
| 10 |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
-- GNU General Public License for more details. |
| 13 |
-- |
| 14 |
-- You should have received a copy of the GNU General Public License |
| 15 |
-- along with Freedroid; see the file COPYING. If not, write to the |
| 16 |
-- Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 |
-- MA 02111-1307 USA |
| 18 |
---------------------------------------------------------------------- |
| 19 |
--[[WIKI |
| 20 |
PERSONALITY = { "Unfriendly" }, |
| 21 |
PURPOSE = "$$NAME$$ helps improve Tux\'s skill. He is very unfriendly to the player.", |
| 22 |
BACKSTORY = "$$NAME$$ notices Tux is not Agent Zero, but is hesitant to open fire against a potential friend from AZ." |
| 23 |
WIKI]]-- |
| 24 |
|
| 25 |
local Npc = FDrpg.get_npc() |
| 26 |
local Tux = FDrpg.get_tux() |
| 27 |
|
| 28 |
return { |
| 29 |
FirstTime = function() |
| 30 |
Npc:says(_"Halt there, linarian. You are not my master but looks like him.") |
| 31 |
Npc:says(_"Hm, maybe I do not need to kill you like the others?", "NO_WAIT") |
| 32 |
Npc:says(_"Are you friend or foe?") |
| 33 |
show("node0", "node1") -- Friend: “A proprietary software hugger” Foe: “A friend of humankind” |
| 34 |
-- On friendly you comment to yourself (“...And I thought I was being sarcastic...”) |
| 35 |
end, |
| 36 |
|
| 37 |
EveryTime = function() |
| 38 |
if (RRR_introduced == nil) then |
| 39 |
Npc:says(_"Are you friend or foe, intruder?") |
| 40 |
end |
| 41 |
show("node99") |
| 42 |
|
| 43 |
end, |
| 44 |
|
| 45 |
{ |
| 46 |
id = "node0", |
| 47 |
text = _"I'm a friend of humankind!", |
| 48 |
code = function() |
| 49 |
Npc:says(_"Good. Now die.") |
| 50 |
Tux:kill() -- Maybe we should make more clear he is with MS? |
| 51 |
RRR_introduced = true |
| 52 |
hide("node0", "node1") |
| 53 |
end_dialog() |
| 54 |
end, |
| 55 |
}, |
| 56 |
{ |
| 57 |
id = "node1", |
| 58 |
text = _"I'm your friend! I am a proprietary-software hugger!", |
| 59 |
code = function() |
| 60 |
Npc:says(_"Ah, then you must be with my masters.") |
| 61 |
Npc:says(_"You can look, but don't touch anything, unless you have explicit authorization to do so.") |
| 62 |
Tux:says(_"...So much for sarcasm...", "NO_WAIT") |
| 63 |
RRR_introduced = true |
| 64 |
hide("node0", "node1") show("node10") |
| 65 |
end, |
| 66 |
}, |
| 67 |
{ |
| 68 |
id = "node10", |
| 69 |
text = _"Who are you?", |
| 70 |
code = function() |
| 71 |
Npc:says(_"I am currently in charge to oversee security of this place.") |
| 72 |
Npc:says(_"This is a secret facility, after all.") |
| 73 |
Npc:set_name(_"RR Security Chief") |
| 74 |
hide("node10") show("node11", "node20") |
| 75 |
end, |
| 76 |
}, |
| 77 |
{ |
| 78 |
id = "node11", |
| 79 |
text = _"So, you deal with security? Could you then teach me how to fight?", |
| 80 |
code = function() |
| 81 |
if (Tux:get_skill("melee") >= 4) then |
| 82 |
Npc:says(_"Sure. I'm bored anyway.", "NO_WAIT") |
| 83 |
Npc:says(_"But for a price. Five thousand circuits should be enough. A training point as well, or you won't remember what I'm about to teach you.") |
| 84 |
Npc:says(_"Previous experience is also required, and I won't care if you get hurt. Remember, this is melee training.") |
| 85 |
show("node12") |
| 86 |
else |
| 87 |
Npc:says(_"Hey, hey! You are not suitable for my training. My challenge is only for those who seeks mastery!") |
| 88 |
Npc:says(_"I cannot train you. Go bother someone else.") -- hum... did you meant “something else”? |
| 89 |
end |
| 90 |
hide("node11") |
| 91 |
end, |
| 92 |
}, |
| 93 |
{ |
| 94 |
id = "node12", |
| 95 |
text = _"Yes, teach me how to be a master at melee fighting! (costs 5000 valuable circuits, 2 training points)", |
| 96 |
code = function() |
| 97 |
if (Tux:train_skill(5000, 2, "melee")) then |
| 98 |
Npc:says(_"Let us begin then.") |
| 99 |
Npc:says(_"Please equip this screwdriver. I don't want to get hurt.") -- Maybe give tux a screwdriver latter, as a token? |
| 100 |
Npc:says(_"Also, put all your possessions near the tree, no cheating.") |
| 101 |
Tux:says(_"Done. What I do now? Should I try to hit you?") |
| 102 |
Npc:says(_"No. Nothing so dangerous.") |
| 103 |
Npc:says(_"I'll spawn a 883 Droid to you fight with.") |
| 104 |
Tux:says(_"Are you crazy?? With a screwdriver! What about 'dangerous'??") |
| 105 |
Npc:says(_"Nothing dangerous for [b]my[/b] health, of course. Good luck! Don't die!") |
| 106 |
Tux:del_health(100) -- Do not move from here, sound effect reasons. |
| 107 |
Npc:says(_"[b]...some painful time latter...[/b]") |
| 108 |
Tux:says(_"Ugh. Done, the 883 is dead, and surprisingly I'm alive. Who changed that thing to see me while invisible??") |
| 109 |
Npc:says(_"I did the best 883 I could. This installation is to be defended at all costs, after all. To defeat it with a screwdriver, you must be very special. No wonder Zero would be a friend of you.") |
| 110 |
Npc:says(_"However, this is enough training for now. I don't have more bots to you do insane fights with.") |
| 111 |
Tux:says(_"...Who is Zero?") |
| 112 |
Npc:says(_"I don't appreciate your jokes, linarian.") |
| 113 |
hide("node12") |
| 114 |
else |
| 115 |
if (Tux:get_gold() >= 5000) then |
| 116 |
Npc:says(_"You don't have enough experience. I can't teach you any more right now.") |
| 117 |
Npc:says(_"Try fighting against a tree, I don't know. Just come back with two training points so we can be done with it.") |
| 118 |
else |
| 119 |
Npc:says(_"You can be poor. But you will be poor [b]and[/b] an untrained Linarian.") |
| 120 |
end |
| 121 |
end |
| 122 |
end, |
| 123 |
}, |
| 124 |
{ |
| 125 |
id = "node20", |
| 126 |
text = _"Why is the factory so close to this installation?", |
| 127 |
code = function() |
| 128 |
Npc:says(_"We produce medical bots there. The factory must be close, so we can provide first-aid rapidly, if required.") |
| 129 |
Npc:says(_"However, it is not closer because, you know, machines can do a lot of noise. We are trying to keep an image here, you see?") |
| 130 |
Npc:says(_"Anyway, we also build security droids there. If something were to happen here, like someone breaking a capsule open, we can fill this area with bots within two minutes.") |
| 131 |
hide("node20") show("node21") |
| 132 |
end, |
| 133 |
}, |
| 134 |
{ |
| 135 |
id = "node21", |
| 136 |
text = _"Break a capsule open?", |
| 137 |
code = function() |
| 138 |
Npc:says(_"You know, some relatives are quite... violent, at times. Keeping a heavy security here could raise suspicion, too.") |
| 139 |
Tux:says(_"Is there any other way to open a capsule without smashing it?") |
| 140 |
Npc:says(_"You could always use the terminal to open them, but it requires a load letter. As a general rule, most terminals won't load without it.") |
| 141 |
Npc:says(_"Most terminals will warn you if you forget to bring it. As a precaution, it misleads people to try climbing down to the last floor from RR Factory Offices.") |
| 142 |
Tux:says(_"Interesting. However, if these load letters aren't on the last floor, were would they be?") |
| 143 |
Npc:says(_"Not so far from there. I believe the [b]signman[/b] had one, and dispatch personal too, but eh. I could be wrong.") |
| 144 |
Npc:says(_"...Also, do not attempt to take or use it without master's permission. Was I clear?") |
| 145 |
Tux:says(_"Clear as snow.", "NO_WAIT") |
| 146 |
Tux:update_quest("Where Am I?", _"The security chief told me the Signman had the PC Load Letter, which can be used to wake up people being confined on Resorts. That should be before the last floor from RR Factory.") |
| 147 |
hide("node21") |
| 148 |
end, |
| 149 |
}, |
| 150 |
{ |
| 151 |
id = "node99", |
| 152 |
text = _"See you later.", |
| 153 |
code = function() |
| 154 |
Npc:says_random(_"All hail copyright software.", |
| 155 |
_"Don't touch anything without my master's authorization.", |
| 156 |
_"I hope you don't do anything weird, Linarian.", |
| 157 |
_"Proprietary as in Proprietary Software.", |
| 158 |
_"Welcome to RRR. You mess up, you end here.") |
| 159 |
end_dialog() |
| 160 |
end, |
| 161 |
} |
| 162 |
} |