Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_gamestart

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

function
scr_gamestart()
{ global.chapter = 3; global.darkzone = 0; global.filechoice = 0; global.plot = 0; global.truename = ""; global.othername[0] = ""; global.othername[1] = ""; global.othername[2] = ""; global.othername[3] = ""; global.othername[4] = ""; global.othername[5] = ""; global.othername[6] = ""; global.townname = stringsetloc("", "scr_gamestart_slash_scr_gamestart_gml_19_0"); global.time = 0; global.fighting = 0; global.char[0] = 1; global.char[1] = 0; global.char[2] = 0; global.gold = 0; global.xp = 0; global.lv = 1; global.inv = 0; global.invc = 1; global.charselect = -1; global.encounterno = 1; global.specialbattle = 0; global.ambush = 0; global.tension = 0; global.maxtension = 250; for (i = 0; i < 3; i += 1) { global.heromakex[i] = 100; global.heromakey[i] = 200; global.charauto[i] = 0; global.charmove[i] = 0; global.charcantarget[i] = 0; global.chardead[i] = 0; global.invincible[i] = 1; global.charaction[i] = 0; global.faceaction[i] = 0; global.charcond[i] = 0; } global.item[0] = 0; global.item[1] = 0; global.item[2] = 0; global.item[3] = 0; global.item[4] = 0; global.item[5] = 0; global.item[6] = 0; global.item[7] = 0; global.item[8] = 0; global.item[9] = 0; global.item[10] = 0; global.item[11] = 0; global.item[12] = 0; for (i = 0; i < 72; i++) global.pocketitem[i] = 0; for (i = 0; i < 48; i++) { global.weapon[i] = 0; global.armor[i] = 0; } global.keyitem[0] = 1; global.keyitem[1] = 0; global.keyitem[2] = 0; global.keyitem[3] = 0; global.keyitem[4] = 0; global.keyitem[5] = 0; global.keyitem[6] = 0; global.keyitem[7] = 0; global.keyitem[8] = 0; global.keyitem[9] = 0; global.keyitem[10] = 0; global.keyitem[11] = 0; global.keyitem[12] = 0; for (i = 0; i < 20; i += 1) { global.hp[i] = 200; global.maxhp[i] = 250; global.at[i] = 10; global.df[i] = 2; global.mag[i] = 0; global.guts[i] = 0; global.charweapon[i] = 1; global.chararmor1[i] = 0; global.chararmor2[i] = 0; global.weaponstyle[i] = 0; global.charname[i] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_72_0"
);
for (q = 0; q < 4; q += 1) { global.itemat[i][q] = 0; global.itemdf[i][q] = 0; global.itemmag[i][q] = 0; global.itembolts[i][q] = 0; global.itemgrazeamt[i][q] = 0; global.itemgrazesize[i][q] = 0; global.itemboltspeed[i][q] = 0; global.itemspecial[i][q] = 0; global.itemelement[i][q] = 0; ...
()
2
{
3
    global.chapter = 3;
4
    global.darkzone = 0;
5
    global.filechoice = 0;
6
    global.plot = 0;
7
    global.truename = "";
8
    global.othername[0] = "";
9
    global.othername[1] = "";
10
    global.othername[2] = "";
11
    global.othername[3] = "";
12
    global.othername[4] = "";
13
    global.othername[5] = "";
14
    global.othername[6] = "";
15
    global.townname = stringsetloc("", "scr_gamestart_slash_scr_gamestart_gml_19_0");
16
    global.time = 0;
17
    global.fighting = 0;
18
    global.char[0] = 1;
19
    global.char[1] = 0;
20
    global.char[2] = 0;
21
    global.gold = 0;
22
    global.xp = 0;
23
    global.lv = 1;
24
    global.inv = 0;
25
    global.invc = 1;
26
    global.charselect = -1;
27
    global.encounterno = 1;
28
    global.specialbattle = 0;
29
    global.ambush = 0;
30
    global.tension = 0;
31
    global.maxtension = 250;
32
    for (i = 0; i < 3; i += 1)
33
    {
34
        global.heromakex[i] = 100;
35
        global.heromakey[i] = 200;
36
        global.charauto[i] = 0;
37
        global.charmove[i] = 0;
38
        global.charcantarget[i] = 0;
39
        global.chardead[i] = 0;
40
        global.invincible[i] = 1;
41
        global.charaction[i] = 0;
42
        global.faceaction[i] = 0;
43
        global.charcond[i] = 0;
44
    }
45
    global.item[0] = 0;
46
    global.item[1] = 0;
47
    global.item[2] = 0;
48
    global.item[3] = 0;
49
    global.item[4] = 0;
50
    global.item[5] = 0;
51
    global.item[6] = 0;
52
    global.item[7] = 0;
53
    global.item[8] = 0;
54
    global.item[9] = 0;
55
    global.item[10] = 0;
56
    global.item[11] = 0;
57
    global.item[12] = 0;
58
    for (i = 0; i < 72; i++)
59
        global.pocketitem[i] = 0;
60
    for (i = 0; i < 48; i++)
61
    {
62
        global.weapon[i] = 0;
63
        global.armor[i] = 0;
64
    }
65
    global.keyitem[0] = 1;
66
    global.keyitem[1] = 0;
67
    global.keyitem[2] = 0;
68
    global.keyitem[3] = 0;
69
    global.keyitem[4] = 0;
70
    global.keyitem[5] = 0;
71
    global.keyitem[6] = 0;
72
    global.keyitem[7] = 0;
73
    global.keyitem[8] = 0;
74
    global.keyitem[9] = 0;
75
    global.keyitem[10] = 0;
76
    global.keyitem[11] = 0;
77
    global.keyitem[12] = 0;
78
    for (i = 0; i < 20; i += 1)
79
    {
80
        global.hp[i] = 200;
81
        global.maxhp[i] = 250;
82
        global.at[i] = 10;
83
        global.df[i] = 2;
84
        global.mag[i] = 0;
85
        global.guts[i] = 0;
86
        global.charweapon[i] = 1;
87
        global.chararmor1[i] = 0;
88
        global.chararmor2[i] = 0;
89
        global.weaponstyle[i] = 0;
90
        global.charname[i] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_72_0"
);
91
        for (q = 0; q < 4; q += 1)
92
        {
93
            global.itemat[i][q] = 0;
94
            global.itemdf[i][q] = 0;
95
            global.itemmag[i][q] = 0;
96
            global.itembolts[i][q] = 0;
97
            global.itemgrazeamt[i][q] = 0;
98
            global.itemgrazesize[i][q] = 0;
99
            global.itemboltspeed[i][q] = 0;
100
            global.itemspecial[i][q] = 0;
101
            global.itemelement[i][q] = 0;
102
            global.itemelementamount[i][q] = 0;
103
            global.charauto[i] = 0;
104
        }
105
        for (j = 0; j < 12; j += 1)
106
            global.spell[i][j] = 0;
107
    }
108
    global.boltspeed = 100;
109
    global.grazeamt = 100;
110
    global.grazesize = 100;
111
    
scr_initialize_charnames
scr_initialize_charnames

function
scr_initialize_charnames()
{ global.lcharname = stringsetloc(
Kris
"Kris", "scr_gamestart_slash_scr_gamestart_gml_396_0"
);
global.charname[0] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_101_0_b"
);
global.charname[1] = stringsetloc(
Kris
"Kris", "scr_gamestart_slash_scr_gamestart_gml_99_0"
);
global.charname[2] = stringsetloc(
Susie
"Susie", "scr_gamestart_slash_scr_gamestart_gml_100_0"
);
global.charname[3] = stringsetloc(
Ralsei
"Ralsei", "scr_gamestart_slash_scr_gamestart_gml_101_0"
);
global.charname[4] = stringsetloc(
Noelle
"Noelle", "scr_gamestart_slash_scr_gamestart_gml_105_0"
);
}
();
112
    for (i = 0; i < 9999; i += 1)
113
        global.flag[i] = 0;
114
    global.charweapon[0] = 0;
115
    global.chararmor1[0] = 0;
116
    global.chararmor2[0] = 0;
117
    global.hp[0] = 0;
118
    global.maxhp[0] = 0;
119
    if (global.chapter == 1)
120
    {
121
        global.hp[1] = 90;
122
        global.maxhp[1] = 90;
123
        global.at[1] = 10;
124
        global.charweapon[2] = 2;
125
        global.hp[2] = 110;
126
        global.maxhp[2] = 110;
127
        global.at[2] = 14;
128
        global.mag[2] = 1;
129
        global.charweapon[3] = 3;
130
        global.hp[3] = 70;
131
        global.maxhp[3] = 70;
132
        global.at[3] = 8;
133
        global.mag[3] = 7;
134
    }
135
    if (global.chapter == 2)
136
    {
137
        global.maxhp[1] = 120;
138
        global.hp[1] = global.maxhp[1];
139
        global.at[1] = 12;
140
        global.chararmor1[1] = 1;
141
        global.chararmor2[1] = 1;
142
        global.charweapon[2] = 2;
143
        global.maxhp[2] = 140;
144
        global.hp[2] = global.maxhp[2];
145
        global.at[2] = 16;
146
        global.mag[2] = 1;
147
        global.chararmor1[2] = 1;
148
        global.chararmor2[2] = 1;
149
        global.charweapon[3] = 3;
150
        global.maxhp[3] = 100;
151
        global.hp[3] = global.maxhp[3];
152
        global.at[3] = 10;
153
        global.mag[3] = 9;
154
        global.chararmor1[3] = 1;
155
        global.chararmor2[3] = 4;
156
        global.charweapon[4] = 12;
157
        global.chararmor1[4] = 14;
158
        global.chararmor2[4] = 22;
159
        global.hp[4] = 90;
160
        global.maxhp[4] = 90;
161
        global.at[4] = 3;
162
        global.mag[4] = 11;
163
        global.df[4] = 1;
164
    }
165
    if (global.chapter == 3)
166
    {
167
        global.maxhp[1] = 160;
168
        global.hp[1] = global.maxhp[1];
169
        global.at[1] = 14;
170
        global.charweapon[1] = 16;
171
        global.chararmor1[1] = 1;
172
        global.chararmor2[1] = 10;
173
        global.charweapon[2] = 2;
174
        global.maxhp[2] = 190;
175
        global.hp[2] = global.maxhp[2];
176
        global.at[2] = 18;
177
        global.mag[2] = 2;
178
        global.charweapon[2] = 17;
179
        global.chararmor1[2] = 1;
180
        global.chararmor2[2] = 10;
181
        global.charweapon[3] = 3;
182
        global.maxhp[3] = 140;
183
        global.hp[3] = global.maxhp[3];
184
        global.at[3] = 12;
185
        global.mag[3] = 11;
186
        global.charweapon[3] = 18;
187
        global.chararmor1[3] = 1;
188
        global.chararmor2[3] = 10;
189
    }
190
    global.spell[1][0] = 7;
191
    global.spell[2][0] = 4;
192
    global.spell[2][1] = 11;
193
    global.spell[3][0] = 3;
194
    global.spell[3][1] = 2;
195
    global.spell[4][0] = 2;
196
    global.spell[4][1] = 8;
197
    global.spell[4][2] = 9;
198
    
scr_weaponinfo_mine
scr_weaponinfo_mine

function
scr_weaponinfo_mine()
{ for (i = 0; i < 6; i += 1) {
scr_weaponinfo(global.charweapon[i]);
charweaponname[i] = weaponnametemp; charweapondesc[i] = weapondesctemp; charweaponat[i] = weaponattemp; charweapondf[i] = weapondftemp; charweaponmag[i] = weaponmagtemp; charweaponbolts[i] = weaponboltstemp; charweaponstyle[i] = weaponstyletemp; charweapongrazeamt[i] = weapongrazeamttemp; charweapongrazesize[i] = weapongrazesizetemp; charweaponability[i] = weaponabilitytemp; charweaponabilityicon[i] = weaponabilityicontemp; charweaponicon[i] = weaponicontemp; global.itemat[i][0] = weaponattemp; global.itemdf[i][0] = weapondftemp; global.itemmag[i][0] = weaponmagtemp; global.itembolts[i][0] = weaponboltstemp; global.itemgrazeamt[i][0] = weapongrazeamttemp; global.itemgrazesize[i][0] = weapongrazesizetemp; } }
();
199
    
scr_armorinfo_mine
scr_armorinfo_mine

function
scr_armorinfo_mine()
{ for (i = 0; i < 6; i += 1) {
scr_armorinfo(global.chararmor1[i]);
chararmor1name[i] = armornametemp; chararmor1desc[i] = armordesctemp; chararmor1at[i] = armorattemp; chararmor1df[i] = armordftemp; chararmor1mag[i] = armormagtemp; chararmor1bolts[i] = armorboltstemp; chararmor1grazeamt[i] = armorgrazeamttemp; chararmor1grazesize[i] = armorgrazesizetemp; chararmor1ability[i] = armorabilitytemp; chararmor1abilityicon[i] = armorabilityicontemp; chararmor1icon[i] = armoricontemp; chararmor1element[i] = armorelementtemp; chararmor1elementamount[i] = armorelementamounttemp; global.itemat[i][1] = armorattemp; global.itemdf[i][1] = armordftemp; global.itemmag[i][1] = armormagtemp; global.itembolts[i][1] = armorboltstemp; global.itemgrazeamt[i][1] = armorgrazeamttemp; global.itemgrazesize[i][1] = armorgrazesizetemp; global.itemelement[i][1] = armorelementtemp; global.itemelementamount[i][1] = armorelementamounttemp;
scr_armorinfo(global.chararmor2[i]);
chararmor2name[i] = armornametemp; chararmor2desc[i] = armordesctemp; chararmor2at[i] = armorattemp; chararmor2df[i] = armordftemp; chararmor2mag[i] = armormagtemp; chararmor2bolts[i] = armorboltstemp; chararmor2grazeamt[i] = armorgrazeamttemp; chararmor2grazesize[i] = armorgrazesizetemp; chararmor2ability[i] = armorabilitytemp; chararmor2abilityicon[i] = armorabilityicontemp; chararmor2icon[i] = armoricontemp; chararmor2element[i] = armorelementtemp; chararmor2elementamount[i] = armorelementamounttemp; global.itemat[i][2] = armorattemp; global.itemdf[i][2] = armordftemp; global.itemmag[i][2] = armormagtemp; global.itembolts[i][2] = armorboltstemp; global.itemgrazeamt[i][2] = armorgrazeamttemp; global.itemgrazesize[i][2] = armorgrazesizetemp; global.itemelement[i][2] = armorelementtemp; global.itemelementamount[i][2] = armorelementamounttemp; } }
();
200
    
scr_iteminfo_all
scr_iteminfo_all

function
scr_iteminfo_all()
{ for (i = 0; i < 12; i += 1) { itemid = global.item[i];
scr_iteminfo(itemid);
global.itemnameb[i] = itemnameb; global.itemdescb[i] = itemdescb; global.itemvalue[i] = value; global.itemusable[i] = usable; } }
();
201
    global.grazetotal = 0;
202
    global.grazeturn = 0;
203
    for (i = 0; i < 3; i += 1)
204
    {
205
        global.monstermakex[i] = 500;
206
        global.monstermakey[i] = 240;
207
        global.monsterinstancetype[i] = 2283728;
208
        global.monster[i] = 1;
209
        global.monstername[i] = stringsetloc(
ECHIDNA
"ECHIDNA", "scr_gamestart_slash_scr_gamestart_gml_231_0"
);
210
        global.monstertype[i] = 1Enemy (placeholder/G-BODY);
211
        global.monsterat[i] = 3;
212
        global.monsterdf[i] = 2;
213
        global.monsterhp[i] = 20;
214
        global.monstermaxhp[i] = 20;
215
        global.sparepoint[i] = 0;
216
        global.monsterattackname[i] = " ";
217
    }
218
    global.bmenuno = 0;
219
    for (i = 0; i < 20; i += 1)
220
    {
221
        for (j = 0; j < 20; j += 1)
222
            global.bmenucoord[i][j] = 0;
223
    }
224
    global.myfight = 0;
225
    global.mnfight = 0;
226
    draw_set_color(c_white);
227
    global.fc = 0;
228
    global.fe = 0;
229
    global.typer = 5;
230
    global.battletyper = 4;
231
    global.msg = " ";
232
    global.msc = 0;
233
    global.msgno = 0;
234
    for (i = 0; i < 10; i += 1)
235
    {
236
        global.writersnd[i] = snd_noise;
237
        global.writerimg[i] = spr_btact;
238
        global.writerobj[i] = obj_funnytext;
239
        global.writerobjsettinga[i] = 0;
240
        global.writerobjsettingb[i] = 0;
241
        global.writerobjx[i] = 0;
242
        global.writerobjy[i] = 0;
243
        global.smdir[i] = 90;
244
        global.smspeed[i] = 2;
245
        global.smsprite[i] = spr_smallface_s0;
246
        global.smalarm[i] = 20;
247
        global.smtype[i] = 0;
248
        global.smxx[i] = 100;
249
        global.smyy[i] = 110;
250
        global.smimage[i] = 0;
251
        global.smimagespeed[i] = 0;
252
        global.sminstance[i] = 4384738473;
253
        global.smcolor[i] = c_white;
254
        global.smstring[i] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_282_0"
);
255
    }
