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