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_dalv) |
13 |
} |
14 |
else |
15 |
can_talk = false |
16 |
} |
17 |
else |
18 |
{ |
19 |
can_talk = false |
20 |
if key_select_pressed |
21 |
{ |
22 |
if (message_current < message_end) |
23 |
{ |
24 |
message_current += 1 |
25 |
message_length = string_length(message[message_current]) |
26 |
characters = 0 |
27 |
message_draw = "" |
28 |
} |
29 |
else |
30 |
{ |
31 |
var enemy_mode = global.enemy_mode |
32 |
var can_attack = true |
33 |
switch enemy_mode |
34 |
{ |
35 |
case 0: |
36 |
if (global.enemy_mode_gen == 0 && global.turns_passed >= 9) |
37 |
can_attack = false |
38 |
break |
39 |
case 1: |
40 |
if (global.enemy_mode_gen == 0 && global.turns_passed >= 8) |
41 |
can_attack = false |
42 |
break |
43 |
case 2: |
44 |
if (global.turns_passed >= 7) |
45 |
can_attack = false |
46 |
break |
47 |
} |
48 |
|
49 |
if (can_attack == true) |
50 |
{ |
51 |
with (obj_heart_battle_fighting_parent) |
52 |
moveable = true |
53 |
} |
54 |
else |
55 |
{ |
56 |
with (obj_dialogue_box_battle_transformation_any) |
57 |
event_user(0) |
58 |
} |
59 |
with (obj_quote_bubble_battle) |
60 |
instance_destroy() |
61 |
instance_destroy() |
62 |
} |
63 |
} |
64 |
} |
65 |
script_execute(gml_Script_scr_text_counter) |