1 |
if live_call() |
2 |
return global.live_result; |
3 |
damage_number = scr_determine_damage_number_enemyscr_determine_damage_number_enemyfunction scr_determine_damage_number_enemy(argument0, argument1, argument2) //gml_Script_scr_determine_damage_number_enemy
{
var enemy_count = global.enemy_count
if (global.battle_enemy_name_1 == argument0)
return 1;
else if (enemy_count >= 2 && global.battle_enemy_name_2 == argument1)
return 2;
else if (enemy_count >= 3 && global.battle_enemy_name_3 == argument2)
return 3;
else
return 0;
} ("flowey", "void", "void") |
4 |
global.ps = part_system_create() |
5 |
part_system_depth(global.ps, -1) |
6 |
global.pt_hands = part_type_create() |
7 |
part_type_shape(global.pt_hands, 0) |
8 |
spr_Hands = 367 |
9 |
part_type_sprite(global.pt_hands, spr_Hands, 1, 0, 0) |
10 |
part_type_size(global.pt_hands, 1, 1, 0, 0) |
11 |
part_type_scale(global.pt_hands, 1, 1) |
12 |
part_type_orientation(global.pt_hands, 0, 0, 0, 0, 1) |
13 |
part_type_color3(global.pt_hands, 16777215, 16777215, 0) |
14 |
part_type_alpha3(global.pt_hands, 0, 1, 0) |
15 |
part_type_blend(global.pt_hands, 0) |
16 |
part_type_life(global.pt_hands, 140, 180) |
17 |
part_type_speed(global.pt_hands, 0.25, 1, 0, 0) |
18 |
part_type_direction(global.pt_hands, 47, 125, 0, 0) |
19 |
part_type_gravity(global.pt_hands, 0, 0) |
20 |
global.pt_hands_copy = part_type_create() |
21 |
part_type_shape(global.pt_hands_copy, 12) |
22 |
part_type_size(global.pt_hands_copy, 1, 1, 0, 0) |
23 |
part_type_scale(global.pt_hands_copy, 1, 1) |
24 |
part_type_orientation(global.pt_hands_copy, 0, 0, 0, 0, 1) |
25 |
part_type_color3(global.pt_hands_copy, 16777215, 16777215, 0) |
26 |
part_type_alpha3(global.pt_hands_copy, 0, 1, 0) |
27 |
part_type_blend(global.pt_hands_copy, 0) |
28 |
part_type_life(global.pt_hands_copy, 180, 200) |
29 |
part_type_speed(global.pt_hands_copy, 0.15, 0.35, 0, 0) |
30 |
part_type_direction(global.pt_hands_copy, 47, 125, 0, 0) |
31 |
part_type_gravity(global.pt_hands_copy, 0, 0) |
32 |
part_system_depth(global.ps, -509) |
33 |
global.pe_hands = part_emitter_create(global.ps) |
34 |
global.pe_hands_copy = part_emitter_create(global.ps) |
35 |
var xp = x |
36 |
var yp = y |
37 |
part_emitter_region(global.ps, global.pe_hands_copy, (xp - 640), (xp + 640), (yp - 1), (yp + 1), 0, 0) |
38 |
part_emitter_stream(global.ps, global.pe_hands_copy, global.pt_hands_copy, 4) |
39 |
part_emitter_region(global.ps, global.pe_hands, (xp - 640), (xp + 640), (yp - 1), (yp + 1), 0, 0) |
40 |
part_emitter_stream(global.ps, global.pe_hands, global.pt_hands, 2) |
41 |
y_offset = 0 |