Undertale script viewer

← back to main script listing

gml_Object_obj_chipdoor_r_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
x += sprite_width;
3
mychip = instance_create(x - 6, y, obj_npc_marker);
4
mychip.image_index = 1;
5
mychip.depth = depth + 1;
6
mychip.sprite_index = spr_chipdoor_chippart;
7
mychip.image_speed = 0;
8
mychip.visible = true;
9
image_xscale = -1;
10
image_speed = 0.2;
11
if (global.flag[375 completed_shoot_puzzle2] == 1 && room == room_fire7)
12
    sprite_index = spr_chipdoor_green;
13
if (global.flag[400 completed_shoot_puzzle4] == 1 && room == room_fire_walkandbranch2)
14
    sprite_index = spr_chipdoor_green;
15
did = 0;
16
if (global.plot > 132 && room == room_fire7)
17
    did = 1;
18
if (global.plot > 163 && room == room_fire_walkandbranch2)
19
    did = 1;
20
if (did == 1)
21
    x += 20;