1 |
if (obj_dialogue_box_battle.image_alpha > 0) |
2 |
{ |
3 |
script_execute(gml_Script_scr_controls_text) |
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) |
10 |
{ |
11 |
if (counter == 0) |
12 |
{ |
13 |
script_execute(gml_Script_scr_text_increase) |
14 |
script_execute(gml_Script_scr_talking_text) |
15 |
} |
16 |
else |
17 |
can_talk = false |
18 |
} |
19 |
else |
20 |
{ |
21 |
can_talk = false |
22 |
if key_select_pressed |
23 |
{ |
24 |
if (message_current < message_end) |
25 |
{ |
26 |
message_current += 1 |
27 |
message_length = string_length(message[message_current]) |
28 |
characters = 0 |
29 |
message_draw = "" |
30 |
} |
31 |
else if (moveable == true) |
32 |
{ |
33 |
var game_mode = global.game_mode |
34 |
if (game_mode == "customs") |
35 |
{ |
36 |
instance_create(0, 0, obj_battle_fade_out_screen) |
37 |
moveable = false |
38 |
} |
39 |
else if (game_mode == "yellow") |
40 |
{ |
41 |
var world_current = scr_determine_world_value_yellowscr_determine_world_value_yellowfunction scr_determine_world_value_yellow() //gml_Script_scr_determine_world_value_yellow
{
if (room != rm_battle && room != rm_shop && room != rm_mainmenu && room != rm_death_screen)
global.current_room_overworld = room_get_name(room)
var current_room_overworld = global.current_room_overworld
switch current_room_overworld
{
case "rm_ruins_01_yellow":
case "rm_ruins_02_yellow":
case "rm_ruins_03_yellow":
case "rm_ruins_04_yellow":
case "rm_ruins_05_yellow":
case "rm_ruins_06_yellow":
return 0;
case "rm_darkruins_01":
case "rm_darkruins_02":
case "rm_darkruins_03":
case "rm_darkruins_04":
case "rm_darkruins_05":
case "rm_darkruins_06":
case "rm_darkruins_07":
case "rm_darkruins_08":
case "rm_darkruins_08b":
case "rm_darkruins_09":
case "rm_darkruins_09b":
case "rm_darkruins_10":
case "rm_darkruins_11":
case "rm_darkruins_12":
case "rm_darkruins_13":
case "rm_darkruins_14":
case "rm_darkruins_14b":
case "rm_darkruins_15":
case "rm_darkruins_16":
case "rm_darkruins_16b":
case "rm_darkruins_16c":
case "rm_darkruins_17":
case "rm_darkruins_18":
case "rm_dalvhallway":
case "rm_dalvshouse":
case "rm_dalvsroom":
case "rm_dalvroomhall":
case "rm_dalvExit":
return 1;
case "rm_snowdin_01_yellow":
case "rm_snowdin_02_yellow":
case "rm_snowdin_03_yellow":
case "rm_snowdin_03b_yellow":
case "rm_snowdin_04_yellow":
case "rm_snowdin_05_yellow":
case "rm_snowdin_06_yellow":
case "rm_snowdin_07_yellow":
case "rm_snowdin_08_yellow":
case "rm_snowdin_08b_yellow":
case "rm_snowdin_09_yellow":
case "rm_snowdin_10_yellow":
case "rm_snowdin_11_yellow":
case "rm_snowdin_12_yellow":
case "rm_snowdin_13_yellow":
case "rm_snowdin_14_yellow":
case "rm_snowdin_14b_yellow":
case "rm_snowdin_14c_yellow":
case "rm_snowdin_14d_yellow":
case "rm_snowdin_14e_yellow":
case "rm_snowdin_15_yellow":
case "rm_snowdin_16_yellow":
case "rm_snowdin_16b_yellow":
case "rm_snowdin_17_yellow":
case "rm_snowdin_18_yellow":
case "rm_snowdin_19_yellow":
case "rm_snowdin_20_yellow":
case "rm_snowdin_21_yellow":
case "rm_snowdin_22_yellow":
return 2;
case "rm_dunes_01":
case "rm_dunes_02":
case "rm_dunes_03":
case "rm_dunes_04":
case "rm_dunes_05":
case "rm_dunes_06":
case "rm_dunes_07":
case "rm_dunes_08":
case "rm_dunes_08b":
case "rm_dunes_09":
case "rm_dunes_10":
case "rm_dunes_11":
case "rm_dunes_12":
case "rm_dunes_12b":
case "rm_dunes_13":
case "rm_dunes_14":
case "rm_dunes_15":
case "rm_dunes_16":
case "rm_dunes_17":
case "rm_dunes_18":
case "rm_dunes_19":
case "rm_dunes_19B":
case "rm_dunes_20":
case "rm_dunes_21":
case "rm_dunes_22":
case "rm_dunes_23":
case "rm_dunes_24":
case "rm_dunes_25":
... () |
42 |
var enemy_dead_count = global.enemy_dead + global.enemy_dead_2 + global.enemy_dead_3 |
43 |
var geno_count = global.kill_number[world_current] - enemy_dead_count |
44 |
if (geno_count <= 0 && world_current == 1) |
45 |
{ |
46 |
instance_create(323, 178, obj_flowey_genocide_yellow) |
47 |
instance_destroy() |
48 |
} |
49 |
else |
50 |
{ |
51 |
instance_create(0, 0, obj_battle_fade_out_screen) |
52 |
moveable = false |
53 |
} |
54 |
} |
55 |
} |
56 |
} |
57 |
} |
58 |
script_execute(gml_Script_scr_text_counter) |
59 |
} |