| 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 |
Cryo_Terminal_prompt = "guest@cryo-solutions: ~ # " |
| 27 |
Npc:says(_"Welcome to [b]Cryonic Solutions[/b]!", "NO_WAIT") |
| 28 |
Npc:says_random(_"We freeze you today, so you can see tomorrow!", |
| 29 |
_"Take the fast trip to the future with Cryonic Solutions!", "NO_WAIT") |
| 30 |
Npc:says(_"Please make your selection to learn more!", "NO_WAIT") |
| 31 |
if (not Cryo_term_unlocked) then |
| 32 |
show("node0", "node1", "node2", "node3") |
| 33 |
if (cryo_outergate_code) then |
| 34 |
show("node50") |
| 35 |
end |
| 36 |
else |
| 37 |
Npc:says(_"Admin mode.", "NO_WAIT") |
| 38 |
Cryo_Terminal_prompt = "admin@cryo-solutions: ~ # " |
| 39 |
show("node51", "node60") |
| 40 |
end |
| 41 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 42 |
show("node99") |
| 43 |
end, |
| 44 |
|
| 45 |
{ |
| 46 |
id = "node0", |
| 47 |
text = _"About", |
| 48 |
code = function() |
| 49 |
Npc:says(_"Cryonic Solutions is a full service cryonic company.", "NO_WAIT") |
| 50 |
Npc:says(_"We provide not only full cryostasis, but post-stasis reintegration into the world of tomorrow!") |
| 51 |
Npc:says(_"Take the fast trip to the future with Cryonic Solutions!") |
| 52 |
--; TRANSLATORS: %d = a year |
| 53 |
Npc:says(_"Cryonic Solutions, since %d, is the name people trust in cryonics!", os.date("%w") + 2011) |
| 54 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 55 |
hide("node0") |
| 56 |
end, |
| 57 |
}, |
| 58 |
{ |
| 59 |
id = "node1", |
| 60 |
text = _"Appointments and visiting hours", |
| 61 |
code = function() |
| 62 |
Npc:says(_"Cryonic Solutions operates 24 hours a day every day of the year.") |
| 63 |
Npc:says(_"However, for the safety of our clients, visiting hours are restricted.", "NO_WAIT") |
| 64 |
Npc:says(_"Visiting hours for family and friends are by appointment only [b]Monday-Thursday 10:00-14:00[/b].") |
| 65 |
Npc:says(_"Prospective clients are welcome to make appointments from [b]15:00-17:00 Fridays[/b].", "NO_WAIT") |
| 66 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 67 |
hide("node1") |
| 68 |
end, |
| 69 |
}, |
| 70 |
{ |
| 71 |
id = "node2", |
| 72 |
text = _"Pricing", |
| 73 |
code = function() |
| 74 |
Npc:says(_"Seeing the distant future is priceless.") |
| 75 |
Npc:says(_"But we here at Cryonic Solutions understand that you and your loved ones have a budget. So we offer a wide range of products to make your trip to the future affordable.") |
| 76 |
Npc:says(_"Make an appointment today!") |
| 77 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 78 |
hide("node2") |
| 79 |
end, |
| 80 |
}, |
| 81 |
{ |
| 82 |
id = "node3", |
| 83 |
text = _"Advantages", |
| 84 |
code = function() |
| 85 |
Npc:says(_"Are you looking to experience a whole new reality?") |
| 86 |
Npc:says(_"Or are you interested in finding out what happens?") |
| 87 |
Npc:says(_"Or maybe you want to see what compound interest can do for you?") |
| 88 |
Npc:says(_"These are just some of the many advantages of taking the fast trip to the future with Cryonic Solutions!") |
| 89 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 90 |
hide("node3") |
| 91 |
end, |
| 92 |
}, |
| 93 |
{ |
| 94 |
id = "node50", |
| 95 |
text = "*#06#", |
| 96 |
code = function() |
| 97 |
Cryo_term_unlocked = true |
| 98 |
Npc:says(_"Enter command code", "NO_WAIT") |
| 99 |
cli_says("> ") |
| 100 |
Tux:says("09F911029D74E35BD84156C5635688C0") |
| 101 |
Npc:says(_"Unlocked. Entering admin mode...") |
| 102 |
Cryo_Terminal_prompt = "admin@cryo-solutions: ~ # " |
| 103 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 104 |
hide("node0", "node1", "node2", "node3", "node50") show("node51", "node60") |
| 105 |
end, |
| 106 |
}, |
| 107 |
{ |
| 108 |
id = "node51", |
| 109 |
text = _"Guest mode", |
| 110 |
code = function() |
| 111 |
Cryo_term_unlocked = false |
| 112 |
Npc:says(_"Entering user mode...") |
| 113 |
Cryo_Terminal_prompt = "guest@cryo-solutions: ~ # " |
| 114 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 115 |
hide("node51", "node60", "node70", "node80") show("node0", "node1", "node2", "node3") |
| 116 |
end, |
| 117 |
}, |
| 118 |
{ |
| 119 |
id = "node60", |
| 120 |
text = _"Gate status", |
| 121 |
code = function() |
| 122 |
if (cmp_obstacle_state("CryoOuterGate", "closed")) then |
| 123 |
Npc:says(_"Cryo Complex Gates status: CLOSED", "NO_WAIT") |
| 124 |
show("node70") |
| 125 |
elseif (cmp_obstacle_state("CryoOuterGate", "opened")) then |
| 126 |
Npc:says(_"Cryo Complex Gates status: OPEN", "NO_WAIT") |
| 127 |
show("node80") |
| 128 |
-- else -- when the door was half-opened or closed and we tried to access it, we hit this code |
| 129 |
-- Npc:says("GAME BUG. PLEASE REPORT, Cryo-Terminal node 60") |
| 130 |
end |
| 131 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 132 |
end, |
| 133 |
}, |
| 134 |
{ |
| 135 |
id = "node70", |
| 136 |
text = _"Open gates", |
| 137 |
code = function() |
| 138 |
Npc:says(_"Access granted. Opening gates ...") |
| 139 |
Npc:says(_"Cryo Complex Gates status: OPEN") |
| 140 |
change_obstacle_state("CryoOuterGate", "opened") |
| 141 |
change_obstacle_state("CryoInnerGate", "opened") |
| 142 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 143 |
hide("node70") show("node80") |
| 144 |
end, |
| 145 |
}, |
| 146 |
{ |
| 147 |
id = "node80", |
| 148 |
text = _"Close gates", |
| 149 |
code = function() |
| 150 |
Npc:says(_"Access granted. Closing gates ...") |
| 151 |
Npc:says(_"Cryo Complex Gates status: CLOSED") |
| 152 |
change_obstacle_state("CryoOuterGate", "closed") |
| 153 |
change_obstacle_state("CryoInnerGate", "closed") |
| 154 |
cli_says(Cryo_Terminal_prompt, "NO_WAIT") |
| 155 |
hide("node80") show("node70") |
| 156 |
end, |
| 157 |
}, |
| 158 |
{ |
| 159 |
id = "node99", |
| 160 |
text = _"Leave", |
| 161 |
code = function() |
| 162 |
Npc:says(_"Exiting Session") |
| 163 |
play_sound("effects/Menu_Item_Selected_Sound_1.ogg") |
| 164 |
end_dialog() |
| 165 |
end, |
| 166 |
}, |
| 167 |
} |