Debian Codegraph @

data/storyline/act2/dialogs/Prologue.lua

raw
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 PURPOSE = "$$NAME$$ is the narrator NPC used to explain the crash."
21 WIKI]]--
22
23 local Npc = FDrpg.get_npc()
24 local Tux = FDrpg.get_tux()
25
26 return {
27 FirstTime = function()
28 Tux:says(_"Ouch, my head...")
29 Tux:says(_"Where... am I? My head is dizzy...")
30 Tux:says("...")
31 Tux:says(_"Ah, I remember now. I was on a flight, on my way to fight against MegaSys president.")
32 Tux:says(_"...Have I lost?")
33 cli_says(_"*deep breath*")
34 Tux:says(_"No, I did not even reach the location. The stratopod started acting strangely and crashed.")
35 Tux:says(_"I better get up, and find out where I am.")
36 Tux:assign_quest("Where Am I?", _" The pilot wasn't as experienced as he claimed. He only played FlightGear a couple of times. By the look of things, I must have crashed. I should explore these lands now.")
37 end,
38
39 EveryTime = function()
40 end_dialog()
41 show("node99") -- Double-check
42 end,
43
44 {
45 id = "node99",
46 text = _"...",
47 code = function()
48 end_dialog()
49 end,
50 },
51 }