Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_dunebud_tumbleweeds_tumbleweed_Create_0

(view raw script w/o annotations or w/e)
1
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; }
("dunebud a", "dunebud b", "dunebud c")
2
image_alpha = 0
3
default_y = y
4
fade_in = true
5
can_vanish = false
6
if (x < obj_dialogue_box_battle_transformation_any.x)
7
    wind_direction = 1
8
else
9
    wind_direction = -1
10
rolling_speed = wind_direction * (irandom_range(3, 5))
11
rolling_speed_angle = 90 / (sprite_width / 2) * (-rolling_speed)
12
bheight_min = 5
13
bheight_max = 40
14
bheight_ratio = 1
15
sign_modifier = -1
16
time_elapsed = 0
17
max_rise = irandom_range(bheight_min, bheight_max)
18
time_max = max_rise * bheight_ratio
19
time_increase = 1