Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fmartlet_feather_straight_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
damage_number = scr_determine_damage_number_enemy
scr_determine_damage_number_enemy

function 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; }
("martlet", "void", "void")
4
state = 0
5
image_speed = 0
6
image_index = 0
7
image_alpha = 0
8
target_angle = 180
9
speed_charge_max = 3
10
attack_speed = 28
11
in_box = false
12
warning_line_color = 65535
13
warning_line_alpha = 0
14
can_play_sound = false
15
x_list = ds_list_create()
16
y_list = ds_list_create()
17
angle_list = ds_list_create()
18
max_points_trail = 10
19
trail_sprite = sprite_index
20
trail_cc_max = 3
21
trail_cc_start = trail_cc_max - 1
22
trail_cc_current = trail_cc_start