256
    global.smalarm[1] = 15;
257
    global.smyy[1] = 70;
258
    global.smxx[1] = 700;
259
    global.smdir[1] = 180;
260
    global.smspeed[1] = 40;
261
    global.smtype[1] = 3;
262
    global.smsprite[1] = spr_smallface_a2;
263
    global.smcolor[1] = c_white;
264
    global.smstring[1] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_293_0"
);
265
    for (i = 0; i < 100; i += 1)
266
        global.msg[i] = stringsetloc(
Close MessageClose Message
"%%", "scr_gamestart_slash_scr_gamestart_gml_297_0"
);
267
    global.msg[0] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_300_0"
);
268
    global.msg[1] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_303_0"
);
269
    global.msg[2] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_305_0"
);
270
    global.msg[3] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_306_0"
);
271
    global.msg[4] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_307_0"
);
272
    global.currentsong[0] = snd_nosound;
273
    global.currentsong[1] = snd_nosound;
274
    global.batmusic[0] = snd_nosound;
275
    global.batmusic[1] = snd_nosound;
276
    global.fc = 0;
277
    global.fe = 0;
278
    global.choice = -1;
279
    global.seriousbattle = 0;
280
    global.turntimer = 0;
281
    global.mnfight = 0;
282
    global.myfight = 0;
