Undertale script viewer

← back to main script listing

gml_Script_SCR_GAMESTART

(view raw script w/o annotations or w/e)
1
randomize();
2
audio_channel_num(128);
3
global.awfultest = 0;
4
global.steam_int = 0;
5
if (steam_initialised())
6
{
7
    global.steam_int = 1;
8
    if (steam_file_exists("system_information_962"))
9
    {
10
        exd = file_text_open_write("system_information_962");
11
        file_text_write_string(exd, "a");
12
        file_text_close(exd);
13
    }
14
    if (steam_file_exists("system_information_963"))
15
    {
16
        exd = file_text_open_write("system_information_963");
17
        file_text_write_string(exd, "b");
18
        file_text_close(exd);
19
        if (file_exists("system_information_962"))
20
            file_delete("system_information_962");
21
        if (steam_file_exists("system_information_962"))
22
            steam_file_delete("system_information_962");
23
    }
24
}
25
global.debug = 0;
26
global.hp = 20;
27
global.maxhp = 20;
28
global.en = 20;
29
global.maxen = 20;
30
global.at = 10;
31
global.df = 10;
32
global.adef = 0;
33
global.sp = 4;
34
global.asp = 4;
35
global.hb = 5;
36
global.gt = 5;
37
global.km = 0;
38
global.ph = 0;
39
global.gold = 0;
40
global.xp = 0;
41
global.lv = 1;
42
global.area = 0;
43
global.charname = "CHARA";
44
for (i = 0; i < 8; i += 1)
45
{
46
    global.item[i] = 0;
47
    global.spell[i] = 1;
48
    global.bulletvariable[i] = 0;
49
    global.menuno = -1;
50
    global.menucoord[i] = 0;
51
    global.bmenuno = 0;
52
    global.bmenucoord[i] = 0;
53
}
54
for (i = 0; i < 24; i += 1)
55
    global.areapop[i] = 0;
56
for (i = 0; i < 99; i += 1)
57
    global.msg[i] = "%%%";
58
global.area = 0;
59
for (i = 0; i < 512; i += 1)
60
    global.flag[i] = 0;
61
global.flag[300 dimensional_box_A_1] = 14;
62
global.flag[301 dimensional_box_A_2] = 0;
63
global.flag[302 dimensional_box_A_3] = 0;
64
global.flag[303 dimensional_box_A_4] = 0;
65
global.flag[304 dimensional_box_A_5] = 0;
66
global.flag[512 choice_left_toriel] = 0;
67
global.idealborder[0] = 0;
68
global.idealborder[1] = 0;
69
global.idealborder[2] = 0;
70
global.idealborder[3] = 0;
71
global.plot = 0;
72
global.currentroom = room_start;
73
for (i = 0; i < 3; i += 1)
74
{
75
    global.monstername[i] = "Error";
76
    global.monsterhp[i] = 50;
77
    global.monstermaxhp[i] = 50;
78
    global.monsterdef[i] = 0;
79
    global.xpreward[i] = 0;
80
    global.goldreward[i] = 0;
81
    global.itemrewardid[i] = 0;
82
    global.itemrewardchance[i] = 0;
83
    global.monster[i] = 0;
84
    global.attacker[i] = 0;
85
    global.mnpwr[i] = 0;
86
    global.bulletpwr[i] = 0;
87
    global.hurtanim[i] = 0;
88
}
89
global.xpreward[3] = 0;
90
global.goldreward[3] = 0;
91
global.battlegroup = 3;
92
global.turntimer = 0;
93
global.talked = 0;
94
global.inv = 20;
95
global.invc = 0;
96
global.turnmax = 0;
97
global.myfight = 0;
98
global.mnfight = 0;
99
global.incombat = 0;
100
global.firingrate = 14;
101
global.border = 0;
102
global.turn = 0;
103
global.actfirst = 0;
104
global.extraintro = 0;
105
global.mytarget = 0;
106
global.confirm = "ord('z')";
107
global.damagetimer = 90;
108
global.attacktype = 1;
109
global.wstrength = 0;
110
global.pwr = 0;
111
global.attackspeed = 11;
112
global.attackspeedr = 2;
113
global.wstrength = 0;
114
global.kills = 0;
115
global.specialbattle = 0;
116
global.batmusic = 43872483278;
117
global.myview = 0;
118
global.hshake = 0;
119
global.vshake = 0;
120
global.shakespeed = 0;
121
global.encounter = 0;
122
global.facing = 0;
123
global.phasing = 0;
124
global.choices = 0;
125
global.interact = 0;
126
global.viewpan = 0;
127
global.inbattle = 0;
128
global.facechoice = 0;
129
global.faceemotion = 0;
130
global.seriousbattle = 0;
131
global.mercy = 0;
132
global.item[0] = 0;
133
global.item[1] = 0;
134
global.item[2] = 0;
135
global.item[3] = 0;
136
global.item[4] = 0;
137
global.item[5] = 0;
138
global.item[6] = 0;
139
global.item[7] = 0;
140
global.item[8] = 0;
141
global.weapon = 3;
142
global.armor = 4;
143
global.phone[0] = 0;
144
global.phone[1] = 0;
145
global.phone[2] = 0;
146
global.phone[3] = 0;
147
global.phone[4] = 0;
148
global.phone[5] = 0;
149
global.phone[6] = 0;
150
global.phone[7] = 0;
151
global.phone[8] = 0;
152
global.menuchoice[0] = 1;
153
global.menuchoice[1] = 1;
154
global.menuchoice[2] = 0;
155
global.menuchoice[3] = 0;
156
global.choice = -1;
157
global.lastsavedtime = 0;
158
global.lastsavedkills = 0;
159
global.lastsavedlv = 0;
160
global.filechoice = 0;
161
global.dontfade = 0;
162
global.entrance = 0;
163
global.currentsong = -1;
164
global.currentsong2 = -1;
165
global.batmusic = -1;
166
global.typer = 5;
167
global.msc = 0;
168
global.hardmode = 0;