Undertale script viewer

← back to main script listing

gml_Object_obj_colorlever_Create_0

(view raw script w/o annotations or w/e)
1
anim = 0;
2
type = 0;
3
if (room == room_truelab_bluelever)
4
    type = 1;
5
if (room == room_truelab_greenlever)
6
    type = 2;
7
if (room == room_truelab_tv)
8
    type = 3;
9
red = 0;
10
yel = 0;
11
gre = 0;
12
blu = 0;
13
myinteract = 0;
14
if (global.flag[481 truelab_red_key_status] == 3)
15
    red = 1;
16
if (global.flag[482 truelab_blue_key_status] == 3)
17
    blu = 1;
18
if (global.flag[483 truelab_green_key_status] == 3)
19
    gre = 1;
20
if (global.flag[484 truelab_yellow_key_status] == 3)
21
    yel = 1;