283
    global.interact = 0;
284
    global.entrance = 0;
285
    for (i = 0; i < 9; i += 1)
286
    {
287
        global.litem[i] = 0;
288
        global.litemname[i] = "";
289
        global.phone[i] = 0;
290
        global.phonename[i] = stringsetloc("", "scr_gamestart_slash_scr_gamestart_gml_341_0");
291
    }
292
    for (i = 0; i < 20; i += 1)
293
        global.menucoord[i] = 0;
294
    for (i = 0; i < 100; i += 1)
295
        global.msg[i] = stringsetloc(
" ", "scr_gamestart_slash_scr_gamestart_gml_353_0"
);
296
    global.choicemsg[0] = stringsetloc(
Yes
"Yes", "scr_gamestart_slash_scr_gamestart_gml_356_0_b"
);
297
    global.choicemsg[1] = stringsetloc(
No
"No", "scr_gamestart_slash_scr_gamestart_gml_357_0"
);
298
    global.choicemsg[2] = stringsetloc(
Maybe
"Maybe", "scr_gamestart_slash_scr_gamestart_gml_358_0"
);
299
    global.choicemsg[3] = stringsetloc(
Don't know
"Don't know", "scr_gamestart_slash_scr_gamestart_gml_359_0"
);
300
    global.litem[0] = 0;
