1 |
if live_call() |
2 |
return global.live_result; |
3 |
function shoot_fail_gml_Object_obj_wild_revolver_circle_multi_Step_0() //gml_Script_shoot_fail_gml_Object_obj_wild_revolver_circle_multi_Step_0 |
4 |
{ |
5 |
if (!shoot_miss) |
6 |
{ |
7 |
gun_spin = false |
8 |
hit[circle_current] = 0 |
9 |
color_hit_number[circle_current] = 0 |
10 |
button_pressed = true |
11 |
var shot_sound = audio_play_sound(snd_fail, 1, 0) |
12 |
shrink[circle_current] = false |
13 |
shrink_speed = 0 |
14 |
alarm[0] = 20alarm[0]if (button_pressed_pre == true)
button_pressed = true
dd_type = "Revolver Multi"
event_user(0) |
15 |
shoot_miss = true |
16 |
key_select = 0 |
17 |
no_loop = true |
18 |
} |
19 |
} |
20 |
|
21 |
if (execute_create == true) |
22 |
{ |
23 |
if (can_execute == false) |
24 |
return; |
25 |
var fight_number = global.fight_number |
26 |
if (fight_number == 1) |
27 |
{ |
28 |
var enemy_sparing = global.enemy_sparing |
29 |
var enemy_vulnerable = global.enemy_vulnerable |
30 |
var current_hp_enemy = global.current_hp_enemy |
31 |
var attacking_damage_stat_critical = global.attacking_damage_stat_critical |
32 |
var enemy_target_x = global.enemy_target_x |
33 |
var enemy_target_y = global.enemy_target_y |
34 |
} |
35 |
else if (fight_number == 2) |
36 |
{ |
37 |
enemy_sparing = global.enemy_sparing_2 |
38 |
enemy_vulnerable = global.enemy_vulnerable_2 |
39 |
current_hp_enemy = global.current_hp_enemy_2 |
40 |
attacking_damage_stat_critical = global.attacking_damage_stat_critical_2 |
41 |
enemy_target_x = global.enemy_target_x_2 |
42 |
enemy_target_y = global.enemy_target_y_2 |
43 |
} |
44 |
else if (fight_number == 3) |
45 |
{ |
46 |
enemy_sparing = global.enemy_sparing_3 |
47 |
enemy_vulnerable = global.enemy_vulnerable_3 |
48 |
current_hp_enemy = global.current_hp_enemy_3 |
49 |
attacking_damage_stat_critical = global.attacking_damage_stat_critical_3 |
50 |
enemy_target_x = global.enemy_target_x_3 |
51 |
enemy_target_y = global.enemy_target_y_3 |
52 |
} |
53 |
script_execute(gml_Script_scr_controls_battle_reticle_multi) |
54 |
for (i = 0; i <= final_circle; i++) |
55 |
{ |
56 |
if (outline[i] <= 0 && shrink[i] == true) |
57 |
{ |
58 |
outline[i] = 0 |
59 |
shrink[i] = false |
60 |
imagea[i] = 0 |
61 |
circle_current += 1 |
62 |
} |
63 |
} |
64 |
if key_select |
65 |
{ |
66 |
if (outline[circle_current] > small_circle) |
67 |
{ |
68 |
shoot_fail() |
69 |
return; |
70 |
} |
71 |
else if ((enemy_sparing == true && enemy_vulnerable == true) || (enemy_vulnerable == true && current_hp_enemy <= attacking_damage_stat_critical) || outline[circle_current] <= (small_circle * 0.5)) |
72 |
{ |
73 |
gun_spin = true |
74 |
hit[circle_current] = 2 |
75 |
color_hit_number[circle_current] = 1 |
76 |
shot_total += 3 |
77 |
if (circle_current == final_circle) |
78 |
hit_object = 2913 |
79 |
else |
80 |
hit_object = 2916 |
81 |
shot_sound = audio_play_sound(snd_attackhitperfect, 1, 0) |
82 |
} |
83 |
else if (outline[circle_current] <= small_circle && outline[circle_current] > (small_circle * 0.5)) |
84 |
{ |
85 |
gun_spin = true |
86 |
hit[circle_current] = 1 |
87 |
color_hit_number[circle_current] = 0 |
88 |
shot_total += 2 |
89 |
if (circle_current == final_circle) |
90 |
hit_object = 2912 |
91 |
else |
92 |
hit_object = 2915 |
93 |
shot_sound = audio_play_sound(snd_attackhit, 1, 0) |
94 |
} |
95 |
audio_sound_pitch(shot_sound, (1 + obj_wild_revolver_battle_outline.target_current * 0.08)) |
96 |
instance_create((enemy_target_x + (irandom_range(-50, 50))), (enemy_target_y + (irandom_range(-50, 50))), hit_object) |
97 |
shrink[circle_current] = false |
98 |
button_pressed = true |
99 |
button_pressed_main = true |
100 |
circle_current += 1 |
101 |
key_select = 0 |
102 |
} |
103 |
for (i = 0; i <= final_circle; i++) |
104 |
{ |
105 |
if (outline[i] > 0 && shrink[i] == true) |
106 |
{ |
107 |
outline[i] -= shrink_speed |
108 |
if (outline[i] <= 0) |
109 |
{ |
110 |
outline[i] = 0 |
111 |
shoot_fail() |
112 |
} |
113 |
} |
114 |
if (shrink[i] == false && imagea[i] > 0) |
115 |
{ |
116 |
if (hit[i] == 2) |
117 |
{ |
118 |
color_alt_total[i] += color_alt_speed |
119 |
if (color_alt_total[i] >= color_alt_max) |
120 |
{ |
121 |
color_alt_total[i] = 0 |
122 |
color_hit_number[i] += 1 |
123 |
if (color_hit_number[i] > 2) |
124 |
color_hit_number[i] = 0 |
125 |
} |
126 |
} |
127 |
if (hit[i] != 0) |
128 |
{ |
129 |
cursor_color[i] = color_hit[color_hit_number[i]] |
130 |
outline_color[i] = color_hit[color_hit_number[i]] |
131 |
} |
132 |
thickness[i] += thick_increase |
133 |
imagea[i] -= imagea_dec |
134 |
if (imagea[i] < 0) |
135 |
imagea[i] = 0 |
136 |
} |
137 |
} |
138 |
if (no_loop == false) |
139 |
{ |
140 |
if (outline[final_circle] == 0 && hit[final_circle] == false) |
141 |
{ |
142 |
if (!instance_exists(obj_strike_fake)) |
143 |
{ |
144 |
if (button_pressed == true) |
145 |
alarm[0] = 3alarm[0]if (button_pressed_pre == true)
button_pressed = true
dd_type = "Revolver Multi"
event_user(0) |
146 |
else |
147 |
alarm[0] = 1alarm[0]if (button_pressed_pre == true)
button_pressed = true
dd_type = "Revolver Multi"
event_user(0) |
148 |
no_loop = true |
149 |
} |
150 |
} |
151 |
} |
152 |
} |