1 |
var item_slot = global.item_slot[global.item_number_use] |
2 |
var game_mode = global.game_mode |
3 |
if (game_mode == "customs") |
4 |
{ |
5 |
if (item_slot == "Hot Dog...?") |
6 |
{ |
7 |
global.current_hp_self += global.max_hp_self |
8 |
if (global.current_hp_self > global.max_hp_self) |
9 |
global.current_hp_self = global.max_hp_self |
10 |
audio_play_sound(snd_borfborf, 20, false) |
11 |
} |
12 |
} |
13 |
else if (game_mode == "yellow") |
14 |
{ |
15 |
if (item_type == "healing") |
16 |
{ |
17 |
if (global.current_hp_self <= global.max_hp_self) |
18 |
{ |
19 |
global.current_hp_self += item_number |
20 |
if (global.current_hp_self > global.max_hp_self) |
21 |
global.current_hp_self = global.max_hp_self |
22 |
} |
23 |
} |
24 |
else if (item_type == "protection") |
25 |
{ |
26 |
global.current_pp_self += item_number |
27 |
if (global.current_pp_self > global.max_pp_self) |
28 |
global.current_pp_self = global.max_pp_self |
29 |
} |
30 |
else if (item_type == "speed") |
31 |
{ |
32 |
global.current_sp_self += item_number |
33 |
if (global.current_sp_self > global.max_sp_self) |
34 |
global.current_sp_self = global.max_sp_self |
35 |
} |
36 |
else if (item_type == "restore") |
37 |
{ |
38 |
global.current_rp_self += item_number |
39 |
if (global.current_rp_self > global.max_rp_self) |
40 |
global.current_rp_self = global.max_rp_self |
41 |
instance_create(0, 0, obj_cactus_damager) |
42 |
} |
43 |
audio_play_sound(item_sound, 20, false) |
44 |
} |
45 |
message_current += 1 |
46 |
message_length = string_length(message[message_current]) |
47 |
characters = 0 |
48 |
message_draw = "" |