1 |
var game_mode = global.game_mode |
2 |
var battle_enemy_name = global.battle_enemy_name |
3 |
sc_able = false |
4 |
sc_index = 0 |
5 |
sc_xdisjoint = 0 |
6 |
sc_ydisjoint = 0 |
7 |
sc_xscale = 1 |
8 |
sc_yscale = 1 |
9 |
sc_angle = 0 |
10 |
sc_color = 16777215 |
11 |
sc_alpha = 1 |
12 |
global.timer_attacks_counter = 0 |
13 |
global.timer_attacks_counter_2 = 0 |
14 |
global.timer_attacks_switch = false |
15 |
no_loop = false |
16 |
if (game_mode == "customs") |
17 |
{ |
18 |
image_xscale = obj_dialogue_box_battle_transformation_any_out.image_xscale |
19 |
image_yscale = obj_dialogue_box_battle_transformation_any_out.image_yscale |
20 |
x = obj_dialogue_box_battle_transformation_any_out.x |
21 |
y = obj_dialogue_box_battle_transformation_any_out.y |
22 |
} |
23 |
else if (game_mode == "yellow") |
24 |
{ |
25 |
if (battle_enemy_name == "flowey intro" || battle_enemy_name == "shufflers") |
26 |
{ |
27 |
image_xscale = 165 / sprite_width |
28 |
image_yscale = 140 / sprite_height |
29 |
} |
30 |
else if (battle_enemy_name == "martlet pacifist" || battle_enemy_name == "martlet genocide") |
31 |
{ |
32 |
if (global.last_text_move_select < 0) |
33 |
{ |
34 |
image_xscale = 1 |
35 |
image_yscale = 1 |
36 |
} |
37 |
else |
38 |
{ |
39 |
image_xscale = obj_dialogue_box_battle_transformation_any_out.image_xscale |
40 |
image_yscale = obj_dialogue_box_battle_transformation_any_out.image_yscale |
41 |
x = obj_dialogue_box_battle_transformation_any_out.x |
42 |
y = obj_dialogue_box_battle_transformation_any_out.y |
43 |
} |
44 |
} |
45 |
else if (battle_enemy_name == "el bailador") |
46 |
{ |
47 |
if (global.last_text_move_select < 0) |
48 |
{ |
49 |
image_xscale = 158 / sprite_width |
50 |
image_yscale = 221 / sprite_height |
51 |
y -= 41 |
52 |
sc_able = true |
53 |
sc_direction = "None" |
54 |
sc_dcurrent = 1 |
55 |
sc_speed = 0.1 |
56 |
sc_out_script = gml_Script_scr_sme_yellow_rhythm_out_script_bowll |
57 |
if (global.route != 3) |
58 |
sc_sprite = 1646 |
59 |
else |
60 |
sc_sprite = 2096 |
61 |
} |
62 |
else |
63 |
{ |
64 |
image_xscale = obj_dialogue_box_battle_transformation_any_out.image_xscale |
65 |
image_yscale = obj_dialogue_box_battle_transformation_any_out.image_yscale |
66 |
x = obj_dialogue_box_battle_transformation_any_out.x |
67 |
y = obj_dialogue_box_battle_transformation_any_out.y |
68 |
} |
69 |
} |
70 |
else if (battle_enemy_name == "dummy training pacifist") |
71 |
{ |
72 |
if (global.last_text_move_select < 0) |
73 |
{ |
74 |
image_xscale = 1 |
75 |
image_yscale = 1 |
76 |
} |
77 |
else |
78 |
{ |
79 |
image_xscale = obj_dialogue_box_battle_transformation_any_out.image_xscale |
80 |
image_yscale = obj_dialogue_box_battle_transformation_any_out.image_yscale |
81 |
x = obj_dialogue_box_battle_transformation_any_out.x |
82 |
y = obj_dialogue_box_battle_transformation_any_out.y |
83 |
} |
84 |
} |
85 |
else if (battle_enemy_name == "ceroba genocide") |
86 |
{ |
87 |
image_xscale = obj_dialogue_box_battle_transformation_any_out.image_xscale |
88 |
image_yscale = obj_dialogue_box_battle_transformation_any_out.image_yscale |
89 |
x = obj_dialogue_box_battle_transformation_any_out.x |
90 |
y = obj_dialogue_box_battle_transformation_any_out.y |
91 |
} |
92 |
else if (battle_enemy_name == "starlo") |
93 |
{ |
94 |
image_xscale = obj_dialogue_box_battle_transformation_any_out.image_xscale |
95 |
image_yscale = obj_dialogue_box_battle_transformation_any_out.image_yscale |
96 |
x = obj_dialogue_box_battle_transformation_any_out.x |
97 |
y = obj_dialogue_box_battle_transformation_any_out.y |
98 |
} |
99 |
else if (battle_enemy_name == "martlet genocide final" && global.attack_cycle == 0) |
100 |
{ |
101 |
image_xscale = 1 |
102 |
image_yscale = 1 |
103 |
visible = false |
104 |
} |
105 |
else |
106 |
{ |
107 |
image_xscale = obj_dialogue_box_battle_transformation_any_out.image_xscale |
108 |
image_yscale = obj_dialogue_box_battle_transformation_any_out.image_yscale |
109 |
x = obj_dialogue_box_battle_transformation_any_out.x |
110 |
y = obj_dialogue_box_battle_transformation_any_out.y |
111 |
} |
112 |
} |
113 |
battle_box_resize_midfight = false |
114 |
battle_box_target_xscale = 1 |
115 |
battle_box_target_yscale = 1 |
116 |
battle_box_target_x = 319 |
117 |
battle_box_target_y = 320 |
118 |
battle_box_draw_enabled = true |