Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_bullettester_new_Create_0

(view raw script w/o annotations or w/e)
1
lastkey = 0;
2
spawntype = 0;
3
global.encounterno = 777;
4
scr_encountersetup
scr_encountersetup

function
scr_encountersetup(arg0)
{ xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); for (i = 0; i < 3; i += 1) { global.heromakex[i] = xx + 80; global.heromakey[i] = yy + 50 + (80 * i); global.monsterinstancetype[i] = obj_baseenemy; global.monstertype[i] = 1Enemy (placeholder/G-BODY); global.monstermakex[i] = xx + 500 + (20 * i); global.monstermakey[i] = yy + 40 + (90 * i); } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) global.heromakey[0] = yy + 140; if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) { global.heromakey[0] = yy + 100; global.heromakey[1] = yy + 180; } global.battlemsg[0] = stringsetloc(
* It is known.
"* It is known.", "scr_encountersetup_slash_scr_encountersetup_gml_34_0"
);
if (global.chapter == 3) { global.rank1time = 30; global.rank1turns = 4; global.rank1tp = 200; global.rank1hurtcount = 0; } var board4battleintrostring = ""; var rr = choose(0, 1, 2, 3); if (rr == 0) board4battleintrostring = stringsetloc(
* Wanna be an ACT-er...? Here's my CARD!
"* Wanna be an ACT-er...? Here's my CARD!", "scr_encountersetup_slash_scr_encountersetup_gml_52_0"
);
if (rr == 1) board4battleintrostring = stringsetloc(
* Now where the heck is my debit card?
"* Now where the heck is my debit card?", "scr_encountersetup_slash_scr_encountersetup_gml_53_0"
);
if (rr == 2) board4battleintrostring = stringsetloc(
* If you're gonna be so dramatic... then ACT!
"* If you're gonna be so dramatic... then ACT!", "scr_encountersetup_slash_scr_encountersetup_gml_54_0"
);
if (rr == 3) board4battleintrostring = stringsetloc(
* I Love TV. That's all you gotta say.
"* I Love TV. That's all you gotta say.", "scr_encountersetup_slash_scr_encountersetup_gml_55_0"
);
switch (arg0) { case 0: break; case 1: global.monsterinstancetype[0] = obj_baseenemy; global.monstertype[0] = 1Enemy (placeholder/G-BODY); global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_baseenemy; global.monstertype[1] = 1Enemy (placeholder/G-BODY); global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Test enemies showed up.
"* Test enemies showed up.", "scr_encountersetup_slash_scr_encountersetup_gml_72_0"
);
break; case 2: global.monsterinstancetype[0] = obj_lancerboss; global.monstertype[0] = 2Lancer; global.monstermakex[0] = xx + 540; global.monstermakey[0] = yy + 200; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 3: global.monsterinstancetype[0] = obj_dummyenemy; global.monstertype[0] = 3Dummy; global.monstermakex[0] = xx + 500; global.monstermakey[0] = yy + 160; if (instance_exists(obj_npc_room)) { global.monstermakex[0] = obj_npc_room.xstart; global.monstermakey[0] = obj_npc_room.ystart; } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 4: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 140; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Rudinn drew near!
"* Rudinn drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_98_0"
);
if (global.flag[500 times_rudinn_fought] >= 1) global.battlemsg[0] = stringsetloc(
* A different Rudinn from last time drew near!
"* A different Rudinn from last time drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_99_0"
);
if (global.flag[500 times_rudinn_fought] == 2) global.battlemsg[0] = stringsetloc(
* Assumedly another different Rudinn appeared!
"* Assumedly another different Rudinn appeared!", "scr_encountersetup_slash_scr_encountersetup_gml_100_0"
);
break; case 5: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_diamondenemy; global.monstertype[1] = 5Rudinn; global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* A necklace of Rudinns blocks your path.
"* A necklace of Rudinns blocks your path.", "scr_encountersetup_slash_scr_encountersetup_gml_116_0"
);
...
(777);
5
global.interact = 1;
6
with (obj_mainchara)
7
    instance_destroy();
8
with (obj_darkcontroller)
9
    instance_destroy();
10
instance_create(0, 0, obj_battlecontroller);
11
global.myfight = -1;
12
global.mnfight = 2;
13
global.turntimer = 200;
14
timer = 0;
15
go = 0;
16
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
17
instance_create(obj_growtangle.x - 6, obj_growtangle.y - 8, obj_heart);
18
if (global.tempflag[26] == 1)
19
{
20
    global.monster[0] = global.tempflag[20];
21
    global.monster[1] = global.tempflag[21];
22
    global.monster[2] = global.tempflag[22];
23
    global.monsterinstance[0].spawntype = global.tempflag[23];
24
    global.monsterinstance[1].spawntype = global.tempflag[24];
25
    global.monsterinstance[2].spawntype = global.tempflag[25];
26
}
27
else
28
{
29
    global.monster[0] = 1;
30
    global.monster[1] = 0;
31
    global.monster[2] = 0;
32
    global.monsterinstance[0].spawntype = spawntype;
33
    global.monsterinstance[1].spawntype = spawntype;
34
    global.monsterinstance[2].spawntype = spawntype;
35
    global.tempflag[26] = 1;
36
}
37
enem1 = 0;
38
enem2 = 0;
39
enem3 = 0;
40
neverendingturn = 0;
41
drawdebug = true;
42
43
enum e__VW
44
{
45
    XView,
46
    YView,
47
    WView,
48
    HView,
49
    Angle,
50
    HBorder,
51
    VBorder,
52
    HSpeed,
53
    VSpeed,
54
    Object,
55
    Visible,
56
    XPort,
57
    YPort,
58
    WPort,
59
    HPort,
60
    Camera,
61
    SurfaceID
62
}