Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_trihecta_circle_reflect_Create_0

(view raw script w/o annotations or w/e)
1
if (global.battle_enemy_name_1 == "trihecta")
2
    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; }
("trihecta", "void", "void")
3
else
4
    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; }
("tri", "hec", "ta")
5
var sign_factor_x = irandom_range(0, 1)
6
if (sign_factor_x == 0)
7
    sign_factor_x = -1
8
var sign_factor_y = irandom_range(0, 1)
9
if (sign_factor_y == 0)
10
    sign_factor_y = -1
11
move_speed_x = irandom_range(2, 3)
12
move_speed_y = irandom_range(2, 3)
13
if (move_speed_x > move_speed_y)
14
    move_speed_max = move_speed_x
15
else
16
    move_speed_max = move_speed_y
17
move_x = sign_factor_x * move_speed_x
18
move_y = sign_factor_y * move_speed_y
19
started = false
20
image_speed = 0
21
image_index = 0
22
image_alpha = 0
23
x_list = ds_list_create()
24
y_list = ds_list_create()
25
max_points_trail = 10
26
trail_sprite = 2312