| 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 = { "Militarist", "Abrasive" }, |
| 21 |
BACKSTORY = "$$NAME$$ is the leader of the defense structure near the Hell Fortress", |
| 22 |
WIKI]]-- |
| 23 |
|
| 24 |
local Npc = FDrpg.get_npc() |
| 25 |
local Tux = FDrpg.get_tux() |
| 26 |
|
| 27 |
return { |
| 28 |
FirstTime = function() |
| 29 |
Npc:says(_"Hey, Linarian! What do you want here?") |
| 30 |
show("node1", "node2", "node3") |
| 31 |
end, |
| 32 |
|
| 33 |
EveryTime = function() |
| 34 |
if (HF_FirmwareUpdateServer_uploaded_faulty_firmware_update) then |
| 35 |
Npc:says_random(_"Congratulations on getting the job done.", |
| 36 |
_"We should rename this place. You did a fine job.", |
| 37 |
_"A bot?! Ah, no, it's just you. I will stay here in case something goes wrong.", |
| 38 |
_"Peace, finally. The perfect time to prepare for the next strike! The world is far from safe!", |
| 39 |
_"I always carry a gun with me. Who knows, bots may come back!") |
| 40 |
end_dialog() |
| 41 |
elseif (Tux:has_met("MO-RGGateGuardLeader")) then |
| 42 |
if (Tux:done_quest("Opening access to MS Office")) then |
| 43 |
if (MO_RGGateGuardLeader_informed) then |
| 44 |
next("node20") |
| 45 |
else |
| 46 |
Npc:says(_"Hey, Linarian! What do you want here?") |
| 47 |
end |
| 48 |
else |
| 49 |
Npc:says(_"GET OUT OF HERE YOU IDIOT!") |
| 50 |
next("node99") |
| 51 |
end |
| 52 |
end |
| 53 |
end, |
| 54 |
|
| 55 |
{ |
| 56 |
id = "node1", |
| 57 |
text = _"Just taking a look around.", |
| 58 |
code = function() |
| 59 |
Npc:says(_"Oh, look. The bird wants to go for a walk.", "NO_WAIT") |
| 60 |
Npc:says(_"We don't call this place 'hell' for nothing.") |
| 61 |
Npc:says(_"Get outta here!") |
| 62 |
hide("node1", "node3") next("node99") |
| 63 |
end, |
| 64 |
}, |
| 65 |
{ |
| 66 |
id = "node2", |
| 67 |
text = _"I'd like to go through that gate.", |
| 68 |
code = function() |
| 69 |
Npc:says(_"Are you totally out of your mind?", "NO_WAIT") |
| 70 |
Npc:says(_"There are trillions of millions of quintillions of bots in there!") |
| 71 |
Npc:says(_"Besides that, on the other side of the door is a disruptor shield, which we can't control.") |
| 72 |
Npc:says(_"* Throws a stone through the door") |
| 73 |
if (Tux:done_quest("Opening access to MS Office")) then |
| 74 |
Npc:says(_"* Stone freely flies through the gate and drops on the ground on the other side") |
| 75 |
Npc:says(_"HOLY MECHANICAL MARVEL! SHIELD DISABLED! PREPARE FOR BOT ATTACK!") |
| 76 |
next("node10") |
| 77 |
else |
| 78 |
Npc:says(_"* Stone disappears leaving a small cloud of dust *") |
| 79 |
Npc:says(_"Find a different gate to go through.") |
| 80 |
next("node99") |
| 81 |
end |
| 82 |
hide("node1", "node3") |
| 83 |
end, |
| 84 |
}, |
| 85 |
{ |
| 86 |
id = "node3", |
| 87 |
text = _"I have some business on the other side!", |
| 88 |
code = function() |
| 89 |
Npc:says(_"Are you in a rush to die?") |
| 90 |
Npc:says(_"Go away!") |
| 91 |
hide("node1", "node3") next("node99") |
| 92 |
end, |
| 93 |
}, |
| 94 |
{ |
| 95 |
id = "node10", |
| 96 |
text = _"Calm down. This is not an attack. I've disabled the shield and I'm going to disable all the bots around! Didn't Spencer inform you?", |
| 97 |
echo_text = false, |
| 98 |
code = function() |
| 99 |
Tux:says(_"Calm down. This is not an attack. I've disabled the shield and I'm going to disable all the bots around! Didn't Spencer inform you?") -- necessary due usage of next() |
| 100 |
Npc:says(_"WHAT?! Not an attack?!") |
| 101 |
Npc:says(_"I hope you are telling the truth. One second...") |
| 102 |
if (Tux:has_quest("Propagating a faulty firmware update")) then |
| 103 |
change_obstacle_state("MSAreaDoor", "opened") |
| 104 |
MO_RGGateGuardLeader_informed = true |
| 105 |
next("node20") |
| 106 |
else |
| 107 |
Npc:says(_"Nothing from Spencer, ya fat duck. Now leave.") |
| 108 |
end_dialog() |
| 109 |
end |
| 110 |
end, |
| 111 |
}, |
| 112 |
{ |
| 113 |
id = "node20", |
| 114 |
code = function() |
| 115 |
Npc:says(_"Right, there is a message from Spencer, you can enter Hell Fortress. And may the source be with you!") |
| 116 |
Tux:says(_"See...") |
| 117 |
Npc:says(_"Yeah, you were right...") |
| 118 |
end_dialog() |
| 119 |
end, |
| 120 |
}, |
| 121 |
{ |
| 122 |
id = "node99", |
| 123 |
text = _"Relax, I'm leaving.", |
| 124 |
echo_text = false, |
| 125 |
code = function() |
| 126 |
Tux:says(_"Relax, I'm leaving.") -- necessary due usage of next() |
| 127 |
Npc:says(_"You better be. AND DON'T COME BACK!") |
| 128 |
end_dialog() |
| 129 |
end, |
| 130 |
}, |
| 131 |
} |