1 |
key_select = keyboard_multicheck(0) |
2 |
key_select_pressed = keyboard_multicheck_pressed(0) |
3 |
key_revert_pressed = keyboard_multicheck_pressed(1) |
4 |
if key_revert_pressed |
5 |
{ |
6 |
characters = message_length |
7 |
message_draw = string_copy(message[message_current], 0, characters) |
8 |
} |
9 |
if (characters < message_length && counter == 0) |
10 |
{ |
11 |
script_execute(gml_Script_scr_text_increase) |
12 |
switch current_char |
13 |
{ |
14 |
case " ": |
15 |
case "*": |
16 |
can_talk = false |
17 |
break |
18 |
default: |
19 |
can_talk = true |
20 |
audio_play_sound(snd_footsteps_water_1, 20, false) |
21 |
} |
22 |
|
23 |
} |
24 |
else |
25 |
{ |
26 |
can_talk = false |
27 |
if (message_current == 0 && no_loop == false && message_current == message_end) |
28 |
{ |
29 |
alarm[0] = 20alarm[0]var item_slot = global.item_slot[3]
if (item_slot == "Hot Dog...?")
{
audio_play_sound(snd_borfborf, 20, false)
if (global.current_hp_self > global.max_hp_self)
return;
global.current_hp_self += 20
if (global.current_hp_self > global.max_hp_self)
global.current_hp_self = global.max_hp_self
}
message_end = 1
message_current += 1
message_length = string_length(message[message_current])
characters = 0
message_draw = "" |
30 |
no_loop = true |
31 |
} |
32 |
else if key_select_pressed |
33 |
{ |
34 |
if (message_current < message_end && message_end > 0) |
35 |
{ |
36 |
message_current += 1 |
37 |
message_length = string_length(message[message_current]) |
38 |
characters = 0 |
39 |
message_draw = "" |
40 |
} |
41 |
else if (message_current >= 1 && message_current == message_end) |
42 |
{ |
43 |
global.item_slot[1] = global.item_slot[2] |
44 |
global.item_slot[2] = global.item_slot[3] |
45 |
global.item_slot[3] = global.item_slot[4] |
46 |
global.item_slot[4] = global.item_slot[5] |
47 |
global.item_slot[5] = global.item_slot[6] |
48 |
global.item_slot[6] = global.item_slot[7] |
49 |
global.item_slot[7] = global.item_slot[8] |
50 |
global.item_slot[8] = "Nothing" |
51 |
global.enemy_attacking = true |
52 |
instance_destroy() |
53 |
} |
54 |
} |
55 |
} |
56 |
script_execute(gml_Script_scr_text_counter) |