| 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(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 |
else |
| 24 |
{ |
| 25 |
can_talk = false; |
| 26 |
if (message_current == 0 && no_loop == false && message_current == message_end) |
| 27 |
{ |
| 28 |
alarm[0] = 20;gml_Object_obj_dialogue_battle_action_selected_item_1_Alarm_0.gmlvar item_slot = global.item_slot[1];
if (item_slot == "Hot Dog...?")
{
audio_play_sound(snd_borfborf, 20, false);
if (global.current_hp_self > global.max_hp_self)
exit;
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 = ""; |
| 29 |
no_loop = true; |
| 30 |
} |
| 31 |
else if (key_select_pressed) |
| 32 |
{ |
| 33 |
if (message_current < message_end && message_end > 0) |
| 34 |
{ |
| 35 |
message_current += 1; |
| 36 |
message_length = string_length(message[message_current]); |
| 37 |
characters = 0; |
| 38 |
message_draw = ""; |
| 39 |
} |
| 40 |
else if (message_current >= 1 && message_current == message_end) |
| 41 |
{ |
| 42 |
global.item_slot[1] = global.item_slot[2]; |
| 43 |
global.item_slot[2] = global.item_slot[3]; |
| 44 |
global.item_slot[3] = global.item_slot[4]; |
| 45 |
global.item_slot[4] = global.item_slot[5]; |
| 46 |
global.item_slot[5] = global.item_slot[6]; |
| 47 |
global.item_slot[6] = global.item_slot[7]; |
| 48 |
global.item_slot[7] = global.item_slot[8]; |
| 49 |
global.item_slot[8] = "Nothing"; |
| 50 |
global.enemy_attacking = true; |
| 51 |
instance_destroy(); |
| 52 |
} |
| 53 |
} |
| 54 |
} |
| 55 |
script_execute(scr_text_counter); |