301
    global.litemname[0] = " ";
302
    global.phone[0] = 201;
303
    global.phonename[0] = stringsetloc(
Home
"Home", "scr_gamestart_slash_scr_gamestart_gml_356_0"
);
304
    global.lcharname = stringsetloc(
Kris
"Kris", "scr_gamestart_slash_scr_gamestart_gml_396_0"
);
305
    global.lweapon = 2;
306
    global.larmor = 3;
307
    global.lxp = 0;
308
    global.llv = 1;
309
    global.lgold = 2;
310
    global.lhp = 20;
311
    global.lmaxhp = 20;
312
    global.lat = 10;
313
    global.ldf = 10;
314
    global.lwstrength = 1;
315
    global.ladef = 0;
316
    global.facing = 0;
317
    global.flag[15 sound_volume] = 1;
318
    global.flag[16 music_volume] = 0.85;
319
    global.flag[17 audio_volume] = 0.6;
320
    for (i = 0; i < 10; i += 1)
321
    {
322
        global.input_pressed[i] = 0;
323
        global.input_held[i] = 0;
324
        global.input_released[i] = 0;
325
    }
326
    global.flag[220 thrash_machine_head] = choose(0, 1, 2, 3);
327
    global.flag[221 thrash_machine_body] = choose(0, 1, 2, 3);
