Undertale script viewer

← back to main script listing

gml_Object_obj_papyrusboss_Create_0

(view raw script w/o annotations or w/e)
1
scr_monstersetup
scr_monstersetup

myself = 0; if (global.monster[1] == 1) { myself = 2; global.monster[2] = 1; } if (global.monster[0] == 1 && myself != 2) { myself = 1; global.monster[1] = 1; } if (global.monster[0] == 0) { myself = 0; global.monster[0] = 1; } if (global.monstertype[myself] == 1TestFroggit) { global.monstername[myself] =
TestFroggit
scr_gettext("monstername_1")
; global.monstermaxhp[myself] = 23; global.monsterhp[myself] = 23; global.monsteratk[myself] = 4; global.monsterdef[myself] = 1; global.xpreward[myself] = 2; global.goldreward[myself] = 2; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 2Dummy) { global.monstername[myself] =
Dummy
scr_gettext("monstername_2")
; global.monstermaxhp[myself] = 15; global.monsterhp[myself] = 15; global.monsteratk[myself] = 0; global.monsterdef[myself] = -5; global.xpreward[myself] = 0; global.goldreward[myself] = 0; global.itemrewardid = 0; global.itemrewardchance = 0; } if (global.monstertype[myself] == 3Froggit) { global.monstername[myself] =
Froggit
scr_gettext("monstername_3")
; global.monstermaxhp[myself] = 20; global.monsterhp[myself] = 20; global.monsteratk[myself] = 4; global.monsterdef[myself] = 1; global.xpreward[myself] = 10; global.goldreward[myself] = 20; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 4Froggit) { global.monstername[myself] =
Froggit
scr_gettext("monstername_4")
; global.monstermaxhp[myself] = 30; global.monsterhp[myself] = 30; global.monsteratk[myself] = 4; global.monsterdef[myself] = 4; global.xpreward[myself] = 3; global.goldreward[myself] = 2; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 5Whimsun) { global.monstername[myself] =
Whimsun
scr_gettext("monstername_5")
; global.monstermaxhp[myself] = 10; global.monsterhp[myself] = 10; global.monsteratk[myself] = 4; global.monsterdef[myself] = 0; global.xpreward[myself] = 2; global.goldreward[myself] = 2; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 6Moldsmal) { global.monstername[myself] =
Moldsmal
scr_gettext("monstername_6")
; global.monstermaxhp[myself] = 50; global.monsterhp[myself] = 50; global.monsteratk[myself] = 4; global.monsterdef[myself] = 0; global.xpreward[myself] = 3; global.goldreward[myself] = 3; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 7Migosp) { global.monstername[myself] =
Migosp
scr_gettext("monstername_7")
; global.monstermaxhp[myself] = 40; global.monsterhp[myself] = 40; global.monsteratk[myself] = 5; global.monsterdef[myself] = 4; global.xpreward[myself] = 5; global.goldreward[myself] = 4; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 8Vegetoid) ...
(0, 0, 0, 0, 0);
2
image_speed = 0;
3
with (obj_battlebg)
4
    instance_destroy();
5
gen = 4;
6
part1 = 232;
7
mypart1 = instance_create(x, y, part1);
8
hurtanim = 0;
9
hurtsound = snd_ehurt1;
10
talked = 0;
11
whatiheard = -1;
12
attacked = 0;
13
killed = 0;
14
global.heard = 0;
15
takedamage = 0;
16
mercymod = 0;
17
insult = 0;
18
close = 0;
19
dogignore = 0;
20
pet = 0;
21
global.vaporspeed = 0;
22
hotcha = 0;
23
flirto = 0;
24
flirt2 = 0;
25
stalk = 0;
26
conversation = 0;
27
prevhp = global.monsterhp[myself];
28
talkify = 0;
29
global.batmusic2 = caster_load("music/papyrusboss.ogg");
30
truefight = 0;
31
fighto = -1;
32
xfight = 0;
33
dontcancel = 0;
34
bonetalk = 0;
35
bonetalk2 = 0;
36
bonetalk3 = 0;
37
bonetalk4 = 0;
38
hearthp = global.hp;
39
hearthp2 = global.hp;
40
xxtalk = 0;
41
if (global.flag[67 status_papyrus] < 0)
42
{
43
    truefight = 1;
44
    conversation = 1;
45
}
46
if (global.flag[67 status_papyrus] == -2)
47
    global.flag[67 status_papyrus] = -3;
