Undertale script viewer

← back to main script listing

gml_Object_obj_monster_extrabody_Create_0

(view raw script w/o annotations or w/e)
1
active = 0;
2
alarm[0] = 1;
gml_Object_obj_monster_extrabody_Alarm_0.gml

active = 1; if (type == 1) { mypart1 = instance_create(x, y - 4, obj_froghead); mypart2 = instance_create(x, y - 4, obj_froglegs); } if (type == 8) { sprite_index = spr_lesserdoge; mercymod = 0; depth = 10; tail = instance_create(x, y, obj_lesserdogetail); tail.tailobj = id; head = instance_create(x, y, obj_lesserdogehead); head.tailobj = id; } if (type == 9) { } if (type == 11) { part1 = 255; part2 = 256; mypart1 = instance_create(x + 18, y, part1); mypart2 = instance_create(x + 18, y, part2); } if (type == 12) { part1 = 237; part2 = 238; part3 = 234; mypart1 = instance_create(x, y - 6, part1); mypart2 = instance_create(x, y - 6, part2); gift[0] = floor(random(7)); gift[1] = floor(random(7)); gift[2] = floor(random(7)); if (gift[1] == gift[0]) gift[1] += 1; if (gift[2] == gift[0]) gift[2] += 1; if (gift[2] == gift[1]) gift[2] = 0; if (gift[2] == gift[0]) gift[2] += 1; mypart3 = instance_create(x, y - 6, part3); mypart3.gift = gift[0]; mypart4 = instance_create(x, y - 6, part3); mypart4.gift = gift[1]; mypart8 = instance_create(x, y - 6, part3); mypart8.gift = gift[2]; if (global.flag[138 spared_gyftrot] == 1) { with (mypart3) visible = false; with (mypart4) visible = false; with (mypart8) visible = false; } } if (type == 13) { part2 = 252; part3 = 251; part4 = 250; part1 = scr_marker(x - 6, y - 12, spr_movedogeheada); part1.image_xscale = 2; part1.image_yscale = 2; part1.image_speed = 0.25; mypart2 = instance_create(x - 6, y - 12, part2); mypart3 = instance_create(x - 6, y - 12, part3); mypart4 = instance_create(x - 6, y - 12, part4); } if (type == 14) { part1 = 242; part2 = 244; mypart1 = instance_create(x, y, part1); mypart2 = instance_create(x, y, part2); part1 = 243; part2 = 245; mypart1 = instance_create(x, y, part1); mypart2 = instance_create(x, y, part2); } if (type == 15) instance_create(x, y, obj_woshbody); if (type == 16) { ab = instance_create(x, y, obj_aaronbody); if (global.flag[95 aaron_woshua_event] == 1) ab.sprite_index = spr_aaronbody_bull; } if (type == 17) { emotion = 0; if (global.flag[81 status_shyren] == 2) emotion = 1; part1 = 261; mypart1 = instance_create(x, y, part1); part1.creator = id; agent = instance_create(x, y + 3, obj_agentbody); ...
3
drawme = 0;
4
siner = 0;
5
siner2 = 0;