|
1
|
function scr_endcombat_instantscr_endcombat_instant
function scr_endcombat_instant()
{
global.fighting = 0;
with (obj_battleback)
instance_destroy();
global.flag[49 last_encounter_tp] = global.tension;
global.tension = 0;
snd_free(global.batmusic[0]);
snd_volume(global.currentsong[1], 0, 0);
global.faceaction[0] = 0;
global.faceaction[1] = 0;
global.faceaction[2] = 0;
global.battleend = 1;
global.mnfight = -1;
with (obj_battlecontroller)
{
with (battlewriter)
instance_destroy();
}
with (obj_face)
instance_destroy();
with (obj_smallface)
instance_destroy();
for (var i = 0; i < 5; i += 1)
{
if (global.hp[i] < 1)
global.hp[i] = round(global.maxhp[i] / 8);
}
with (obj_battlecontroller)
{
lastbattlewriter = 32482473284732;
instance_destroy();
}
with (obj_tensionbar)
instance_destroy();
} ()
|
|
2
|
{
|
|
3
|
global.fighting = 0;
|
|
4
|
with (obj_battleback)
|
|
5
|
instance_destroy();
|
|
6
|
global.flag[49 last_encounter_tp] = global.tension;
|
|
7
|
global.tension = 0;
|
|
8
|
snd_free(global.batmusic[0]);
|
|
9
|
snd_volume(global.currentsong[1], 0, 0);
|
|
10
|
global.faceaction[0] = 0;
|
|
11
|
global.faceaction[1] = 0;
|
|
12
|
global.faceaction[2] = 0;
|
|
13
|
global.battleend = 1;
|
|
14
|
global.mnfight = -1;
|
|
15
|
with (obj_battlecontroller)
|
|
16
|
{
|
|
17
|
with (battlewriter)
|
|
18
|
instance_destroy();
|
|
19
|
}
|
|
20
|
with (obj_face)
|
|
21
|
instance_destroy();
|
|
22
|
with (obj_smallface)
|
|
23
|
instance_destroy();
|
|
24
|
for (var i = 0; i < 5; i += 1)
|
|
25
|
{
|
|
26
|
if (global.hp[i] < 1)
|
|
27
|
global.hp[i] = round(global.maxhp[i] / 8);
|
|
28
|
}
|
|
29
|
with (obj_battlecontroller)
|
|
30
|
{
|
|
31
|
lastbattlewriter = 32482473284732;
|
|
32
|
instance_destroy();
|
|
33
|
}
|
|
34
|
with (obj_tensionbar)
|
|
35
|
instance_destroy();
|
|
36
|
}
|