328
    global.flag[222 thrash_machine_shoe] = choose(0, 1, 2, 3);
329
    global.flag[223 thrash_head_color] = floor(random(31));
330
    global.flag[224 thrash_body_color] = floor(random(31));
331
    global.flag[225 thrash_shot_color] = floor(random(31));
332
    if (global.chapter >= 2)
333
    {
334
        global.flag[605 recruit_rudinn] = 1;
335
        global.flag[606 recruit_hathy] = 1;
336
        global.flag[611 recruit_ponman] = 1;
337
        global.flag[613 recruit_rabbick] = 1;
338
        global.flag[614 recruit_bloxer] = 1;
339
        global.flag[615 recruit_jigsaw] = 1;
340
        global.flag[622 recruit_rudinn_ranger] = 1;
341
        global.flag[623 recruit_head_hathy] = 1;
342
        global.flag[800 cafe_topleft] = 15;
343
        global.flag[801 cafe_topright] = 5;
344
        global.flag[802 cafe_bottomleft] = 6;
345
        global.flag[803 cafe_bottomright] = 5;
346
    }
347
    if (global.chapter >= 3)
348
    {
349
        global.flag[457 spared_berdly] = 1;
350
        global.flag[632 recruit_tasque] = 1;
351
        global.flag[633 recruit_plugboy] = 1;
352
        global.flag[636 recruit_butler] = 1;
353
        global.flag[642 recruit_task_manager] = 1;
354
    }
