|
1
|
function scr_wincombatscr_wincombat
function scr_wincombat()
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && instance_exists(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
()
|
|
2
|
{
|
|
3
|
global.myfight = 7;
|
|
4
|
global.mnfight = -1;
|
|
5
|
with (obj_battlecontroller)
|
|
6
|
victory = 1;
|
|
7
|
for (i = 0; i < 3; i += 1)
|
|
8
|
{
|
|
9
|
if (global.monster[i] == 1 && instance_exists(global.monsterinstance[i]))
|
|
10
|
{
|
|
11
|
with (global.monsterinstance[i])
|
|
12
|
scr_monsterdefeatscr_monsterdefeat
function scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
global.monstergold[3] += global.monstergold[myself];
global.monsterexp[3] += global.monsterexp[myself];
global.monster[myself] = 0;
if (global.flag[51 + myself] == 0)
{
global.flag[51 + myself] = 2;
if (global.monsterhp[myself] <= 0)
global.flag[51 + myself] = 1;
}
if (global.flag[51 + myself] == 1)
global.flag[40 violences] += 1;
if (global.flag[51 + myself] == 2)
global.flag[41 spares] += 1;
if (global.flag[51 + myself] == 3)
global.flag[42 pacifies] += 1;
if (global.flag[51 + myself] == 5)
global.flag[43 autosusie_violences] += 1;
if (scr_monsterpop() == 0)
{
_amt_add = 0;
_violenced = 0;
_spared = 0;
_pacified = 0;
for (d_i = 0; d_i < 3; d_i += 1)
{
if (global.flag[51 + d_i] != 0)
_amt_add += 1;
if (global.flag[51 + d_i] == 1)
_violenced += 1;
if (global.flag[51 + d_i] == 2)
_spared += 1;
if (global.flag[51 + d_i] == 3)
_pacified += 1;
}
if (_pacified > 0)
global.flag[50 last_encounter_end] = 3;
if (_spared > 0)
global.flag[50 last_encounter_end] = 2;
if (_violenced > 0)
global.flag[50 last_encounter_end] = 1;
}
event_user(11);
}
}
();
|
|
13
|
}
|
|
14
|
}
|
|
15
|
}
|