|
1
|
setup_encounter = 0;
|
|
2
|
if (global.fighting == 0)
|
|
3
|
{
|
|
4
|
if (keyboard_check_pressed(ord("1")))
|
|
5
|
global.encounterno--;
|
|
6
|
if (keyboard_check_pressed(ord("2")))
|
|
7
|
global.encounterno++;
|
|
8
|
if (keyboard_check_pressed(ord("3")))
|
|
9
|
global.encounterno -= 5;
|
|
10
|
if (keyboard_check_pressed(ord("4")))
|
|
11
|
global.encounterno += 5;
|
|
12
|
}
|
|
13
|
global.encounterno = clamp(global.encounterno, encountermin, encountermax);
|
|
14
|
if (instance_exists(obj_chaseenemy))
|
|
15
|
obj_chaseenemy.myencounter = global.encounterno;
|
|
16
|
if (global.fighting == 0)
|
|
17
|
{
|
|
18
|
if (keyboard_check_pressed(ord("6")))
|
|
19
|
{
|
|
20
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
21
|
scr_getcharscr_getchar
function scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (2);
|
|
22
|
scr_getcharscr_getchar
function scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (3);
|
|
23
|
}
|
|
24
|
if (keyboard_check_pressed(ord("7")))
|
|
25
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
26
|
if (keyboard_check_pressed(ord("8")))
|
|
27
|
{
|
|
28
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
29
|
scr_getcharscr_getchar
function scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (3);
|
|
30
|
}
|
|
31
|
if (keyboard_check_pressed(ord("9")))
|
|
32
|
{
|
|
33
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
34
|
scr_getcharscr_getchar
function scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (4);
|
|
35
|
scr_itemgetscr_itemget
function scr_itemget(arg0)
{
var __i = 0;
var loop = 1;
noroom = 0;
_pocketed = 0;
_noroominventory = 0;
global.item[12] = 999;
while (loop == 1)
{
if (global.item[__i] == 0)
{
global.item[__i] = arg0;
break;
}
if (__i == 12)
{
_noroominventory = 1;
noroom = 1;
for (var __j = 0; __j < global.flag[64 storage_size]; __j++)
{
if (global.pocketitem[__j] == 0)
{
global.pocketitem[__j] = arg0;
_pocketed = 1;
noroom = 0;
break;
}
}
break;
}
__i += 1;
}
script_execute(scr_iteminfo_all);
} (1);
|
|
36
|
}
|
|
37
|
draw_set_color(c_lime);
|
|
38
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("main");
|
|
39
|
draw_text(0, 440, string_hash_to_newline("Party: " + string(global.charname[global.char[0]]) + " " + string(global.charname[global.char[1]]) + " " + string(global.charname[global.char[2]])));
|
|
40
|
draw_text(0, 455, string_hash_to_newline("6: full party. 7:kris only. 8:kris and ralsei 9: kris + noelle"));
|
|
41
|
}
|
|
42
|
if (!instance_exists(obj_debug_xy))
|
|
43
|
{
|
|
44
|
if (global.fighting == 0)
|
|
45
|
{
|
|
46
|
scr_encountersetupscr_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" );
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_60_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" );
break;
case 6:
global.monsterinstancetype[0] = obj_diamondenemy;
global.monstertype[0] = 5Rudinn;
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 110;
global.monsterinstancetype[1] = obj_heartenemy;
global.monstertype[1] = 6Hathy;
global.monstermakex[1] = xx + 500;
global.monstermakey[1] = yy + 200;
global.monstertype[2] = 0(None);
global.battlemsg[0] = stringsetloc(* Rudinn and Hathy blocked the way!"* Rudinn and Hathy blocked the way!", "scr_encountersetup_slash_scr_encountersetup_gml_132_0" );
break;
case 7:
global.monsterinstancetype[0] = obj_smallcheckers_enemy;
global.monstertype[0] = 9C.Round;
global.monstermakex[0] = xx + 440;
... (global.encounterno);
|
|
47
|
draw_set_color(c_black);
|
|
48
|
draw_rectangle(0, 0, 80, 50, false);
|
|
49
|
draw_set_color(c_white);
|
|
50
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
51
|
draw_text(0, 0, string_hash_to_newline("EncounterNo: " + string(global.encounterno)));
|
|
52
|
for (i = 0; i < 3; i++)
|
|
53
|
{
|
|
54
|
if (global.monstertype[i] > 0)
|
|
55
|
draw_text(0, 20 + (i * 20), string_hash_to_newline(object_get_name(global.monsterinstancetype[i])));
|
|
56
|
}
|
|
57
|
draw_set_color(c_ltgray);
|
|
58
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("main");
|
|
59
|
for (j = 1; j < 5; j++)
|
|
60
|
{
|
|
61
|
scr_encountersetupscr_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" );
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_60_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" );
break;
case 6:
global.monsterinstancetype[0] = obj_diamondenemy;
global.monstertype[0] = 5Rudinn;
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 110;
global.monsterinstancetype[1] = obj_heartenemy;
global.monstertype[1] = 6Hathy;
global.monstermakex[1] = xx + 500;
global.monstermakey[1] = yy + 200;
global.monstertype[2] = 0(None);
global.battlemsg[0] = stringsetloc(* Rudinn and Hathy blocked the way!"* Rudinn and Hathy blocked the way!", "scr_encountersetup_slash_scr_encountersetup_gml_132_0" );
break;
case 7:
global.monsterinstancetype[0] = obj_smallcheckers_enemy;
global.monstertype[0] = 9C.Round;
global.monstermakex[0] = xx + 440;
... (global.encounterno + j);
|
|
62
|
for (i = 0; i < 3; i++)
|
|
63
|
{
|
|
64
|
draw_text(0, 60 + (j * 70), string_hash_to_newline("Encounter: " + string(global.encounterno + j)));
|
|
65
|
if (global.monstertype[i] > 0)
|
|
66
|
draw_text(0, 70 + (i * 10) + (j * 70), string_hash_to_newline(object_get_name(global.monsterinstancetype[i])));
|
|
67
|
}
|
|
68
|
}
|
|
69
|
draw_text(300, 0, string_hash_to_newline("Adjust EncounterNo:#1- 2+#3----- 4+++++"));
|
|
70
|
scr_encountersetupscr_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" );
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_60_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" );
break;
case 6:
global.monsterinstancetype[0] = obj_diamondenemy;
global.monstertype[0] = 5Rudinn;
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 110;
global.monsterinstancetype[1] = obj_heartenemy;
global.monstertype[1] = 6Hathy;
global.monstermakex[1] = xx + 500;
global.monstermakey[1] = yy + 200;
global.monstertype[2] = 0(None);
global.battlemsg[0] = stringsetloc(* Rudinn and Hathy blocked the way!"* Rudinn and Hathy blocked the way!", "scr_encountersetup_slash_scr_encountersetup_gml_132_0" );
break;
case 7:
global.monsterinstancetype[0] = obj_smallcheckers_enemy;
global.monstertype[0] = 9C.Round;
global.monstermakex[0] = xx + 440;
... (global.encounterno);
|
|
71
|
}
|
|
72
|
else
|
|
73
|
{
|
|
74
|
}
|
|
75
|
}
|
|
76
|
if (global.fighting == 1 && keyboard_check_pressed(ord("D")))
|
|
77
|
{
|
|
78
|
if (!i_ex(obj_danmaku_analyzer))
|
|
79
|
{
|
|
80
|
instance_create(0, 0, obj_danmaku_analyzer);
|
|
81
|
}
|
|
82
|
else
|
|
83
|
{
|
|
84
|
with (obj_danmaku_analyzer)
|
|
85
|
instance_destroy();
|
|
86
|
}
|
|
87
|
}
|