355
    
scr_gamestart_chapter_override
scr_gamestart_chapter_override

function
scr_gamestart_chapter_override()
{ global.plot = 0; global.char[0] = 1; global.char[1] = 0; global.char[2] = 0;
scr_litemremove(1);
scr_litemremove(4);
scr_litemremove(8);
scr_litemremove(9);
scr_litemremove(10);
global.phone[1] = 0; global.phone[2] = 0;
scr_keyitemremove(2);
scr_keyitemremove(3);
scr_keyitemremove(4);
scr_keyitemremove(5);
scr_keyitemremove(6);
scr_keyitemremove(7);
scr_keyitemremove(8);
scr_keyitemremove(9);
scr_keyitemremove(10);
scr_keyitemremove(11);
scr_keyitemremove(12);
scr_keyitemremove(14);
scr_keyitemremove(15);
scr_itemremove(4);
if (global.flag[64 storage_size] < 24) global.flag[64 storage_size] = 24; if (global.chapter == 3) { global.flag[1173 rank_board_1] = 0; global.flag[1174 rank_board_2] = 0; global.flag[1194 cooking_best_rank] = 0; global.flag[1196 raise_bat_hirank] = 0; global.flag[1198 suziezilla_best_rank] = 0; for (var i = 0; i < 20; i++) global.battlegrade[i] = "Z"; global.swordboardeath = 0; global.maxhp[1] = 160; global.hp[1] = global.maxhp[1]; global.at[1] = 14; global.maxhp[2] = 190; global.hp[2] = global.maxhp[2]; global.at[2] = 18; global.mag[2] = 2; global.maxhp[3] = 140; global.hp[3] = global.maxhp[3]; global.at[3] = 12; global.mag[3] = 11; scr_funnytext_init_sounds(); } if (global.chapter > 2) { global.flag[7 disable_menu?] = 0; global.flag[9 battle_music] = 1; global.flag[10 wrist_protector] = 1; global.flag[16 music_volume] = 0.85; global.flag[20 other_text_command] = 0; global.flag[21 door_freeze_timer] = 0; global.flag[31 disable_loud_steps] = 1; global.flag[32 hide_equip_comments] = 0; } }
();
356
    
scr_spellinfo_all
scr_spellinfo_all

