1 |
var _temp_local_var_1; |
2 |
script_execute(gml_Script_scr_controls_text) |
3 |
if key_revert_pressed |
4 |
{ |
5 |
characters = message_length |
6 |
message_draw = string_copy(message[message_current], 0, characters) |
7 |
} |
8 |
if (characters < message_length) |
9 |
{ |
10 |
if (counter == 0) |
11 |
{ |
12 |
script_execute(gml_Script_scr_text_increase) |
13 |
script_execute(gml_Script_scr_talking_ceroba) |
14 |
} |
15 |
else |
16 |
can_talk = false |
17 |
} |
18 |
else |
19 |
{ |
20 |
can_talk = false |
21 |
if key_select_pressed |
22 |
{ |
23 |
if (message_current < message_end) |
24 |
{ |
25 |
message_current += 1 |
26 |
message_length = string_length(message[message_current]) |
27 |
characters = 0 |
28 |
message_draw = "" |
29 |
} |
30 |
else |
31 |
{ |
32 |
var can_attack = true |
33 |
var _temp_local_var_1 = global.turns_passed |
34 |
can_attack = true |
35 |
if (can_attack == true) |
36 |
{ |
37 |
with (obj_heart_battle_fighting_parent) |
38 |
moveable = true |
39 |
} |
40 |
else |
41 |
{ |
42 |
with (obj_dialogue_box_battle_transformation_any) |
43 |
event_user(0) |
44 |
} |
45 |
with (obj_quote_bubble_battle) |
46 |
instance_destroy() |
47 |
instance_destroy() |
48 |
} |
49 |
} |
50 |
} |
51 |
script_execute(gml_Script_scr_text_counter) |