/usr/share/freedroidrpg/dialogs/614_cryo.lua is in freedroidrpg-data 0.16.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | ---------------------------------------------------------------------
-- 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
----------------------------------------------------------------------
--[[WIKI
PERSONALITY = { "Robotic" },
PURPOSE = "$$NAME$$ is the next bot Tux encounters in the game. It provides some background story about bots during The Great Assault.",
BACKSTORY = "$$NAME$$ defends the Cryogenic Laboratory. $$NAME$$ offers and will provide its product history, advertising its manufacturer, on request."
WIKI]]--
local Npc = FDrpg.get_npc()
local Tux = FDrpg.get_tux()
return {
EveryTime = function()
show("node0", "node4", "node5", "node99")
end,
------------------------------
-- 614_sub
--
{
topic = "614_sub",
generator = include("614_sub"),
},
--
------------------------------
{
id = "node0",
text = _"Who are you?",
code = function()
push_topic("614_sub")
-- call 614_sub subdialog
next("614_sub.everytime")
end,
},
{
-- called after the end of 614_sub subdialog
id = "after-614_sub",
code = function()
pop_topic()
Npc:set_name("614 - Cryo Lab Guard Bot")
hide("node0")
end,
},
{
id = "node4",
text = _"Have you detected any hostile bot activity?",
code = function()
Npc:says(_"Order Received. Initiating proximity energy level scan...")
Npc:says(_"***** Proximity Scan Results *****", "NO_WAIT")
if (not HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then
Npc:says(_"Hostile Numeric Presence: [b]HIGH[/b]", "NO_WAIT")
Npc:says(_"Enemy Energy Levels: [b]LOW[/b]", "NO_WAIT")
Npc:says(_"Threat Degree Analysis: [b]MODERATE[/b]", "NO_WAIT")
else
Npc:says(_"Hostile Numeric Presence: [b]NONE[/b]", "NO_WAIT")
Npc:says(_"Threat Degree Analysis: [b]NO THREAT DETECTED[/b]", "NO_WAIT")
end
if (cmp_obstacle_state("CryoOuterGate", "closed")) then
Npc:says(_"Cryo Complex Gates Status: [b]CLOSED[/b]")
else
Npc:says(_"Cryo Complex Gates Status: [b]OPEN[/b]")
end
hide("node4")
end,
},
{
id = "node5",
text = _"What are your orders?",
code = function()
Npc:says(_"Primary objective: Protect the living beings inside this complex from attacks by hostile bots.")
Npc:says(_"Secondary objective: Protect facility by locking outer gates if Threat Degree Analysis: [b]HIGH[/b].")
cryo_614_lock_gate = true
hide("node5")
end,
},
{
id = "node99",
text = _"See you later.",
code = function()
Npc:says(_"Resuming guard program.")
end_dialog()
end,
},
}
|