Undertale script viewer

← back to main script listing

gml_Object_obj_storybattle_gen_Create_0

(view raw script w/o annotations or w/e)
1
skipper = 0;
2
ossafe_ini_open("undertale.ini");
3
tale = ini_read_real("General", "Tale", 0);
4
ossafe_ini_close();
5
if (tale > 0)
6
    skipper = 1;
7
off = 0;
8
activetimer = -6;
9
global.turntimer = 15;
10
global.myfight = -1;
11
global.mnfight = -1;
12
flowey = 0;
13
shake = 0;
14
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;
() < 16)
15
{
16
    global.turntimer = 15;
17
    global.myfight = -1;
18
    global.mnfight = -1;
19
    global.hurtanim[0] = 0;
20
    global.hurtanim[1] = 0;
21
    global.hurtanim[2] = 0;
22
    global.monstertype[0] = 2Dummy;
23
    global.monstertype[1] = 2Dummy;
24
    global.monstertype[2] = 2Dummy;
25
    if (global.flag[450 progress_story] == 0)
26
    {
27
        con = 5;
28
        m1 = instance_create(100, 140, obj_froggit);
29
        m2 = instance_create(450, 140, obj_froggit);
30
    }
31
    if (global.flag[450 progress_story] == 1)
32
    {
33
        con = 10;
34
        m1 = instance_create(100, 140, obj_whimsun);
35
        m2 = instance_create(450, 140, obj_whimsun);
36
    }
37
    if (global.flag[450 progress_story] == 2)
38
    {
39
        con = 15;
40
        m1 = instance_create(80, 140, obj_moldsmal);
41
        m2 = instance_create(270, 140, obj_moldsmal);
42
        m3 = instance_create(470, 140, obj_moldsmal);
43
    }
44
    if (global.flag[450 progress_story] == 3)
45
    {
46
        con = 25;
47
        m1 = instance_create(100, 140, obj_migosp);
48
        m2 = instance_create(450, 140, obj_migosp);
49
    }
50
    if (global.flag[450 progress_story] == 4)
51
    {
52
        con = 30;
53
        m1 = instance_create(80, 140, obj_vegetoid);
54
        m2 = instance_create(270, 140, obj_vegetoid);
55
        m3 = instance_create(470, 140, obj_vegetoid);
56
    }
57
    if (global.flag[450 progress_story] == 5)
58
    {
59
        con = 40;
60
        m1 = instance_create(100, 140, obj_loox);
61
        m2 = instance_create(450, 140, obj_loox);
62
    }
63
    if (global.flag[450 progress_story] == 6)
64
    {
65
        con = 50;
66
        m1 = instance_create(50, 20, obj_snowdrake);
67
        m2 = instance_create(450, 20, obj_snowdrake);
68
    }
69
    if (global.flag[450 progress_story] == 7)
70
    {
71
        con = 60;
72
        m1 = instance_create(70, 110, obj_icecap);
73
        m2 = instance_create(260, 110, obj_icecap);
74
        m3 = instance_create(460, 110, obj_icecap);
75
    }
76
    if (global.flag[450 progress_story] == 8)
77
    {
78
        con = 70;
79
        m1 = instance_create(80, 140, obj_woshua);
80
        m2 = instance_create(270, 140, obj_woshua);
81
        m3 = instance_create(470, 140, obj_woshua);
82
    }
83
    if (global.flag[450 progress_story] == 9)
84
    {
85
        con = 80;
86
        m1 = instance_create(80, 130, obj_shyren);
87
        m2 = instance_create(270, 130, obj_shyren);
88
        m3 = instance_create(470, 130, obj_shyren);
89
    }
90
    if (global.flag[450 progress_story] == 10)
91
    {
92
        con = 90;
93
        m1 = instance_create(80, 140, obj_dummymonster);
94
        m2 = instance_create(270, 140, obj_dummymonster);
95
        m3 = instance_create(470, 140, obj_dummymonster);
96
    }
97
    if (global.flag[450 progress_story] == 11)
98
    {
99
        con = 100;
100
        global.monsterinstance[0] = instance_create(0, 20, obj_finalknight);
101
        obj_finalknight.myself = 1;
102
        global.monsterinstance[1] = instance_create(470, 80, obj_wizard);
103
        obj_wizard.myself = 1;
104
    }
105
    if (global.flag[450 progress_story] == 12)
106
    {
107
        con = 110;
108
        global.monsterinstance[0] = instance_create(80, 118, obj_finalfroggit);
109
        global.monsterinstance[1] = instance_create(270, 118, obj_finalfroggit);
110
        global.monsterinstance[2] = instance_create(470, 118, obj_finalfroggit);
111
    }
112
    if (global.flag[450 progress_story] == 13)
113
    {
114
        con = 120;
115
        global.monsterinstance[0] = instance_create(80, 140, obj_whimsalot);
116
        global.monsterinstance[1] = instance_create(270, 140, obj_whimsalot);
117
        global.monsterinstance[2] = instance_create(470, 140, obj_whimsalot);
118
    }
119
    if (global.flag[450 progress_story] == 14)
120
    {
121
        con = 130;
122
        global.monsterinstance[0] = instance_create(80, 130, obj_astigmatism);
123
        global.monsterinstance[1] = instance_create(270, 130, obj_astigmatism);
124
        global.monsterinstance[2] = instance_create(470, 130, obj_astigmatism);
125
    }
126
    if (global.flag[450 progress_story] == 15)
127
    {
128
        con = 140;
129
        m1 = instance_create(80, 160, obj_moldsmal);
130
        m2 = instance_create(270, 120, obj_loox);
131
        m3 = instance_create(470, 140, obj_migosp);
132
    }
133
    if (global.flag[450 progress_story] == 16)
134
    {
135
        con = 150;
136
        global.monsterinstance[0] = instance_create(40, 10, obj_pyrope);
137
        global.monsterinstance[1] = instance_create(200, 120, obj_vulkin);
138
        global.monsterinstance[2] = instance_create(430, 120, obj_vulkin);
139
    }
140
    if (global.flag[450 progress_story] == 17)
141
    {
142
        con = 160;
143
        activetimer = -45;
144
        m1 = instance_create(270, 120, obj_froggit);
145
    }
146
}
147
else
148
{
149
    flowey = 1;
150
    shake = 0;
151
    global.faceemotion = 1;
152
    floweyx = 281;
153
    floweyy = 134;
154
    alarm[4] = 15;
155
    if (global.flag[450 progress_story] == 0)
156
        con = 299;
157
    if (global.flag[450 progress_story] == 1)
158
        con = 304;
159
    if (global.flag[450 progress_story] == 2)
160
        con = 309;
161
    if (global.flag[450 progress_story] == 3)
162
        con = 314;
163
    if (global.flag[450 progress_story] == 4)
164
        con = 319;
165
    if (global.flag[450 progress_story] == 5)
166
        con = 324;
167
    if (global.flag[450 progress_story] == 6)
168
        con = 329;
169
    if (global.flag[450 progress_story] == 7)
170
        con = 334;
171
    if (global.flag[450 progress_story] == 8)
172
        con = 339;
173
    if (global.flag[450 progress_story] == 9)
174
        con = 344;
175
    if (global.flag[450 progress_story] == 10)
176
        con = 349;
177
    if (global.flag[450 progress_story] == 11)
178
        con = 354;
179
    if (global.flag[450 progress_story] == 12)
180
        con = 359;
181
    if (global.flag[450 progress_story] == 13)
182
        con = 364;
183
    if (global.flag[450 progress_story] == 14)
184
        con = 369;
185
    if (global.flag[450 progress_story] == 15)
186
        con = 374;
187
    if (global.flag[450 progress_story] == 16)
188
        con = 379;
189
    if (global.flag[450 progress_story] == 17)
190
    {
191
        con = 389;
192
        global.faceemotion = 10;
193
    }
194
}