Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_attack_fire_pillar_spawner_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if attack_stop
4
    return;
5
var battle_box = obj_dialogue_box_battle_transformation_any
6
var xx = 0
7
switch spawn_pos
8
{
9
    case "left":
10
        xx = battle_box.bbox_left + 48
11
        break
12
    case "middle":
13
        xx = battle_box.x
14
        break
15
    case "right":
16
        xx = battle_box.bbox_right - 48
17
        break
18
}
19
20
instance_create_depth(xx, (battle_box.bbox_bottom + 20), -100, obj_ceroba_attack_fire_pillar_top)
21
spawn_pos_last = spawn_pos
22
event_user(0)
23
if (spawn_pos == spawn_pos_last)
24
{
25
    do
26
    {
27
        spawn_pos = choose("left", "middle", "right")
28
    } until (spawn_pos != spawn_pos_last);
29
}
30
alarm[0] = 50
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) }
31
if (global.hotland_flag[2] == 3 && (!double_pillar_noloop))
32
{
33
    double_pillar_noloop = true
34
    event_perform(ev_alarm, 0)
35
}