| 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 = { "Trapped", "Technical" }, |
| 21 |
BACKSTORY = "$$NAME$$ is a machinist working for the bots in the Mega Systems Factory. It's subtly induced that $$NAME$$ is also a bot with experimental AI and interface. This will become more clear later, when player learns about MegaSys failed plan to infiltrate human society with bots behaving like perfect common citzens." |
| 22 |
WIKI]]-- |
| 23 |
|
| 24 |
local Npc = FDrpg.get_npc() |
| 25 |
local Tux = FDrpg.get_tux() |
| 26 |
|
| 27 |
return { |
| 28 |
FirstTime = function() |
| 29 |
show("node1") |
| 30 |
end, |
| 31 |
|
| 32 |
EveryTime = function() |
| 33 |
if (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then |
| 34 |
Npc:says(_"Hey, what are you doing?! Go back to work! All bots died and I can't make them work again. We'll be all in trouble if boss decides to pay us visit!") |
| 35 |
end_dialog() |
| 36 |
end |
| 37 |
|
| 38 |
if (Tux:has_met("Jennifer")) then |
| 39 |
Tux:says(_"Hello") |
| 40 |
Npc:says(_"Welcome back.") |
| 41 |
end |
| 42 |
|
| 43 |
if (Tux:has_item("Toolbox") and Tux:has_quest("Jennifer's Toolbox")) then |
| 44 |
show("node10") |
| 45 |
end |
| 46 |
show("node99") |
| 47 |
end, |
| 48 |
|
| 49 |
{ |
| 50 |
id = "node1", |
| 51 |
text = _"Hello!", |
| 52 |
code = function() |
| 53 |
Npc:says(_"Hello. I'm Jennifer.") |
| 54 |
--; TRANSLATORS: %s=Tux:get_player_name() |
| 55 |
Tux:says(_"I'm %s.", Tux:get_player_name()) |
| 56 |
Tux:says(_"What are you doing here?") |
| 57 |
Npc:says(_"I'm a machinist, working here, repairing bots and stuff like this.") |
| 58 |
hide("node1") show("node2", "node3") |
| 59 |
end, |
| 60 |
}, |
| 61 |
{ |
| 62 |
id = "node2", |
| 63 |
text = _"You don't look very busy.", |
| 64 |
code = function() |
| 65 |
Npc:says(_"Well, yes.") |
| 66 |
Npc:says(_"Someone thought he had to tidy up the space...", "NO_WAIT") |
| 67 |
Npc:says(_"...and now I cannot find my equipment anymore, what an idiot!") |
| 68 |
Npc:says(_"I'm especially searching for my toolbox.") |
| 69 |
Tux:says(_"Okay, I will keep my eyes open if I see some toolbox.") |
| 70 |
Npc:says(_"Thank you.") |
| 71 |
Tux:add_quest("Jennifer's Toolbox", "Someone rearranged equipment at Jennifer's workshop, she cannot find her Toolbox anymore. I promised to keep my eyes open for it.") |
| 72 |
hide("node2") |
| 73 |
end, |
| 74 |
}, |
| 75 |
{ |
| 76 |
id = "node3", |
| 77 |
text = _"You are repairing these bots?!", |
| 78 |
code = function() |
| 79 |
Npc:says(_"Uhm yes, that's my job here.") |
| 80 |
Npc:says(_"...") |
| 81 |
hide("node3") show("node4") |
| 82 |
end, |
| 83 |
}, |
| 84 |
{ |
| 85 |
id = "node4", |
| 86 |
text = _"Why are you still alive anyway?", |
| 87 |
code = function() |
| 88 |
Tux:says(_"The bots should have killed you immediately.") |
| 89 |
Tux:says(_"It's hell in here for me and you don't seem to be even armed.") |
| 90 |
Npc:says(_"Well...") |
| 91 |
Npc:says(_"The workers here get special chips implanted.", "NO_WAIT") |
| 92 |
Tux:says(_"Ew.", "NO_WAIT") |
| 93 |
Npc:says(_"So we can identify each other as 'friendly' and don't rip ourselves apart.") |
| 94 |
Tux:says(_"Uh.") |
| 95 |
Tux:says(_"Is there any way for me to get such a chip?") |
| 96 |
Npc:says(_"I don't think you will be able to get one. They're custom and the chip-makers aren't around anymore.") |
| 97 |
Npc:says(_"How did you get in here anyway?") |
| 98 |
hide("node4") show("node5", "node6", "node7") |
| 99 |
end, |
| 100 |
}, |
| 101 |
{ |
| 102 |
id = "node5", |
| 103 |
text = _"That's a long story...", |
| 104 |
code = function() |
| 105 |
Npc:says(_"Mh well ok.") |
| 106 |
hide("node5", "node6", "node7") |
| 107 |
end, |
| 108 |
}, |
| 109 |
{ |
| 110 |
id = "node6", |
| 111 |
text = _"I walked in through the front door.", |
| 112 |
code = function() |
| 113 |
Npc:says(_"Heh. I see.") |
| 114 |
hide("node5", "node6", "node7") |
| 115 |
end, |
| 116 |
}, |
| 117 |
{ |
| 118 |
id = "node7", |
| 119 |
text = _"This is none of your business.", |
| 120 |
code = function() |
| 121 |
Npc:says(_"If you say so...") |
| 122 |
hide("node5", "node6", "node7") |
| 123 |
end, |
| 124 |
}, |
| 125 |
{ |
| 126 |
id = "node10", |
| 127 |
text = _"I think this is your toolbox?", |
| 128 |
code = function() |
| 129 |
Npc:says(_"Oh yes, it is!", "NO_WAIT") |
| 130 |
Npc:says(_"Thank you very much!") |
| 131 |
Tux:end_quest("Jennifer's Toolbox", _"I found the Toolbox and returned it to her") -- we may want to have her repair all of tux' items at some point, but that is nyi, so... |
| 132 |
Npc:says(_"Please accept this spare part as a token of my appreciation.") |
| 133 |
Tux:add_item("Anti-grav Pod for Droids") -- this shall do, for now. |
| 134 |
Tux:del_item("Toolbox", 1) |
| 135 |
hide("node10") |
| 136 |
end, |
| 137 |
}, |
| 138 |
{ |
| 139 |
id = "node99", |
| 140 |
text = _"See you later.", |
| 141 |
code = function() |
| 142 |
Npc:says_random(_"See you later.", |
| 143 |
_"Bye.") |
| 144 |
end_dialog() |
| 145 |
end, |
| 146 |
}, |
| 147 |
} |