| 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 = { "Militaristic", "Not Very Intelligent" }, |
| 21 |
MARKERS = { |
| 22 |
NPCID1 = "Ewald", |
| 23 |
NPCID2 = "Sorenson", |
| 24 |
ITEMID1="Teleporter homing beacon" |
| 25 |
}, |
| 26 |
PURPOSE = "$$NAME$$ guards the town\'s teleporter and attempts to explain how teleporters work, albeit in a not so |
| 27 |
intelligent fashion. $$NAME$$ also informs Tux of how to use the teleporter and gives a $$ITEMID1$$ to Tux.", |
| 28 |
RELATIONSHIP = { |
| 29 |
{ |
| 30 |
actor = "$$NPCID1$$", |
| 31 |
text = "$$NAME$$ suggests that if Tux wants to \'play dice\' that he visit $$NPCID1$$." |
| 32 |
}, |
| 33 |
{ |
| 34 |
actor = "$$NPCID2$$", |
| 35 |
text = "$$NAME$$ explains how $$NPCID2$$ saved the town by locking down the teleporter." |
| 36 |
} |
| 37 |
} |
| 38 |
WIKI]]-- |
| 39 |
|
| 40 |
local Npc = FDrpg.get_npc() |
| 41 |
local Tux = FDrpg.get_tux() |
| 42 |
|
| 43 |
return { |
| 44 |
FirstTime = function() |
| 45 |
show("node0") |
| 46 |
end, |
| 47 |
|
| 48 |
EveryTime = function() |
| 49 |
show("node99") |
| 50 |
end, |
| 51 |
|
| 52 |
{ |
| 53 |
id = "node0", |
| 54 |
text = _"Hi! I'm new here.", |
| 55 |
code = function() |
| 56 |
Npc:says(_"A newcomer, eh?") |
| 57 |
Npc:says(_"Well, what do you have to say for yourself?") |
| 58 |
hide("node0") show("node1", "node10") |
| 59 |
end, |
| 60 |
}, |
| 61 |
{ |
| 62 |
id = "node1", |
| 63 |
text = _"I'm a Linarian.", |
| 64 |
code = function() |
| 65 |
Npc:says(_"And how is that working out for you?") |
| 66 |
hide("node1") show("node2", "node3") |
| 67 |
end, |
| 68 |
}, |
| 69 |
{ |
| 70 |
id = "node2", |
| 71 |
text = _"Fairly well.", |
| 72 |
code = function() |
| 73 |
Npc:says(_"That's nice.") |
| 74 |
hide("node2", "node3") |
| 75 |
end, |
| 76 |
}, |
| 77 |
{ |
| 78 |
id = "node3", |
| 79 |
text = _"Not well at all.", |
| 80 |
code = function() |
| 81 |
Npc:says(_"I'm sorry.") |
| 82 |
Npc:says(_"Glad that I'm me then.") |
| 83 |
hide("node2", "node3") |
| 84 |
end, |
| 85 |
}, |
| 86 |
{ |
| 87 |
id = "node10", |
| 88 |
text = _"I was actually wondering what you are doing?", |
| 89 |
code = function() |
| 90 |
Npc:says(_"Oh, I'm guarding the teleporter point here.") |
| 91 |
hide("node10") show("node11") |
| 92 |
end, |
| 93 |
}, |
| 94 |
{ |
| 95 |
id = "node11", |
| 96 |
text = _"How does teleportation work?", |
| 97 |
code = function() |
| 98 |
Npc:says(_"Something about knitting or crochet.") |
| 99 |
Tux:says(_"Strings?") |
| 100 |
Npc:says(_"Yeah, something about tying them in knots.") |
| 101 |
Npc:says(_"It is supposed to be a pleasant way to relax.") |
| 102 |
Npc:says(_"Although some things can't be teleported because something about Einstein playing dice with Schrodinger's cat.") |
| 103 |
hide("node11") show("node12", "node13", "node15") |
| 104 |
end, |
| 105 |
}, |
| 106 |
{ |
| 107 |
id = "node12", |
| 108 |
text = _"Einstein playing dice with a cat?", |
| 109 |
code = function() |
| 110 |
Npc:says(_"The cat would eat the dice.") |
| 111 |
Tux:says(_"So, no dice?") |
| 112 |
Npc:says(_"Yeah. If you want to play dice you should talk to the bartender, Ewald.") |
| 113 |
Ewald:set_name("Ewald - Barkeeper") |
| 114 |
hide("node12") |
| 115 |
end, |
| 116 |
}, |
| 117 |
{ |
| 118 |
id = "node13", |
| 119 |
text = _"How can I teleport?", |
| 120 |
code = function() |
| 121 |
Npc:says(_"Well, first the computer needs to scan you.") |
| 122 |
Npc:says(_"But it did that as soon as you entered the town.") |
| 123 |
Npc:says(_"Then all you need is one of these Teleporter homing beacons. I'll give you one.") |
| 124 |
Tux:add_item("Teleporter homing beacon") |
| 125 |
Npc:says(_"They send a coded signal to our computer here, which does all of the quantum doohickeys to move you around.") |
| 126 |
Npc:says(_"Of course, if you had another way to send a coded signal, that would work as well.") |
| 127 |
hide("node13") show("node14") |
| 128 |
end, |
| 129 |
}, |
| 130 |
{ |
| 131 |
id = "node14", |
| 132 |
text = _"So, not everyone can be teleported?", |
| 133 |
code = function() |
| 134 |
Npc:says(_"Yeah. The crazy computer lady locked down our teleporter pretty tight as soon as the Great Assault started to happen.") |
| 135 |
Npc:says(_"Probably saved all our lives.") |
| 136 |
Npc:says(_"Imagine how long we'd last if the bots just teleported right here.") |
| 137 |
Npc:says(_"But all the same, I'm stationed here to make certain everything is working right.") |
| 138 |
Npc:says(_"That lady is crazy after all.") |
| 139 |
hide("node14") |
| 140 |
end, |
| 141 |
}, |
| 142 |
{ |
| 143 |
id = "node15", |
| 144 |
text = _"Not everything can be teleported?", |
| 145 |
code = function() |
| 146 |
Npc:says(_"Yeah, some objects have issues.") |
| 147 |
Npc:says(_"Highly explosive issues.") |
| 148 |
Npc:says(_"So, the teleporter is designed not to teleport you if there is a problematic item in your possession.") |
| 149 |
Npc:says(_"It should tell you why it isn't working though.") |
| 150 |
hide("node15") |
| 151 |
end, |
| 152 |
}, |
| 153 |
{ |
| 154 |
id = "node99", |
| 155 |
text = _"I'll be going, then.", |
| 156 |
code = function() |
| 157 |
Npc:says(_"Goodbye.") |
| 158 |
show("node1") |
| 159 |
end_dialog() |
| 160 |
end, |
| 161 |
}, |
| 162 |
} |