Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_macro_froggit_pedestal_Create_0

(view raw script w/o annotations or w/e)
1
depth = (-y)
2
pedestal_flag = 47
3
pedestal_placement = "topleft"
4
pedestal_item = ""
5
pedestal_menu_open = false
6
pedestal_is_active = false
7
alarm[0] = 1
alarm[0]

switch global.sworks_flag[pedestal_flag] { case 0: break case 1: pedestal_item = "pear" break case 2: pedestal_item = "coffee" break case 3: pedestal_item = "cactus" break default: } if (global.sworks_flag[pedestal_flag] != 0 || pedestal_is_active) { instance_create_depth(x, y, 500, obj_macro_froggit_light) sprite_index = spr_macro_froggit_pedestal_activated layer_set_visible((string(pedestal_placement) + "_" + string(pedestal_item)), true) layer_set_visible(("floorlights_" + string(pedestal_placement)), true) }