48
if (global.flag[67 status_papyrus] == -1)
49
    global.flag[67 status_papyrus] = -2;
50
if (global.flag[67 status_papyrus] == 0)
51
    global.flag[67 status_papyrus] = -1;
52
global.flag[68 fought_papyrus] = 1;
53
blcon_textofs = 15;
54
if (global.language == "ja")
55
    blcon_textofs += 11;
56
ht = sprite_height;
57
wd = sprite_width;
58
murder = 0;
59
if (scr_murderlv
scr_murderlv

mrd = 0; if (global.flag[202 kills_ruins] >= 20) mrd = 1; if (mrd == 1 && global.flag[45 status_toriel] == 4) mrd = 2; if (mrd == 2 && global.flag[52 status_doggo] == 1) mrd = 3; if (mrd == 3 && global.flag[53 status_dogcouple] == 1) mrd = 4; if (mrd == 4 && global.flag[54 status_greaterdog] == 1) mrd = 5; if (mrd == 5 && global.flag[57 status_snowdrake] == 2) mrd = 6; if (mrd == 6 && global.flag[203 kills_tundra] >= 16) mrd = 7; if (mrd == 7 && global.flag[67 status_papyrus] == 1) mrd = 8; if (mrd == 8 && global.flag[81 status_shyren] == 1) mrd = 9; if (mrd == 9 && global.flag[252 killed_glad_dummy] == 1) mrd = 10; if (mrd == 10 && global.flag[204 kills_water] >= 18) mrd = 11; if (mrd == 11 && global.flag[251 killed_undyne_ex] == 1 && global.flag[350 status_undyne] == 1) mrd = 12; if (mrd == 12 && global.flag[402 killed_rg] == 1) mrd = 13; if (mrd == 13 && global.flag[397 killed_muffet] == 1) mrd = 14; if (mrd == 14 && global.flag[205 kills_hotland] >= 40) mrd = 15; if (mrd == 15 && global.flag[425 killed_mettaton] == 1 && global.flag[27 spared_specific] == 0) mrd = 16; murderboy = mrd; if (global.flag[26 murderlevel_override] > 0) mrd = global.flag[26 murderlevel_override]; return mrd;
() >= 7)
60
{
61
    murder = 1;
62
    global.flag[290 papyrus_special_attack] = 1;
63
    global.monsterdef[myself] = -20000;
64
    dontcancel = 0;
65
    alarm[8] = -2;
gml_Object_obj_papyrusboss_Alarm_8.gml

if (bonetalk3 == 0) { vol = caster_get_volume(global.batmusic); global.msg[0] =
WELL...! *HUFF*Delay 11
IT'S CLEAR...
YOU CAN'T!Delay 11 *HUFF*Delay 11
DEFEAT ME!!!Wait for input
scr_gettext("obj_papyrusboss_402")
; global.msg[1] =
YEAH!!!
I CAN SEE YOU
SHAKING IN YOUR
BOOTS!!!Wait for input
scr_gettext("obj_papyrusboss_403")
; global.msg[2] =
THEREFORE I,Delay 11 THE
GREAT PAPYRUS,Delay 11
ELECT TO GRANT
YOU PITY!!Wait for input
scr_gettext("obj_papyrusboss_404")
; global.msg[3] =
\X I WILL \RSPARE\X YOU,
HUMAN!!!Wait for input
scr_gettext("obj_papyrusboss_405")
; global.msg[4] =
\XNOW'S YOUR CHANCE
TO ACCEPT MY
\RMERCY\X.Wait for inputClose MessageClose Message
scr_gettext("obj_papyrusboss_406")
; global.typer = 22; blcon = instance_create(x + 145, y + 52, obj_blconwdflowey); blconwdS = instance_create(blcon.x + blcon_textofs, blcon.y + 10, OBJ_NOMSCWRITER); bonetalk3 = 1; } alarm[8] = 2; if (bonetalk3 == 1 && instance_exists(OBJ_WRITER) == 0) { vol = 0; with (blcon) instance_destroy(); dontcancel = 0; alarm[8] = -2; bonetalk3 = 2; mercymod = 8000; global.msg[0] =
* Papyrus is sparing you.
scr_gettext("obj_papyrusboss_423")
; global.monsterdef[myself] = -global.monsterhp[myself] * 2; } if (vol > 0.01) vol -= 0.01; caster_set_volume(global.batmusic, vol);
66
    bonetalk3 = 2;
67
    mercymod = 8000;
68
}
69
blcon = 8589458454;
70
blconwd = 584589485934;