/usr/share/freedroidrpg/dialogs/KevinGuard.lua is in freedroidrpg-data 0.16.1-2.
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | ---------------------------------------------------------------------
-- 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", "Aggressive" },
MARKERS = { NPCID1 = "Kevin" },
PURPOSE = "$$NAME$$ defends the main entrance to $$NPCID1$$\'s compound",
BACKSTORY = "$$NAME$$ was originally station in the mining town until stolen by $$NPCID1$$.",
RELATIONSHIP = {
{ actor = "$$NPCID1$$", text = "$$NAME$$ is now owned and programmed by $$NPCID1$$." },
}
WIKI]]--
local Npc = FDrpg.get_npc()
local Tux = FDrpg.get_tux()
return {
EveryTime = function()
Npc:set_rush_tux(false)
if (Kevin_entering_from_back) then
end_dialog()
elseif (KevinGuard_door_open) then
Tux:says(_"It's me.")
change_obstacle_state("KevinsDoor", "opened")
Npc:says(_"[b]Identity confirmed. You may pass.[/b]")
show("node99")
end_dialog()
else
Npc:says(_"[b]Intruder, lower your weapons and identify yourself or face immediate termination.[/b]")
Npc:says(_"[b]Any attempts to enter without authorization will be punished.[/b]")
Npc:says(_"[b]I will not let you injure my master.[/b]")
hide("node99") show("node2", "node8")
end
end,
{
id = "node1",
text = _"I must talk to your master.",
code = function()
Npc:says(_"[b]State your reason.[/b]")
hide("node1", "node3", "node17") show("node5", "node6", "node7")
end,
},
{
id = "node2",
text = _"Don't shoot! I come in peace.",
code = function()
Npc:says(_"[b]State the purpose of your presence here.[/b]")
hide("node2", "node8") show("node1", "node3", "node17")
end,
},
{
id = "node3",
text = _"I saw this building as I was walking by, and I decided to take a look inside.",
code = function()
Npc:says(_"[b]Your reason is curiosity. Master Kevin likes curious people.[/b]")
Npc:set_name("614 - Kevin's Guard")
Npc:says(_"[b]You may pass.[/b]")
hide("node1", "node3", "node17") show("node4")
end,
},
{
id = "node4",
text = _"Thank you.",
code = function()
KevinGuard_door_open = true
change_obstacle_state("KevinsDoor", "opened")
hide("node4") show("node99")
end,
},
{
id = "node5",
text = _"Umm... His life is in grave danger. ",
code = function()
Npc:says(_"[b]Error: Reason invalid.[/b]")
hide("node5") show("node12")
end,
},
{
id = "node6",
text = _"The people from the uhh... town want me to have a word with him. Yeah, that's it.",
code = function()
Npc:says(_"[b]Error: Reason invalid.[/b]")
hide("node6")
end,
},
{
id = "node7",
text = _"I have some very valuable information. Your master might be interested in it.",
code = function()
Npc:says(_"[b]Master Kevin will be pleased. You may pass.[/b]")
Npc:set_name("614 - Kevin's Guard")
Npc:says(_"[b]Door opening sequence initiated.[/b]")
hide("node5", "node6", "node7", "node12", "node13", "node14", "node18", "node19", "node99") show("node4")
end,
},
{
id = "node8",
text = _"Step aside, you stupid tin can!",
code = function()
Npc:says(_"[b]You shall not pass. Activating disintegrator beam in ten seconds.[/b]")
Npc:says(_"[b]Nine.[/b]")
Npc:says(_"[b]Eight.[/b]")
hide("node2", "node8") show("node9", "node10")
end,
},
{
id = "node9",
text = _"Wait, that's not what I meant!",
code = function()
Npc:says(_"[b]Seven.[/b]")
Npc:says(_"[b]Six.[/b]")
hide("node9", "node10") show("node99")
end,
},
{
id = "node10",
text = _"I am not afraid of you.",
code = function()
Npc:says(_"[b]Seven.[/b]")
Npc:says(_"[b]Six.[/b]")
hide("node9", "node10") show("node11")
end,
},
{
id = "node11",
text = _"Wait, that's not what I meant!",
code = function()
Npc:says(_"[b]Five.[/b]")
Npc:says(_"[b]Four.[/b]")
hide("node11") show("node99")
end,
},
{
id = "node12",
text = _"Enemies are approaching from every side!",
code = function()
Npc:says(_"[b]Error: Reason invalid.[/b]")
hide("node12") show("node13")
end,
},
{
id = "node13",
text = _"We are surrounded! They will attack any second now!",
code = function()
Npc:says(_"[b]Error: Reason invalid.[/b]")
hide("node13") show("node14")
end,
},
{
id = "node14",
text = _"Are you listening to me?",
code = function()
Npc:says(_"[b]Error: Reason invalid.[/b]")
hide("node14") show("node18")
end,
},
{
id = "node17",
text = _"I do not have to tell you anything, bot.",
code = function()
Npc:says(_"[b]Engaging aggression circuits. You shall be disintegrated in ten seconds.[/b]")
Npc:says(_"[b]Nine.[/b]")
Npc:says(_"[b]Eight.[/b]")
hide("node1", "node3", "node17") show("node9", "node10")
end,
},
{
id = "node18",
text = _"I think I just found an error in your programming.",
code = function()
Npc:says(_"[b]Error: Reason invalid.[/b]")
hide("node18") show("node19")
end,
},
{
id = "node19",
text = _"Thought so.",
code = function()
Npc:says(_"[b]Error: Reason invalid.[/b]")
hide("node19")
end,
},
{
id = "node99",
text = _"See you later, tin can.",
echo_text = false,
code = function()
Npc:says(_"[b]EOT acknowledged. Connection closed.[/b]")
Npc:says(_"[b]Goodbye.[/b]")
end_dialog()
end,
},
}
|