Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_attack_fire_pillar_spawner_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
attack_stop = false
4
spawn_pos = choose("left", "middle", "right")
5
event_user(0)
6
spawn_pos_last = "nothing"
7
double_pillar_noloop = false
8
alarm[0] = 20
alarm[0]

if live_call() return global.live_result; if attack_stop return; var battle_box = obj_dialogue_box_battle_transformation_any var xx = 0 switch spawn_pos { case "left": xx = battle_box.bbox_left + 48 break case "middle": xx = battle_box.x break case "right": xx = battle_box.bbox_right - 48 break } instance_create_depth(xx, (battle_box.bbox_bottom + 20), -100, obj_ceroba_attack_fire_pillar_top) spawn_pos_last = spawn_pos event_user(0) if (spawn_pos == spawn_pos_last) { do { spawn_pos = choose("left", "middle", "right") } until (spawn_pos != spawn_pos_last); } alarm[0] = 50 if (global.hotland_flag[2] == 3 && (!double_pillar_noloop)) { double_pillar_noloop = true event_perform(ev_alarm, 0) }
9
if (global.hotland_flag[2] >= 2)
10
    alarm[0] = 1
alarm[0]

if live_call() return global.live_result; if attack_stop return; var battle_box = obj_dialogue_box_battle_transformation_any var xx = 0 switch spawn_pos { case "left": xx = battle_box.bbox_left + 48 break case "middle": xx = battle_box.x break case "right": xx = battle_box.bbox_right - 48 break } instance_create_depth(xx, (battle_box.bbox_bottom + 20), -100, obj_ceroba_attack_fire_pillar_top) spawn_pos_last = spawn_pos event_user(0) if (spawn_pos == spawn_pos_last) { do { spawn_pos = choose("left", "middle", "right") } until (spawn_pos != spawn_pos_last); } alarm[0] = 50 if (global.hotland_flag[2] == 3 && (!double_pillar_noloop)) { double_pillar_noloop = true event_perform(ev_alarm, 0) }