-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtexto_dialogos.txt
236 lines (134 loc) · 6.39 KB
/
texto_dialogos.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
extends Panel
var historia = 1
var line = "nada"
var idioma = 1
var input_states = preload("res://scripts/input_states.gd")
var btn_action = input_states.new("accion")
var adelante = input_states.new("btn_right")
var atras = input_states.new("btn_left")
var opacidad = 0
var fade = 40
var fade_frame = 0
var texto
var dialog_dict = {
nada = "",
historia1 = "[fill]Mi pueblo Yanomami ha estado comiendo su alimento crudo porque no tienen fuego, uno de los chamanes tenía fuego oculto y se iba a la selva para cocinar alimento solo para el y su mujer. Hace unos días se descubrió que guardaba el fuego en su estómago y la única manera de sacárselo fué haciéndolo reír. Sin embargo su mujer es malvada, ha enviado una ave para que se lleve el fuego lejos y ha lanzado una maldición al pueblo, que con ese mismo fuego los cremaran cuando mueran y beberán sus huesos.[/fill][center] NECESITAMOS TU AYUDA PARA ATRAPAR EL AVE QUE SE LLEVÓ EL FUEGO Y ENCENDER UN ÁRBOL ALTO PARA QUE ESPARSA BRASAS A TODAS LAS PERSONAS DEL PUEBLO.",
historia2 = "[fill][b]En ésta [color=green]misión[/color][/b] deberás perseguir el ave hasta que puedas quitarle el fuego, ten cuidado de no quedarte mucho tiempo detrás de ella o las chispas de fuego te quemarán; la mejor forma es saltandole arriba.",
historia3 = "[fill]Observa encima de los árboles, es posible que encuetres algunas cosas útiles.",
historia4 = "[fill]No te confíes en las maderas del camino, ultimamente el puente se ha estado cayendo por las lluvias.",
}
var dialog_dict2 = {
nada = "",
historia1 = "[fill](English) My Yanomami people have been eating their food raw because they have fire, one of the shamans had hidden fire and went to the forest for cooking food and only for his wife. A few days ago it was discovered that kept the fire in his stomach and the only way to get it out was making him laugh. But his wife is evil, has sent a bird to the fire is carried away and launched a curse to the people, with the same fire cremated when they die and drink their bones.[/fill][center] NEED YOUR HELP TO cATCH THE BIRD THAT TOOK THE FIRE AND HIGH ON A TREE FOR ESPARSA BRASAS ALL PEOPLE OF THE PEOPLE.",
historia2 = "[fill][b](English) In this [color=green]mission[/color][/b] you should pursue the bird until you can remove the fire, be careful not to stay long behind her or sparks of fire will burn her; the best way is by jumping up.",
historia3 = "[fill](English) Seen above the trees, you may find some useful things.[/fill]",
historia4 = "[fill](English)
Do not rely on the woods road, the bridge has lately been falling rain.",
# historia4 = "[center]English the second quarter[/center]",
}
var dialog_dict3 = {
nada = "",
historia1 = "[fill](yanomami) Ipa theri peni nii riye pe wamahe kowa wake thaponomiheha, mori shapori ani wake re thaponoweini urihi hami nii pe ripiama pe suwepi sho kekipi niya ha iyani.ai the titi haru hami the pe moyawerayoma pei hushomi hami kowa wa ke re thaponowei e wake hape pehi a ikama mahe,ma kuwi pe suwepi e ano hushuwo he parohooma, yaro a nakarema a niya ha shimani wake wake misi nia ha ruwamani ma kuwi,ihin tehe a hirai showaoma, ihin wake ma kuwini wamaki yaprayou hoowe wamaki ishi pe kowayou heowe a kuma.[/fill][center] WAMAREKI TA ÁYERIPRARI KIRITHAMI YAMA HUWEAPE KOPWA WAKE KAI RE ISIRIHE WAKE RE MAKEKUTUHE HII ISIWE KE HIMAMI WAKE PARARAYOMA KOMI THE PE PEHI YANOMAMI.",
historia2 = "[fill][b](yanomami) Ei the a re [color=green]kuwiha kirithami[/color][/b] wama a nosi pope kowa wama e wake hukeape,waha moyawei kuni wa no si yauwo aheteo mai wa isihirayou wei kethe, wa isihimamope wa ha yutuyutu moni.",
historia3 = "[fill](yanomami) Heyaka hami the mi hii hi hami,ai totihitawe wathe he harei wei kethe.[/fill]",
historia4 = "[fill](yanomami) The pe puhi potihe pei yo hami wa riya re huuwei,hei tehe pei yo pe wariyo maa ani.",
}
func _ready():
add_to_group("dialogue_box")
add_to_group("Idioma_GUI")
set_opacity(0)
texto = get_node("text")
texto.set_size( get_size() - Vector2(50, 50) )
# print (idioma)
show_dialog( line )
set_process(true)
# idioma = get_owner().get_node("idioma_gui_save").idioma
#----Idiomas, viene de idioma gui-------
func set_idioma1():
idioma = 1
func set_idioma2():
idioma = 2
# get_tree().reload_current_scene()
func set_idioma3():
idioma = 3
#----------------------------
func show_dialog( line ):
if idioma == 1:
texto.set_bbcode( dialog_dict[line] )
set_opacity(opacidad)
if idioma == 2:
texto.set_bbcode( dialog_dict2[line] )
set_opacity(opacidad)
if idioma == 3:
texto.set_bbcode( dialog_dict3[line] )
set_opacity(opacidad)
# print(dialog_dict[line])
# print (idioma)
func _process(delta):
# print(fade)
if adelante.check() == 3:
_on_TouchScreenButton_adelante_pressed()
if atras.check() == 3:
_on_TouchScreenButton_atras_pressed()
if opacidad < 1:
opacidad += 0.02
show_dialog( line )
#-----------------------------
if fade != 100:
fade += 1
if fade == 40:
get_owner().get_node("AnimationPlayer").play("fade_in")
#----------------------------------
if fade_frame != 100:
fade_frame += 1
#------------------------
if historia == 0:
end_dialog()
if historia == 1:
show_dialog(line)
line = "historia1"
if fade_frame == 40:
get_owner().get_node("imagenes").set_frame(1)
if historia == 2:
show_dialog(line)
line = "historia2"
if fade_frame == 40:
get_owner().get_node("imagenes").set_frame(2)
if historia == 3:
show_dialog(line)
line = "historia3"
if fade_frame == 40:
get_owner().get_node("imagenes").set_frame(3)
if historia == 4:
show_dialog(line)
line = "historia4"
if fade_frame == 40:
get_owner().get_node("imagenes").set_frame(4)
if historia == 5:
show_dialog(line)
line = "historia5"
if fade_frame == 40:
get_owner().get_node("imagenes").set_frame(5)
if historia == 6:
show_dialog(line)
line = "historia6"
if fade_frame == 40:
get_owner().get_node("imagenes").set_frame(6)
#---------------------------------
func _on_TouchScreenButton_adelante_pressed():
if historia != 4:
historia += 1
opacidad = 0
fade = 0
fade_frame = 0
get_owner().get_node("AnimationPlayer").play("fade_out")
func _on_TouchScreenButton_atras_pressed():
if historia != 1:
historia -= 1
opacidad = 0
fade = 0
fade_frame = 0
get_owner().get_node("AnimationPlayer").play("fade_out")
func end_dialog():
set_opacity( 0 )
texto.set_bbcode( "" )