Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_dunebud_tumbleweeds_creator_Create_0

(view raw script w/o annotations or w/e)
1
var box = obj_dialogue_box_battle_transformation_any
2
rand_hmin = box.bbox_top + 25
3
rand_hmax = box.bbox_bottom - 5
4
var create_x_dist = 30
5
var wind_direction = irandom_range(0, 1)
6
if (wind_direction == 0)
7
    create_x = box.bbox_left - create_x_dist
8
else
9
    create_x = box.bbox_right + create_x_dist
10
weed_count = 0
11
weed_max = 6
12
weed_alarm = 25
13
destroy_alarm = 10
14
no_loop_destroy = false
15
alarm[0] = 10
alarm[0]

event_user(0)
16
if (!audio_is_playing(snd_mart_wind))
17
    audio_play_sound(snd_mart_wind, 20, 1)