| 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 |
|
| 20 |
local Npc = FDrpg.get_npc() |
| 21 |
local Tux = FDrpg.get_tux() |
| 22 |
|
| 23 |
return { |
| 24 |
EveryTime = function() |
| 25 |
play_sound("effects/Menu_Item_Deselected_Sound_0.ogg") |
| 26 |
Npc:says(_"[b]Loading terminal...[/b]") |
| 27 |
if (Tux:has_item("PC LOAD LETTER")) then |
| 28 |
if ((not bot_exists("Stone")) and (Act2_ColemakAwake)) then |
| 29 |
show("node0") |
| 30 |
else |
| 31 |
Npc:says_random(_"[b]Access Denied.[/b]", |
| 32 |
_"[b]Connection Refused.[/b]", |
| 33 |
_"[b]Forbidden.[/b]", |
| 34 |
_"[b]Terminal Corrupted.[/b]", |
| 35 |
_"[b]ERROR: Declined.[/b]") |
| 36 |
end_dialog() |
| 37 |
end |
| 38 |
else |
| 39 |
Npc:says(_"[b]No instructions to load this terminal.[/b]") |
| 40 |
Tux:says(_"help", "NO_WAIT") |
| 41 |
Npc:says(_"This terminal needs instructions to be loaded. Instructions could be requested at last floor of factory north from town.") |
| 42 |
Npc:says(_"[b]WARNING:[/b] People capable of issuing authorization are all dead, killed by at weakest Battle droids.") |
| 43 |
-- Not everyone survives: Look for dead bodies. Battle necessary: Battle Droids. Auth -- You won't find it at last floor. |
| 44 |
end_dialog() |
| 45 |
end |
| 46 |
show("node99") -- Better safe than sorry. |
| 47 |
end, |
| 48 |
|
| 49 |
{ |
| 50 |
id = "node0", |
| 51 |
--; TRANSLATORS: command, user lowercase here |
| 52 |
text = _"help", |
| 53 |
code = function() |
| 54 |
Npc:says(_"[b]Available commands: help, freeze, unfreeze, logout[/b]") |
| 55 |
show("node1", "node2") |
| 56 |
end, |
| 57 |
}, |
| 58 |
{ |
| 59 |
id = "node1", |
| 60 |
--; TRANSLATORS: command, user lowercase here |
| 61 |
text = _"freeze", |
| 62 |
code = function() |
| 63 |
Npc:says(_"[b]Failure: Either the capsule is in use or too damaged to follow proper freezing protocols.[/b]") |
| 64 |
end, |
| 65 |
}, |
| 66 |
{ |
| 67 |
id = "node2", |
| 68 |
--; TRANSLATORS: command, user lowercase here |
| 69 |
text = _"unfreeze", |
| 70 |
code = function() |
| 71 |
Npc:says(_"[b]WARNING: Decryonization in progress![/b]") |
| 72 |
Npc:says(_"[b]...[/b]") |
| 73 |
Npc:says(_"[b]...[/b]") |
| 74 |
--; TRANSLATORS: Keep First Letter (Of Word) Case Please. |
| 75 |
Npc:says(_"[b]...Initiating Final Unfreezing Sequences...[/b]") |
| 76 |
Npc:says(_"[b]Removing remaining fluids...[/b]", "NO_WAIT") |
| 77 |
Npc:says(_"[b]Heating chamber to 300 K...[/b]", "NO_WAIT") |
| 78 |
Npc:says(_"[b]WARNING: PATIENT ID #851 'Stone' HAS BEEN UNCRYONIZED![/b]") |
| 79 |
hide("node0", "node1", "node2") |
| 80 |
create_droid("StoneStartGameSquare", "PRO", "civilian", "Stone") |
| 81 |
set_bot_destination("StoneStartGameSquare", "Stone") |
| 82 |
start_chat("Stone") |
| 83 |
end_dialog() |
| 84 |
end, |
| 85 |
}, |
| 86 |
{ |
| 87 |
id = "node99", |
| 88 |
--; TRANSLATORS: command, use lowercase here |
| 89 |
text = _"logout", |
| 90 |
code = function() |
| 91 |
cli_says(_"Goodbye") |
| 92 |
play_sound("effects/Menu_Item_Selected_Sound_1.ogg") |
| 93 |
hide("node0", "node1", "node2") |
| 94 |
end_dialog() |
| 95 |
end, |
| 96 |
}, |
| 97 |
} |