rpg-prompt 1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/rpg-prompt +45 -0
- data/data/rpg-prompt/example.txt +190 -0
- data/data/rpg-prompt/help.txt +108 -0
- data/data/rpg-prompt/rules_default.rb +314 -0
- data/data/rpg-prompt/rules_default_hashes.rb +91 -0
- data/data/rpg-prompt/texts_default.rb +313 -0
- data/lib/rpg-prompt/commands.rb +76 -0
- data/lib/rpg-prompt/keypress.rb +66 -0
- data/lib/rpg-prompt/manage_command.rb +594 -0
- data/lib/rpg-prompt/message.rb +294 -0
- data/lib/rpg-prompt/parse_line.rb +123 -0
- data/lib/rpg-prompt/rules_default.rb +226 -0
- data/lib/rpg-prompt/rules_default_hashes.rb +68 -0
- data/lib/rpg-prompt/rules_sheet.rb +326 -0
- data/lib/rpg-prompt/save.rb +141 -0
- data/lib/rpg-prompt/texts_default.rb +346 -0
- data/lib/rpg-prompt/texts_prompt.rb +259 -0
- data/tests/test_rpg-prompt.rb +10 -0
- metadata +67 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
module Message
|
|
2
|
+
# ***************** message_dict ***************** #
|
|
3
|
+
valid_languages = [:english, :spanish]
|
|
4
|
+
|
|
5
|
+
Message::Dictionary.language = :english
|
|
6
|
+
@@message_dict.add_word(:greeting,
|
|
7
|
+
"Welcome to the RPG Combat Assistant, by Guillermo Regodon")
|
|
8
|
+
@@message_dict.add_word(:goodbye,
|
|
9
|
+
"Leaving the RPG Combat Assistant")
|
|
10
|
+
@@message_dict.add_word(:ask_for_d6,
|
|
11
|
+
"Enter the roll (between 1 and 6)")
|
|
12
|
+
@@message_dict.add_word(:ask_for_d10,
|
|
13
|
+
"Enter the roll (between 1 and 10)")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Message::Dictionary.language = :spanish
|
|
17
|
+
@@message_dict.add_word(:greeting,
|
|
18
|
+
"Bienvenido al asistente de combate para juegos de rol, por Guillermo Regodón.")
|
|
19
|
+
@@message_dict.add_word(:goodbye,
|
|
20
|
+
"Abandonando el asistente de combate para juegos de rol.")
|
|
21
|
+
@@message_dict.add_word(:ask_for_d6,
|
|
22
|
+
"Introduce la tirada (entre 1 y 6)")
|
|
23
|
+
@@message_dict.add_word(:ask_for_d10,
|
|
24
|
+
"Introduce la tirada (entre 1 y 10)")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# ***************** help_dict ***************** #
|
|
30
|
+
valid_languages = [:english, :spanish]
|
|
31
|
+
|
|
32
|
+
Message::Dictionary.language = :english
|
|
33
|
+
@@help_dict.add_word(:rolling, "Dice rolling... ¡%{roll}!")
|
|
34
|
+
@@help_dict.add_word(:hits_lose_hp, "¡%{full_name} loses %{damage} hp!")
|
|
35
|
+
@@help_dict.add_word(:dead_in, "¡dies in %{el} t!")
|
|
36
|
+
@@help_dict.add_word(:attack_roll,
|
|
37
|
+
" Mod Roll = %{r} = Roll(%{roll}) + Mod(%{modifier})")
|
|
38
|
+
@@help_dict.add_word(:skill_roll,
|
|
39
|
+
" Mod Roll = %{r} = Roll(%{roll}) + Mod(%{modifier})")
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
Message::Dictionary.language = :spanish
|
|
45
|
+
@@help_dict.add_word(:rolling, "Se lanzan los dados... ¡%{roll}!")
|
|
46
|
+
@@help_dict.add_word(:hits_lose_hp, "¡%{full_name} pierde %{damage} hp!")
|
|
47
|
+
@@help_dict.add_word(:dead_in, "¡muere en %{el} t!")
|
|
48
|
+
@@help_dict.add_word(:attack_roll,
|
|
49
|
+
" Mod Roll = %{r} = Roll(%{roll}) + Mod(%{modifier})")
|
|
50
|
+
@@help_dict.add_word(:skill_roll,
|
|
51
|
+
" Mod Roll = %{r} = Roll(%{roll}) + Mod(%{modifier})")
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# ***************** weapon_dict ***************** #
|
|
57
|
+
valid_languages = [:english, :spanish]
|
|
58
|
+
|
|
59
|
+
Message::Dictionary.language = :english
|
|
60
|
+
@@weapon_dict.add_word(:broad_sword, "broad sword")
|
|
61
|
+
@@weapon_dict.add_word(:dagger, "dagger")
|
|
62
|
+
@@weapon_dict.add_word(:scimitar, "scimitar")
|
|
63
|
+
@@weapon_dict.add_word(:hand_axe, "hand axe")
|
|
64
|
+
@@weapon_dict.add_word(:composite_bow, "composite bow")
|
|
65
|
+
@@weapon_dict.add_word(:mace, "mace")
|
|
66
|
+
@@weapon_dict.add_word(:warhammer, "warhammer")
|
|
67
|
+
@@weapon_dict.add_word(:battle_axe, "battle axe")
|
|
68
|
+
@@weapon_dict.add_word(:claw_and_bite, "claws and teeth")
|
|
69
|
+
|
|
70
|
+
Message::Dictionary.language = :spanish
|
|
71
|
+
@@weapon_dict.add_word(:broad_sword, "espada ancha")
|
|
72
|
+
@@weapon_dict.add_word(:dagger, "daga")
|
|
73
|
+
@@weapon_dict.add_word(:scimitar, "cimitarra")
|
|
74
|
+
@@weapon_dict.add_word(:hand_axe, "hacha de mano")
|
|
75
|
+
@@weapon_dict.add_word(:composite_bow, "arco compuesto")
|
|
76
|
+
@@weapon_dict.add_word(:mace, "maza")
|
|
77
|
+
@@weapon_dict.add_word(:warhammer, "martillo de guerra")
|
|
78
|
+
@@weapon_dict.add_word(:battle_axe, "hacha de batalla")
|
|
79
|
+
@@weapon_dict.add_word(:claw_and_bite, "garras y mordiscos")
|
|
80
|
+
|
|
81
|
+
# ***************** armor_dict ***************** #
|
|
82
|
+
valid_languages = [:english, :spanish]
|
|
83
|
+
|
|
84
|
+
Message::Dictionary.language = :english
|
|
85
|
+
@@armor_dict.add_word(:no_armor, "no armor")
|
|
86
|
+
@@armor_dict.add_word(:hardened_leather, "hardened leather")
|
|
87
|
+
@@armor_dict.add_word(:chainmail, "chainmail")
|
|
88
|
+
@@armor_dict.add_word(:plate, "plate")
|
|
89
|
+
|
|
90
|
+
Message::Dictionary.language = :spanish
|
|
91
|
+
@@armor_dict.add_word(:no_armor, "sin armadura")
|
|
92
|
+
@@armor_dict.add_word(:hardened_leather, "cuero endurecido")
|
|
93
|
+
@@armor_dict.add_word(:chainmail, "cota de malla")
|
|
94
|
+
@@armor_dict.add_word(:plate, "placas")
|
|
95
|
+
|
|
96
|
+
# ***************** skill_dict ***************** #
|
|
97
|
+
valid_languages = [:english, :spanish]
|
|
98
|
+
|
|
99
|
+
Message::Dictionary.language = :english
|
|
100
|
+
@@skill_dict.add_word(:failure, "Failure, try again another day")
|
|
101
|
+
@@skill_dict.add_word(:success, "Success, 100%")
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Message::Dictionary.language = :spanish
|
|
105
|
+
@@skill_dict.add_word(:failure, "Fallo, intentalo otra vez otro día")
|
|
106
|
+
@@skill_dict.add_word(:success, "Éxito, 100%")
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
Message::Dictionary.language = :english
|
|
110
|
+
@@skill_dict.add_word(:sing, "sings")
|
|
111
|
+
@@skill_dict.add_word(:stalk, "stalks")
|
|
112
|
+
@@skill_dict.add_word(:pick_locks, "pick_locks")
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
Message::Dictionary.language = :spanish
|
|
116
|
+
@@skill_dict.add_word(:sing, "canta")
|
|
117
|
+
@@skill_dict.add_word(:stalk, "acecha")
|
|
118
|
+
@@skill_dict.add_word(:pick_locks, "fuerza_cerradura")
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# ***************** skill_dict ***************** #
|
|
122
|
+
valid_languages = [:english, :spanish]
|
|
123
|
+
|
|
124
|
+
Message::Dictionary.language = :english
|
|
125
|
+
@@skill_help_hash.add_word(:sing,
|
|
126
|
+
"-10: if the language of the song is unknown (competence 4 or less)")
|
|
127
|
+
@@skill_help_hash.add_word(:stalk,
|
|
128
|
+
"""Crawl (i.e., 0.25 x Base) +10
|
|
129
|
+
Creep (i.e., 0.5 x Base) +0
|
|
130
|
+
Walk -10
|
|
131
|
+
Jog -25
|
|
132
|
+
Run -50
|
|
133
|
+
Sprint -75""")
|
|
134
|
+
@@skill_help_hash.add_word(:pick_locks,
|
|
135
|
+
"""Successful Lock Lore maneuver prior to attempt +40
|
|
136
|
+
Each time picking lock has been unsuccessfully attempted -30
|
|
137
|
+
Have picked this specific lock before +50
|
|
138
|
+
Have picked this type of lock before +25
|
|
139
|
+
Have description of mechanism +10""")
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
Message::Dictionary.language = :spanish
|
|
143
|
+
@@skill_help_hash.add_word(:sing,
|
|
144
|
+
"-10: si no se conoce el idioma (competencia 4 o menos)")
|
|
145
|
+
@@skill_help_hash.add_word(:stalk,
|
|
146
|
+
"""Arrastrarse (i.e., 0.25 x Base) +10
|
|
147
|
+
Agacharse (i.e., 0.5 x Base) +0
|
|
148
|
+
Caminar -10
|
|
149
|
+
Trotar -25
|
|
150
|
+
Correr -50
|
|
151
|
+
Esprintar -75""")
|
|
152
|
+
@@skill_help_hash.add_word(:pick_locks,
|
|
153
|
+
"""Éxito en una tirada de Conocimientode cerraduras +40
|
|
154
|
+
Por cada intento posterior -30
|
|
155
|
+
Haber forzado la misma cerradura +50
|
|
156
|
+
Haber forzado el mismo tipo de cerradura +25
|
|
157
|
+
Disponer de una descripción +10""")
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
# ***************** questionnaire_dict ***************** #
|
|
161
|
+
valid_languages = [:english, :spanish]
|
|
162
|
+
valid_types = [:character, :foe, :spawn]
|
|
163
|
+
|
|
164
|
+
Message::Questionnaire.set_option(:english, :character)
|
|
165
|
+
@@questionnaire_dict.add_word(:question_full_name, "Full name of Character?")
|
|
166
|
+
@@questionnaire_dict.add_word(:question_nickname,
|
|
167
|
+
"Enter the character's nickname")
|
|
168
|
+
@@questionnaire_dict.add_word(:question_race,
|
|
169
|
+
"Enter the character's race")
|
|
170
|
+
@@questionnaire_dict.add_word(:question_hp,
|
|
171
|
+
"Enter the character's health points")
|
|
172
|
+
@@questionnaire_dict.add_word(:question_weapon,
|
|
173
|
+
"What weapon does the character use?")
|
|
174
|
+
@@questionnaire_dict.add_word(:question_ws,
|
|
175
|
+
"Enter the weapon skill")
|
|
176
|
+
@@questionnaire_dict.add_word(:question_armor,
|
|
177
|
+
"What armor does the character use?")
|
|
178
|
+
@@questionnaire_dict.add_word(:question_greaves,
|
|
179
|
+
"Are greaves being used?")
|
|
180
|
+
@@questionnaire_dict.add_word(:question_bracelet,
|
|
181
|
+
"Are bracelets being used?")
|
|
182
|
+
@@questionnaire_dict.add_word(:question_helmet,
|
|
183
|
+
"Is a helmet being used?")
|
|
184
|
+
@@questionnaire_dict.add_word(:question_shield,
|
|
185
|
+
"Is a shield being used?")
|
|
186
|
+
@@questionnaire_dict.add_word(:question_db,
|
|
187
|
+
"What the defensive bonus (including the shield)?")
|
|
188
|
+
@@questionnaire_dict.add_word(:question_move_capacity,
|
|
189
|
+
"What is the movement capacity?")
|
|
190
|
+
@@questionnaire_dict.add_word(:question_constitution,
|
|
191
|
+
"What is the constitution?")
|
|
192
|
+
|
|
193
|
+
Message::Questionnaire.set_option(:english, :foe)
|
|
194
|
+
@@questionnaire_dict.add_word(:question_full_name, "Full name of Foe?")
|
|
195
|
+
@@questionnaire_dict.add_word(:question_nickname,
|
|
196
|
+
"Enter the foe's nickname")
|
|
197
|
+
@@questionnaire_dict.add_word(:question_race,
|
|
198
|
+
"Enter the foe's race")
|
|
199
|
+
@@questionnaire_dict.add_word(:question_hp,
|
|
200
|
+
"Enter the foe's health points")
|
|
201
|
+
@@questionnaire_dict.add_word(:question_weapon,
|
|
202
|
+
"What weapon does the foe use?")
|
|
203
|
+
@@questionnaire_dict.add_word(:question_ws,
|
|
204
|
+
"Enter the weapon skill")
|
|
205
|
+
@@questionnaire_dict.add_word(:question_armor,
|
|
206
|
+
"What armor does the foe use?")
|
|
207
|
+
@@questionnaire_dict.add_word(:question_greaves,
|
|
208
|
+
"Are greaves being used?")
|
|
209
|
+
@@questionnaire_dict.add_word(:question_bracelet,
|
|
210
|
+
"Are bracelets being used?")
|
|
211
|
+
@@questionnaire_dict.add_word(:question_helmet,
|
|
212
|
+
"Is a helmet being used?")
|
|
213
|
+
@@questionnaire_dict.add_word(:question_shield,
|
|
214
|
+
"Is a shield being used?")
|
|
215
|
+
@@questionnaire_dict.add_word(:question_db,
|
|
216
|
+
"What the defensive bonus (including the shield)?")
|
|
217
|
+
@@questionnaire_dict.add_word(:question_move_capacity,
|
|
218
|
+
"What is the movement capacity?")
|
|
219
|
+
@@questionnaire_dict.add_word(:question_constitution,
|
|
220
|
+
"What is the constitution?")
|
|
221
|
+
|
|
222
|
+
Message::Questionnaire.set_option(:english, :spawn)
|
|
223
|
+
@@questionnaire_dict.add_word(:question_full_name,
|
|
224
|
+
"""Enter names for this kind of enemy, recomended 10 or more,
|
|
225
|
+
\"q\" to finish. Enter only the race if it is an enemy without name.""")
|
|
226
|
+
@@questionnaire_dict.add_word(:question_nickname,
|
|
227
|
+
"""Enter nicknames for this kind of enemy, recomended 10 or more,
|
|
228
|
+
\"q\" to finish.""")
|
|
229
|
+
@@questionnaire_dict.add_word(:question_race,
|
|
230
|
+
"Enter this kind of enemy's race")
|
|
231
|
+
@@questionnaire_dict.add_word(:question_hp,
|
|
232
|
+
"Enter this kind of enemy's health points")
|
|
233
|
+
@@questionnaire_dict.add_word(:question_weapon,
|
|
234
|
+
"What weapon does this kind of enemy use?")
|
|
235
|
+
@@questionnaire_dict.add_word(:question_ws,
|
|
236
|
+
"Enter the weapon skill")
|
|
237
|
+
@@questionnaire_dict.add_word(:question_armor,
|
|
238
|
+
"What armor does this kind of enemy use?")
|
|
239
|
+
@@questionnaire_dict.add_word(:question_greaves,
|
|
240
|
+
"Are greaves being used?")
|
|
241
|
+
@@questionnaire_dict.add_word(:question_bracelet,
|
|
242
|
+
"Are bracelets being used?")
|
|
243
|
+
@@questionnaire_dict.add_word(:question_helmet,
|
|
244
|
+
"Is a helmet being used?")
|
|
245
|
+
@@questionnaire_dict.add_word(:question_shield,
|
|
246
|
+
"Is a shield being used?")
|
|
247
|
+
@@questionnaire_dict.add_word(:question_db,
|
|
248
|
+
"What the defensive bonus (including the shield)?")
|
|
249
|
+
@@questionnaire_dict.add_word(:question_move_capacity,
|
|
250
|
+
"What is the movement capacity?")
|
|
251
|
+
@@questionnaire_dict.add_word(:question_constitution,
|
|
252
|
+
"What is the constitution?")
|
|
253
|
+
|
|
254
|
+
Message::Questionnaire.set_option(:spanish, :character)
|
|
255
|
+
@@questionnaire_dict.add_word(:question_full_name,
|
|
256
|
+
"Introduce el nombre completo del personaje")
|
|
257
|
+
@@questionnaire_dict.add_word(:question_nickname,
|
|
258
|
+
"Introduce el apodo del personaje")
|
|
259
|
+
@@questionnaire_dict.add_word(:question_race,
|
|
260
|
+
"Introduce la raza del personaje")
|
|
261
|
+
@@questionnaire_dict.add_word(:question_hp,
|
|
262
|
+
"Introduce los puntos de vida del personaje")
|
|
263
|
+
@@questionnaire_dict.add_word(:question_weapon,
|
|
264
|
+
"¿Qué arma utiliza?")
|
|
265
|
+
@@questionnaire_dict.add_word(:question_ws,
|
|
266
|
+
"Introduce su bonificación ofensiva")
|
|
267
|
+
@@questionnaire_dict.add_word(:question_armor,
|
|
268
|
+
"¿Qué tipo de armadura utiliza?")
|
|
269
|
+
@@questionnaire_dict.add_word(:question_greaves,
|
|
270
|
+
"¿Lleva pernales?")
|
|
271
|
+
@@questionnaire_dict.add_word(:question_bracelet,
|
|
272
|
+
"¿Lleva brazales?")
|
|
273
|
+
@@questionnaire_dict.add_word(:question_helmet,
|
|
274
|
+
"¿Lleva casco?")
|
|
275
|
+
@@questionnaire_dict.add_word(:question_shield,
|
|
276
|
+
"¿Usa escudo?")
|
|
277
|
+
@@questionnaire_dict.add_word(:question_db,
|
|
278
|
+
"¿Cuál es su bonificación defensiva, (incluyendo el escudo)?")
|
|
279
|
+
@@questionnaire_dict.add_word(:question_move_capacity,
|
|
280
|
+
"¿Cuál es su capacidad de movimiento?")
|
|
281
|
+
@@questionnaire_dict.add_word(:question_constitution,
|
|
282
|
+
"¿Cuál es su constitución?")
|
|
283
|
+
|
|
284
|
+
Message::Questionnaire.set_option(:spanish, :foe)
|
|
285
|
+
@@questionnaire_dict.add_word(:question_full_name,
|
|
286
|
+
"Introduce el nombre completo del enemigo")
|
|
287
|
+
@@questionnaire_dict.add_word(:question_nickname,
|
|
288
|
+
"Introduce el apodo del enemigo")
|
|
289
|
+
@@questionnaire_dict.add_word(:question_race,
|
|
290
|
+
"Introduce la raza del enemigo")
|
|
291
|
+
@@questionnaire_dict.add_word(:question_hp,
|
|
292
|
+
"Introduce los puntos de vida del enemigo")
|
|
293
|
+
@@questionnaire_dict.add_word(:question_weapon,
|
|
294
|
+
"¿Qué arma utiliza?")
|
|
295
|
+
@@questionnaire_dict.add_word(:question_ws,
|
|
296
|
+
"Introduce su bonificación ofensiva")
|
|
297
|
+
@@questionnaire_dict.add_word(:question_armor,
|
|
298
|
+
"¿Qué tipo de armadura utiliza?")
|
|
299
|
+
@@questionnaire_dict.add_word(:question_greaves,
|
|
300
|
+
"¿Lleva pernales?")
|
|
301
|
+
@@questionnaire_dict.add_word(:question_bracelet,
|
|
302
|
+
"¿Lleva brazales?")
|
|
303
|
+
@@questionnaire_dict.add_word(:question_helmet,
|
|
304
|
+
"¿Lleva casco?")
|
|
305
|
+
@@questionnaire_dict.add_word(:question_shield,
|
|
306
|
+
"¿Usa escudo?")
|
|
307
|
+
@@questionnaire_dict.add_word(:question_db,
|
|
308
|
+
"¿Cuál es su bonificación defensiva, (incluyendo el escudo)?")
|
|
309
|
+
@@questionnaire_dict.add_word(:question_move_capacity,
|
|
310
|
+
"¿Cuál es su capacidad de movimiento?")
|
|
311
|
+
@@questionnaire_dict.add_word(:question_constitution,
|
|
312
|
+
"¿Cuál es su constitución?")
|
|
313
|
+
|
|
314
|
+
Message::Questionnaire.set_option(:spanish, :spawn)
|
|
315
|
+
@@questionnaire_dict.add_word(:question_full_name,
|
|
316
|
+
"""Introduce nombres para este tipo de enemigo, recomendado 10 o más,
|
|
317
|
+
\"q\" para terminar. Introduce solo la raza si es un enemigo sin nombre.""")
|
|
318
|
+
@@questionnaire_dict.add_word(:question_nickname,
|
|
319
|
+
"""Introduce apodos para este tipo de enemigo, recomendado 10 o más,
|
|
320
|
+
\"q\" para terminar.""")
|
|
321
|
+
@@questionnaire_dict.add_word(:question_race,
|
|
322
|
+
"Introduce la raza de este tipo de enemigo")
|
|
323
|
+
@@questionnaire_dict.add_word(:question_hp,
|
|
324
|
+
"Introduce los puntos de vida de este tipo de enemigo")
|
|
325
|
+
@@questionnaire_dict.add_word(:question_weapon,
|
|
326
|
+
"¿Qué arma utilizan?")
|
|
327
|
+
@@questionnaire_dict.add_word(:question_ws,
|
|
328
|
+
"Introduce su bonificación ofensiva")
|
|
329
|
+
@@questionnaire_dict.add_word(:question_armor,
|
|
330
|
+
"¿Qué tipo de armadura utilizan?")
|
|
331
|
+
@@questionnaire_dict.add_word(:question_greaves,
|
|
332
|
+
"¿Llevan pernales?")
|
|
333
|
+
@@questionnaire_dict.add_word(:question_bracelet,
|
|
334
|
+
"¿Llevan brazales?")
|
|
335
|
+
@@questionnaire_dict.add_word(:question_helmet,
|
|
336
|
+
"¿Llevan casco?")
|
|
337
|
+
@@questionnaire_dict.add_word(:question_shield,
|
|
338
|
+
"¿Usan escudo?")
|
|
339
|
+
@@questionnaire_dict.add_word(:question_db,
|
|
340
|
+
"¿Cuál es su bonificación defensiva, (incluyendo el escudo)?")
|
|
341
|
+
@@questionnaire_dict.add_word(:question_move_capacity,
|
|
342
|
+
"¿Cuál es su capacidad de movimiento?")
|
|
343
|
+
@@questionnaire_dict.add_word(:question_constitution,
|
|
344
|
+
"¿Cuál es su constitución?")
|
|
345
|
+
|
|
346
|
+
end
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
module Message
|
|
2
|
+
# ***************** message_dict ***************** #
|
|
3
|
+
valid_languages = [:english, :spanish]
|
|
4
|
+
|
|
5
|
+
Message::Dictionary.language = :english
|
|
6
|
+
@@message_dict.add_word(:wrong_config,
|
|
7
|
+
"Rules files not properly named")
|
|
8
|
+
@@message_dict.add_word(:bad_quit,
|
|
9
|
+
"\"quit\" requires an option: either -s to save and quit, or -q to quit without saving")
|
|
10
|
+
@@message_dict.add_word(:unknown_command,
|
|
11
|
+
"Unknown command, type \"help\" for helping information")
|
|
12
|
+
@@message_dict.add_word(:empty_pool,
|
|
13
|
+
"""There are no loaded warriors. Use \"load\" to load them o use
|
|
14
|
+
\"createchar\" (\"cc\"), \"createfoe\" (\"cf\") or \"createspawn\" (\"cs\")
|
|
15
|
+
to create a new warrior.""")
|
|
16
|
+
@@message_dict.add_word(:save_file_exists_warn,
|
|
17
|
+
"The file already exists, press \"o\" to overwrite it.")
|
|
18
|
+
@@message_dict.add_word(:save_overwrite, "Overwriting...")
|
|
19
|
+
@@message_dict.add_word(:save_saving, "Saving...")
|
|
20
|
+
@@message_dict.add_word(:save_error, "Could not save.")
|
|
21
|
+
@@message_dict.add_word(:save_scene, "Scene saved.")
|
|
22
|
+
@@message_dict.add_word(:cancel, "Cancelling...")
|
|
23
|
+
@@message_dict.add_word(:load_loading, "Loading...")
|
|
24
|
+
@@message_dict.add_word(:load_aborted, "Load aborted.")
|
|
25
|
+
@@message_dict.add_word(:confirm_undo,
|
|
26
|
+
"Are you sure to undo the last command? \"s\" to confirm.")
|
|
27
|
+
@@message_dict.add_word(:n_spawn_overload, "It is not possible to spawn that many!")
|
|
28
|
+
@@message_dict.add_word(:hits_unable, "Could not complete the attack.")
|
|
29
|
+
@@message_dict.add_word(:cannot_set_short_name, "Key cannot be changed.")
|
|
30
|
+
@@message_dict.add_word(:preset_roll_prompt,
|
|
31
|
+
"Press \'r\' to enter a roll or any other key for a random roll.")
|
|
32
|
+
@@message_dict.add_word(:bad_range, "Out of range.")
|
|
33
|
+
@@message_dict.add_word(:hits_success, "The attack succeeds!")
|
|
34
|
+
@@message_dict.add_word(:hits_fail, "The attack fails...")
|
|
35
|
+
@@message_dict.add_word(:quit_without_saving, "Quit without saving.")
|
|
36
|
+
@@message_dict.add_word(:free_all_warn, "Freeing all the warriors, press \"y\" to continue.")
|
|
37
|
+
@@message_dict.add_word(:start_clean, "Freeing all the warriors.")
|
|
38
|
+
@@message_dict.add_word(:delete_backup_warn, "Deleting backup, press \"y\" to continue.")
|
|
39
|
+
@@message_dict.add_word(:delete_backup, "Deleting backup.")
|
|
40
|
+
@@message_dict.add_word(:file_not_found, "Could no find the file")
|
|
41
|
+
@@message_dict.add_word(:mortal_wound_hp, " HP Exhausting hit!")
|
|
42
|
+
@@message_dict.add_word(:mortal_wound_dead_in, " Mortal wound!")
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
Message::Dictionary.language = :spanish
|
|
46
|
+
@@message_dict.add_word(:wrong_config,
|
|
47
|
+
"Los ficheros de reglas no tienen los nombres correctos")
|
|
48
|
+
@@message_dict.add_word(:bad_quit,
|
|
49
|
+
"\"quit\" requiere una opción: -s para salvar y salir, o -q para salir sin guardar")
|
|
50
|
+
@@message_dict.add_word(:unknown_command,
|
|
51
|
+
"Comando desconocido, escribe \"help\" para obtener ayuda.")
|
|
52
|
+
@@message_dict.add_word(:empty_pool,
|
|
53
|
+
"""No hay guerreros cargados. Utiliza \"load\" para cargarlos o utiliza
|
|
54
|
+
\"createchar\" (\"cc\"), \"createfoe\" (\"cf\") o \"createspawn\" (\"cs\")
|
|
55
|
+
para crear un guerrero nuevo.""")
|
|
56
|
+
@@message_dict.add_word(:save_file_exists_warn,
|
|
57
|
+
"El fichero ya existe, pulsa \"o\" para sobreescribir.")
|
|
58
|
+
@@message_dict.add_word(:save_overwrite, "Sobreescribiendo...")
|
|
59
|
+
@@message_dict.add_word(:save_saving, "Guardando...")
|
|
60
|
+
@@message_dict.add_word(:save_error, "No se pudo guardar.")
|
|
61
|
+
@@message_dict.add_word(:save_scene, "Escena guardada.")
|
|
62
|
+
@@message_dict.add_word(:cancel, "Cancelando...")
|
|
63
|
+
@@message_dict.add_word(:load_loading, "Cargando...")
|
|
64
|
+
@@message_dict.add_word(:load_aborted, "Carga abortada.")
|
|
65
|
+
@@message_dict.add_word(:confirm_undo,
|
|
66
|
+
"¿Seguro que quieres deshacer el último comando? \'s\' para confirmar")
|
|
67
|
+
@@message_dict.add_word(:n_spawn_overload, "¡No es posible generar tantos!")
|
|
68
|
+
@@message_dict.add_word(:hits_unable, "No se pudo completar el ataque.")
|
|
69
|
+
@@message_dict.add_word(:cannot_set_short_name, "No se puede cambiar la clave.")
|
|
70
|
+
@@message_dict.add_word(:preset_roll_prompt,
|
|
71
|
+
"Pulsa \'r\' para introducir una tirada o cualquier otra tecla para tirada aleatoria.")
|
|
72
|
+
@@message_dict.add_word(:bad_range, "Fuera de rango.")
|
|
73
|
+
@@message_dict.add_word(:hits_success, "El ataque tiene éxito!")
|
|
74
|
+
@@message_dict.add_word(:hits_fail, "El ataque falla...")
|
|
75
|
+
@@message_dict.add_word(:quit_without_saving, "Saliendo sin guardar.")
|
|
76
|
+
@@message_dict.add_word(:free_all_warn, "Eliminando todos los guerreros, pulsa \"y\" para continuar.")
|
|
77
|
+
@@message_dict.add_word(:start_clean, "Eliminando todos los guerreros.")
|
|
78
|
+
@@message_dict.add_word(:delete_backup_warn, "Eliminando la copia de seguridad, pulsa \"y\" para continuar.")
|
|
79
|
+
@@message_dict.add_word(:delete_backup, "Eliminando la copia de seguridad.")
|
|
80
|
+
@@message_dict.add_word(:file_not_found, "No se pudo encontrar el fichero")
|
|
81
|
+
@@message_dict.add_word(:mortal_wound_hp, " ¡Golpe que agotó los HP!")
|
|
82
|
+
@@message_dict.add_word(:mortal_wound_dead_in, " ¡Herida mortal!")
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
# ***************** help_dict ***************** #
|
|
89
|
+
valid_languages = [:english, :spanish]
|
|
90
|
+
|
|
91
|
+
Message::Dictionary.language = :english
|
|
92
|
+
@@help_dict.add_word(:already_loaded,
|
|
93
|
+
"%{short_name} is already loaded, press \'c\' to continue.")
|
|
94
|
+
@@help_dict.add_word(:created_new,
|
|
95
|
+
"%{short_name} has been added.")
|
|
96
|
+
@@help_dict.add_word(:warrior_in_one_line,
|
|
97
|
+
"%{short_name}: %{full_name} %{nickname}")
|
|
98
|
+
@@help_dict.add_word(:spawn_in_one_line,
|
|
99
|
+
"Enemy of type %{short_name}")
|
|
100
|
+
@@help_dict.add_word(:warrior_in_one_line_hp,
|
|
101
|
+
"%{short_name}: %{full_name} %{nickname}: %{hp} hp")
|
|
102
|
+
@@help_dict.add_word(:full_name,
|
|
103
|
+
"%{full_name}, %{nickname}")
|
|
104
|
+
@@help_dict.add_word(:save_success_unique,
|
|
105
|
+
"\"%{short_name}\" has been successfully saved.")
|
|
106
|
+
@@help_dict.add_word(:save_success_spawn,
|
|
107
|
+
"Enemy of type \"%{short_name}\" has been successfully saved.")
|
|
108
|
+
@@help_dict.add_word(:save_not_exist,
|
|
109
|
+
"Could not complete, %{short_name} does not exist.")
|
|
110
|
+
@@help_dict.add_word(:load_fail,
|
|
111
|
+
"Could not correctly load the file \"%{short_name}.marshal\".")
|
|
112
|
+
@@help_dict.add_word(:load_not_exist,
|
|
113
|
+
"The file \"%{short_name}\" does not exist.")
|
|
114
|
+
@@help_dict.add_word(:setting_attribute,
|
|
115
|
+
"Updating %{full_name}: %{attribute} = %{value}")
|
|
116
|
+
@@help_dict.add_word(:free_pool,
|
|
117
|
+
"Bye %{full_name}!")
|
|
118
|
+
@@help_dict.add_word(:not_loaded,
|
|
119
|
+
"%{short_name} has not been loaded.")
|
|
120
|
+
@@help_dict.add_word(:join_combat,
|
|
121
|
+
"¡%{full_name} joins the combat!")
|
|
122
|
+
@@help_dict.add_word(:join_not_use_spawn,
|
|
123
|
+
"%{short_name} cannot join, use \"spawn\" %{short_name} xN to spawn N.")
|
|
124
|
+
@@help_dict.add_word(:not_in_combat,
|
|
125
|
+
"%{short_name} is not in the combat.")
|
|
126
|
+
@@help_dict.add_word(:spawn_not,
|
|
127
|
+
"%{short_name} cannot be spawned.")
|
|
128
|
+
@@help_dict.add_word(:spawning,
|
|
129
|
+
"Spawning enemies: %{n_spawn} of type %{short_name}")
|
|
130
|
+
@@help_dict.add_word(:leave_combat,
|
|
131
|
+
"%{short_name} leaves the combat")
|
|
132
|
+
@@help_dict.add_word(:does_not_exist,
|
|
133
|
+
"\"%{short_name}\" does not exist.")
|
|
134
|
+
@@help_dict.add_word(:hits_check_mod,
|
|
135
|
+
"The attack modifier is %{modifier}")
|
|
136
|
+
@@help_dict.add_word(:hits,
|
|
137
|
+
"¡%{attacker_name} attacks %{defender_name}!")
|
|
138
|
+
@@help_dict.add_word(:dead_warrior, "%{full_name} has died...")
|
|
139
|
+
@@help_dict.add_word(:delete_warrior_warn, "Deleting file %{short_name}, press \"y\" to continue.")
|
|
140
|
+
@@help_dict.add_word(:delete_warrior, "Deleting file %{short_name}.")
|
|
141
|
+
@@help_dict.add_word(:delete_scene_warn, "Deleting scene %{short_name}, press \"y\" to continue.")
|
|
142
|
+
@@help_dict.add_word(:delete_scene, "Deleting scene %{short_name}.")
|
|
143
|
+
@@help_dict.add_word(:skill_not_exists, "Skill \"%{skill}\" does not exist")
|
|
144
|
+
@@help_dict.add_word(:skill_puts, " => %{skill_name}")
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
Message::Dictionary.language = :spanish
|
|
150
|
+
@@help_dict.add_word(:already_loaded,
|
|
151
|
+
"%{short_name} ya está cargado, pulsa \'c\' para continuar")
|
|
152
|
+
@@help_dict.add_word(:created_new,
|
|
153
|
+
"Se ha añadido %{short_name}.")
|
|
154
|
+
@@help_dict.add_word(:warrior_in_one_line,
|
|
155
|
+
"%{short_name}: %{full_name} %{nickname}")
|
|
156
|
+
@@help_dict.add_word(:spawn_in_one_line,
|
|
157
|
+
"Enemigo de tipo %{short_name}")
|
|
158
|
+
@@help_dict.add_word(:warrior_in_one_line_hp,
|
|
159
|
+
"%{short_name}: %{full_name} %{nickname}: %{hp} hp")
|
|
160
|
+
@@help_dict.add_word(:full_name,
|
|
161
|
+
"%{full_name}, %{nickname}")
|
|
162
|
+
@@help_dict.add_word(:save_success_unique,
|
|
163
|
+
"\"%{short_name}\" se ha guardado con éxito.")
|
|
164
|
+
@@help_dict.add_word(:save_success_spawn,
|
|
165
|
+
"Enemigo de tipo \"%{short_name}\" se ha guardado con éxito.")
|
|
166
|
+
@@help_dict.add_word(:save_not_exist,
|
|
167
|
+
"No se pudo completar, %{short_name} no existe.")
|
|
168
|
+
@@help_dict.add_word(:load_fail,
|
|
169
|
+
"No se pudo cargar correctamente el fichero \"%{short_name}.marshal\".")
|
|
170
|
+
@@help_dict.add_word(:load_not_exist,
|
|
171
|
+
"El fichero \"%{short_name}\" no existe.")
|
|
172
|
+
@@help_dict.add_word(:setting_attribute,
|
|
173
|
+
"Actualizando %{full_name}: %{attribute} = %{value}")
|
|
174
|
+
@@help_dict.add_word(:free_pool,
|
|
175
|
+
"¡Adios %{full_name}!")
|
|
176
|
+
@@help_dict.add_word(:not_loaded,
|
|
177
|
+
"%{short_name} no está cargado.")
|
|
178
|
+
@@help_dict.add_word(:join_combat,
|
|
179
|
+
"¡%{full_name} se ha unido al combate!")
|
|
180
|
+
@@help_dict.add_word(:join_not_use_spawn,
|
|
181
|
+
"%{short_name} no se puede generar, usa \"spawn\" %{short_name} xN para generar N.")
|
|
182
|
+
@@help_dict.add_word(:not_in_combat,
|
|
183
|
+
"%{short_name} no está en el combate.")
|
|
184
|
+
@@help_dict.add_word(:spawn_not,
|
|
185
|
+
"%{short_name} no se puede generar, es un personaje.")
|
|
186
|
+
@@help_dict.add_word(:spawning,
|
|
187
|
+
"Generando enemigos: %{n_spawn} del tipo %{short_name}")
|
|
188
|
+
@@help_dict.add_word(:leave_combat,
|
|
189
|
+
"%{short_name} abandona el combate")
|
|
190
|
+
@@help_dict.add_word(:does_not_exist,
|
|
191
|
+
"\"%{short_name}\" no existe.")
|
|
192
|
+
@@help_dict.add_word(:hits_check_mod,
|
|
193
|
+
"El ataque se realiza con un modificador de %{modifier}")
|
|
194
|
+
@@help_dict.add_word(:hits,
|
|
195
|
+
"¡%{attacker_name} ataca a %{defender_name}!")
|
|
196
|
+
@@help_dict.add_word(:dead_warrior, "%{full_name} ha muerto...")
|
|
197
|
+
@@help_dict.add_word(:delete_warrior_warn, "Eliminando fichero %{short_name}, pulsa \"y\" para continuar.")
|
|
198
|
+
@@help_dict.add_word(:delete_warrior, "Eliminando fichero %{short_name}.")
|
|
199
|
+
@@help_dict.add_word(:delete_scene_warn, "Eliminando escena %{short_name}, pulsa \"y\" para continuar.")
|
|
200
|
+
@@help_dict.add_word(:delete_scene, "Eliminando escena %{short_name}.")
|
|
201
|
+
@@help_dict.add_word(:skill_not_exists, "La habilidad \"%{skill}\" no existe")
|
|
202
|
+
@@help_dict.add_word(:skill_puts, " => %{skill_name}")
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
# ***************** load_prompt_dict ***************** #
|
|
208
|
+
valid_languages = [:english, :spanish]
|
|
209
|
+
valid_types = [:character, :foe, :spawn]
|
|
210
|
+
|
|
211
|
+
Message::Questionnaire.set_option(:english, :character)
|
|
212
|
+
@@load_prompt_dict.add_word(:loaded,
|
|
213
|
+
"%{full_name} has already been loaded, press \"r\" to reload")
|
|
214
|
+
@@load_prompt_dict.add_word(:reloading,
|
|
215
|
+
"Reloading %{full_name}...")
|
|
216
|
+
@@load_prompt_dict.add_word(:welcome,
|
|
217
|
+
"Welcome, %{full_name}!")
|
|
218
|
+
|
|
219
|
+
Message::Questionnaire.set_option(:english, :foe)
|
|
220
|
+
@@load_prompt_dict.add_word(:loaded,
|
|
221
|
+
"%{full_name} has already been loaded, press \"r\" to reload")
|
|
222
|
+
@@load_prompt_dict.add_word(:reloading,
|
|
223
|
+
"Reloading %{full_name}...")
|
|
224
|
+
@@load_prompt_dict.add_word(:welcome,
|
|
225
|
+
"Beware, %{full_name} is approaching!")
|
|
226
|
+
|
|
227
|
+
Message::Questionnaire.set_option(:english, :spawn)
|
|
228
|
+
@@load_prompt_dict.add_word(:loaded,
|
|
229
|
+
"%{spawn_name} has already been loaded, press \"r\" to reload")
|
|
230
|
+
@@load_prompt_dict.add_word(:reloading,
|
|
231
|
+
"Reloading %{spawn_name}...")
|
|
232
|
+
@@load_prompt_dict.add_word(:welcome,
|
|
233
|
+
"Beware, some %{full_name} is approaching!")
|
|
234
|
+
|
|
235
|
+
Message::Questionnaire.set_option(:spanish, :character)
|
|
236
|
+
@@load_prompt_dict.add_word(:loaded,
|
|
237
|
+
"%{full_name} ya está cargado, pulsa \"r\" para recargarlo")
|
|
238
|
+
@@load_prompt_dict.add_word(:reloading,
|
|
239
|
+
"Recargando %{full_name}...")
|
|
240
|
+
@@load_prompt_dict.add_word(:welcome,
|
|
241
|
+
"¡Bienvenido, %{full_name}!")
|
|
242
|
+
|
|
243
|
+
Message::Questionnaire.set_option(:spanish, :foe)
|
|
244
|
+
@@load_prompt_dict.add_word(:loaded,
|
|
245
|
+
"%{full_name} ya está cargado, pulsa \"r\" para recargarlo")
|
|
246
|
+
@@load_prompt_dict.add_word(:reloading,
|
|
247
|
+
"Recargando %{full_name}...")
|
|
248
|
+
@@load_prompt_dict.add_word(:welcome,
|
|
249
|
+
"¡Se acerca %{full_name}!")
|
|
250
|
+
|
|
251
|
+
Message::Questionnaire.set_option(:spanish, :spawn)
|
|
252
|
+
@@load_prompt_dict.add_word(:loaded,
|
|
253
|
+
"%{spawn_name} ya está cargado, pulsa \"r\" para recargarlo")
|
|
254
|
+
@@load_prompt_dict.add_word(:reloading,
|
|
255
|
+
"Recargando %{spawn_name}...")
|
|
256
|
+
@@load_prompt_dict.add_word(:welcome,
|
|
257
|
+
"Se acerca algún %{spawn_name}...")
|
|
258
|
+
|
|
259
|
+
end
|