| 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 = { "Militaristic","Consiliatory" }, |
| 21 |
MARKERS = { NPCID1 = "Town-NorthGateGuard" }, |
| 22 |
PURPOSE = "$$NAME$$ is another guard at the main entrance to town.", |
| 23 |
BACKSTORY = "$$NAME$$ explains to Tux $$NPCID1$$\'s abrasiveness." |
| 24 |
WIKI]]-- |
| 25 |
|
| 26 |
local Npc = FDrpg.get_npc() |
| 27 |
local Tux = FDrpg.get_tux() |
| 28 |
|
| 29 |
return { |
| 30 |
FirstTime = function() |
| 31 |
show("node0") |
| 32 |
end, |
| 33 |
|
| 34 |
EveryTime = function() |
| 35 |
show("node99") |
| 36 |
end, |
| 37 |
|
| 38 |
{ |
| 39 |
id = "node0", |
| 40 |
text = _"Hi! I'm new here.", |
| 41 |
code = function() |
| 42 |
Npc:says(_"Ah, a newcomer. I gather you were treated rather harshly by my friend at the gate? My apologies, he lost his little sister in the Great Assault. He never got over it.") |
| 43 |
Npc:says(_"So, stranger, welcome here. You might want to talk to Chandra or to Spencer, they can tell you a lot about our current situation.") |
| 44 |
Npc:says(_"The town is presently ruled by the Red Guard. We are the police and the soldiers here.") |
| 45 |
Npc:says(_"There is only one law concerning outsiders here: Don't be stupid.") |
| 46 |
Npc:says(_"I think that is enough of an introduction for now.") |
| 47 |
hide("node0") show("node1") |
| 48 |
end, |
| 49 |
}, |
| 50 |
{ |
| 51 |
id = "node1", |
| 52 |
text = _"What are you doing here?", |
| 53 |
code = function() |
| 54 |
Npc:says(_"I'm on guard duty right now.") |
| 55 |
Npc:says(_"There have been no attacks for a while now. It is too quiet, I think something big is about to happen.") |
| 56 |
if (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then |
| 57 |
Tux:says(_"Of course. I killed all bots.") |
| 58 |
Npc:says(_"No, not that. Something tells me it's not over, at least, not yet. Call it instinct, I simply can't rest.") |
| 59 |
Npc:says(_"I'll stay in guard for a while more, even if Spencer told me to rest. Feel free to walk outside, though. It's just a bad omen, nothing more.") |
| 60 |
end |
| 61 |
hide("node1") |
| 62 |
end, |
| 63 |
}, |
| 64 |
{ |
| 65 |
id = "node99", |
| 66 |
text = _"I'll be going, then.", |
| 67 |
code = function() |
| 68 |
Npc:says(_"Goodbye.") |
| 69 |
show("node1") |
| 70 |
end_dialog() |
| 71 |
end, |
| 72 |
}, |
| 73 |
} |