Debian Codegraph @

data/storyline/act2/dialogs/Stone.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 PERSONALITY = { "Friendly", "Happy", "Obsessive" },
21 MARKERS = {
22 PLACEID1 = "Hell Fortress",
23 ITEMID1 = "Two Barrel shotgun",
24 ITEMID2 = "Shotgun shells"
25 },
26 PURPOSE = "$$NAME$$ is the first seller of equipment available in the second act. He is the main supplier for the Second Act.",
27 BACKSTORY = "$$NAME$$ used to live in (FreedroidRPG) town, but he found a small-time corruption at the strange building $$PLACEID1$$,
28 and because that suffered an accident while he was investigating it. The caring MegaSys said they would offer medical care, at
29 a very low cost, on their specialized RR Resorts. He is the grandfather from Ms. Stone, and knows Tux as an ancient hero. They
30 have some backstory together."
31 WIKI]]--
32
33 local Npc = FDrpg.get_npc()
34 local Tux = FDrpg.get_tux()
35
36 return {
37 FirstTime = function()
38 --; TRANSLATORS: %s = Tux:get_player_name()
39 Npc:says(_"%s, long time no see! Haha, I guess I was cryonized too! Is this the future?", Tux:get_player_name(), "NO_WAIT")
40 Npc:says(_"Ah, this place looks horrible! A pity, I still have so many wares to sell!")
41 Tux:says(_"Who... are you?")
42 Npc:says(_"Wait, can't you remember me? I am your old friend, Mr. Stone!")
43 Npc:set_name("Mr. Stone - Shop owner")
44 Tux:says(_"So... you know me? From before being cryonized?")
45 Npc:says(_"Well, I was only a kid then, but you were a hero!", "NO_WAIT")
46 Npc:says(_"You saved my cat when it climbed a tree! I'll be forever grateful!")
47 Tux:says(_"This is... weird. Do you remember why I was cryonized, at least?")
48 Npc:says(_"Well, I guess it was some sort of protest against MegaSys or something?", "NO_WAIT")
49 Npc:says(_"Old people should not stay under cryostasis for long, they say! Haha! I guess they were right!")
50 Npc:says(_"Eh, I do not really like the bots here. Not many clients, either.", "NO_WAIT")
51 Npc:says(_"I think there was a bunker north of here, I'll go there and set up my shop! Come visit me once I'm done!")
52 show("node31") -- We should check if Tux has item "Two Barrel shotgun" but this is TBD.
53 end_dialog()
54 end,
55
56 EveryTime = function()
57 --; TRANSLATORS: %s = Tux:get_player_name()
58 Npc:says(_"So, %s, how may I serve you today?", Tux:get_player_name())
59
60 show("node0", "node1", "node99")
61 end,
62
63 {
64 id = "node0",
65 text = _"So, how is it going?",
66 code = function()
67 Npc:says(_"Pretty bad, no one visits here but you.", "NO_WAIT")
68 Npc:says(_"But as long that my wares are useful for you, I'm happy enough!")
69 hide("node0")
70 end,
71 },
72 {
73 id = "node1",
74 text = _"I would like to trade with you.",
75 code = function()
76 Npc:says_random(_"Sure, please take a look.",
77 _"Maybe you'll like something.",
78 _"In time of apocalypse, only I can supply you.",
79 _"My wares are your only hope of survival out there.",
80 _"Everything you'll ever need, only in Mr. Stone shop.",
81 _"So, are you enjoying those lands so far?",
82 _"Remember to buy the right ammo for your gun!",
83 _"You got the gun, I've got the ammo.",
84 _"Please buy my wares. You won't regret.",
85 _"Nice shopping!",
86 _"Good! Here is the selection of items I have for sale.")
87 trade_with("Stone")
88 end,
89 },
90 {
91 id = "node31",
92 text = _"I met your niece, Ms. Stone...",
93 code = function()
94 Npc:says(_"Haha! I used to tell her stories about you.", "NO_WAIT")
95 Npc:says(_"I hope she is doing fine!")
96 Tux:says(_"I hope you did not tell her anything weird...")
97 Npc:says(_"I would never! Your strange sidekick would have my head, haha!")
98 Tux:says(_"Sidekick?")
99 -- TRANSLATORS: Dorac: Mr. Stone cannot remember how to spell “Dvorak”
100 Npc:says(_"Yes, I think he was called... Dorac or something? Ahh, I can't remember anymore...")
101 Tux:says(_"I guess his name was Dvorak. I think he'll have more useful info than you...")
102 Npc:says(_"More info he may have, but can he supply you in the apocalypse?", "NO_WAIT")
103 Npc:says(_"You'll only find cheap, quality wares here, with Mr. Stone! Buy today!")
104 hide("node31")
105 end,
106 },
107 {
108 id = "node99",
109 text = _"See you later.",
110 code = function()
111 Npc:says_random(_"Have a nice day!",
112 _"Take care that you don't void any warranties.",
113 _"Please come back if you have any questions regarding my goods.",
114 _"I hope to see you again, soon!")
115 end_dialog()
116 end,
117 },
118 }