Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_macro_froggit_pedestal_Alarm_0

(view raw script w/o annotations or w/e)
1
switch global.sworks_flag[pedestal_flag]
2
{
3
    case 0:
4
        break
5
    case 1:
6
        pedestal_item = "pear"
7
        break
8
    case 2:
9
        pedestal_item = "coffee"
10
        break
11
    case 3:
12
        pedestal_item = "cactus"
13
        break
14
    default:
15
16
}
17
18
if (global.sworks_flag[pedestal_flag] != 0 || pedestal_is_active)
19
{
20
    instance_create_depth(x, y, 500, obj_macro_froggit_light)
21
    sprite_index = spr_macro_froggit_pedestal_activated
22
    layer_set_visible((string(pedestal_placement) + "_" + string(pedestal_item)), true)
23
    layer_set_visible(("floorlights_" + string(pedestal_placement)), true)
24
}