function
scr_spellinfo_all()
{ for (j = 0; j < 6; j += 1) { for (i = 0; i < 12; i += 1) { spellid = global.spell[j][i];
scr_spellinfo(spellid);
global.spellname[j][i] = spellname; global.spellnameb[j][i] = spellnameb; global.spelldescb[j][i] = spelldescb; global.spelldesc[j][i] = spelldesc; global.spellcost[j][i] = cost; global.spellusable[j][i] = spellusable; global.spelltarget[j][i] = spelltarget; } } }
();
357
    
scr_weaponinfo_mine
scr_weaponinfo_mine

function
scr_weaponinfo_mine()
{ for (i = 0; i < 6; i += 1) {
scr_weaponinfo(global.charweapon[i]);
charweaponname[i] = weaponnametemp; charweapondesc[i] = weapondesctemp; charweaponat[i] = weaponattemp; charweapondf[i] = weapondftemp; charweaponmag[i] = weaponmagtemp; charweaponbolts[i] = weaponboltstemp; charweaponstyle[i] = weaponstyletemp; charweapongrazeamt[i] = weapongrazeamttemp; charweapongrazesize[i] = weapongrazesizetemp; charweaponability[i] = weaponabilitytemp; charweaponabilityicon[i] = weaponabilityicontemp; charweaponicon[i] = weaponicontemp; global.itemat[i][0] = weaponattemp; global.itemdf[i][0] = weapondftemp; global.itemmag[i][0] = weaponmagtemp; global.itembolts[i][0] = weaponboltstemp; global.itemgrazeamt[i][0] = weapongrazeamttemp; global.itemgrazesize[i][0] = weapongrazesizetemp; } }
();
358
    
scr_armorinfo_mine
scr_armorinfo_mine

function
scr_armorinfo_mine()
{ for (i = 0; i < 6; i += 1) {
scr_armorinfo(global.chararmor1[i]);
chararmor1name[i] = armornametemp; chararmor1desc[i] = armordesctemp; chararmor1at[i] = armorattemp; chararmor1df[i] = armordftemp; chararmor1mag[i] = armormagtemp; chararmor1bolts[i] = armorboltstemp; chararmor1grazeamt[i] = armorgrazeamttemp; chararmor1grazesize[i] = armorgrazesizetemp; chararmor1ability[i] = armorabilitytemp; chararmor1abilityicon[i] = armorabilityicontemp; chararmor1icon[i] = armoricontemp; chararmor1element[i] = armorelementtemp; chararmor1elementamount[i] = armorelementamounttemp; global.itemat[i][1] = armorattemp; global.itemdf[i][1] = armordftemp; global.itemmag[i][1] = armormagtemp; global.itembolts[i][1] = armorboltstemp; global.itemgrazeamt[i][1] = armorgrazeamttemp; global.itemgrazesize[i][1] = armorgrazesizetemp; global.itemelement[i][1] = armorelementtemp; global.itemelementamount[i][1] = armorelementamounttemp;
scr_armorinfo(global.chararmor2[i]);
chararmor2name[i] = armornametemp; chararmor2desc[i] = armordesctemp; chararmor2at[i] = armorattemp; chararmor2df[i] = armordftemp; chararmor2mag[i] = armormagtemp; chararmor2bolts[i] = armorboltstemp; chararmor2grazeamt[i] = armorgrazeamttemp; chararmor2grazesize[i] = armorgrazesizetemp; chararmor2ability[i] = armorabilitytemp; chararmor2abilityicon[i] = armorabilityicontemp; chararmor2icon[i] = armoricontemp; chararmor2element[i] = armorelementtemp; chararmor2elementamount[i] = armorelementamounttemp; global.itemat[i][2] = armorattemp; global.itemdf[i][2] = armordftemp; global.itemmag[i][2] = armormagtemp; global.itembolts[i][2] = armorboltstemp; global.itemgrazeamt[i][2] = armorgrazeamttemp; global.itemgrazesize[i][2] = armorgrazesizetemp; global.itemelement[i][2] = armorelementtemp; global.itemelementamount[i][2] = armorelementamounttemp; } }
();
359
    audio_set_master_gain(0, global.flag[17 audio_volume]);
360
    global.cinstance[0] = 4854845464869464;
361
    global.cinstance[1] = 48548454648694644;
362
    global.cinstance[2] = 48548454648694649;
363
}