Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_paper_ball_thrown_spawner_Step_0

(view raw script w/o annotations or w/e)
1
if (paper_spawn_chance_current > 1)
2
    paper_spawn_chance_current--
3
var rng = irandom(paper_spawn_chance_current)
4
if (rng == 1)
5
{
6
    paper_spawn_chance_current = paper_spawn_chance_max
7
    instance_create_depth(choose(0, 640), irandom_range(380, 480), -100, obj_flowey_battle_phase_2_paper_ball_thrown)
8
}