|
1
|
global.interact = 2;
|
|
2
|
if (global.flag[9 battle_music] == 1)
|
|
3
|
snd_volume(global.currentsong[1], 0, 20);
|
|
4
|
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_lancerboss;
global.monstertype[i] = 1Enemy (placeholder/G-BODY);
global.monstermakex[i] = xx + 540;
global.monstermakey[i] = yy + 160 + (80 * i);
}
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;
}
switch (arg0)
{
case 0:
break;
case 1:
global.monsterinstancetype[0] = obj_placeholderenemy;
global.monstertype[0] = 1Enemy (placeholder/G-BODY);
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 110;
global.monsterinstancetype[1] = obj_placeholderenemy;
global.monstertype[1] = 1Enemy (placeholder/G-BODY);
global.monstermakex[1] = xx + 500;
global.monstermakey[1] = yy + 200;
global.monstertype[2] = 0(None);
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] = ;
if (global.flag[500 times_rudinn_fought] >= 1)
global.battlemsg[0] = * A different Rudinn from last time drew near! ;
if (global.flag[500 times_rudinn_fought] == 2)
global.battlemsg[0] = * Assumedly another different Rudinn appeared! ;
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] = * A necklace of Rudinns blocks your path. ;
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] = * Rudinn and Hathy blocked the way! ;
break;
case 7:
global.monsterinstancetype[0] = obj_smallcheckers_enemy;
global.monstertype[0] = 9C.Round;
global.monstermakex[0] = xx + 440;
global.monstermakey[0] = yy + 150;
global.monstertype[1] = 0(None);
global.monstertype[2] = 0(None);
global.battlemsg[0] = * C. Round attacked violently! * (You recall Ralsei's advice to include Susie in an ACT.) ;
... (global.encounterno);
|
|
5
|
with (obj_mainchara)
|
|
6
|
visible = 0;
|
|
7
|
with (global.cinstance[0])
|
|
8
|
visible = 0;
|
|
9
|
with (global.cinstance[1])
|
|
10
|
visible = 0;
|
|
11
|
count = 0;
|
|
12
|
c[0] = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (obj_mainchara.x, obj_mainchara.y, spr_krisr_dark);
|
|
13
|
if (instance_exists(global.cinstance[0]))
|
|
14
|
{
|
|
15
|
count += 1;
|
|
16
|
c[1] = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (global.cinstance[0].x, global.cinstance[0].y, global.cinstance[0].rsprite);
|
|
17
|
if (global.cinstance[0].rsprite == spr_susier_dark)
|
|
18
|
c[1].sprite_index = spr_susier_wall;
|
|
19
|
}
|
|
20
|
if (instance_exists(global.cinstance[1]))
|
|
21
|
{
|
|
22
|
count += 1;
|
|
23
|
c[2] = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (global.cinstance[1].x, global.cinstance[1].y, global.cinstance[1].rsprite);
|
|
24
|
if (global.cinstance[1].rsprite == spr_susier_dark)
|
|
25
|
c[2].sprite_index = spr_susier_wall;
|
|
26
|
}
|
|
27
|
for (i = 0; i < (count + 1); i += 1)
|
|
28
|
{
|
|
29
|
c[i].direction = point_direction(c[i].x, c[i].y, global.heromakex[i], global.heromakey[i]);
|
|
30
|
c[i].speed = point_distance(c[i].x, c[i].y, global.heromakex[i], global.heromakey[i]) / 10;
|
|
31
|
c[i].depth = 200 - (i * 20);
|
|
32
|
}
|
|
33
|
fightcon = 1;
|
|
34
|
counttimer = 0;
|