|
1
|
function scr_levelupscr_levelup
function scr_levelup()
{
global.flag[65 times_leveled_ch2]++;
global.maxhp[1] += 2;
global.maxhp[2] += 2;
global.maxhp[3] += 2;
global.hp[1] += 2;
global.hp[2] += 2;
global.hp[3] += 2;
if ((global.flag[65 times_leveled_ch2] % 2) == 0)
global.maxhp[2] += 1;
if ((global.flag[65 times_leveled_ch2] % 10) == 0)
{
global.at[1] += 1;
global.at[2] += 1;
global.mag[2] += 1;
global.at[3] += 1;
global.mag[3] += 1;
global.flag[66 times_gained_at_ch2]++;
}
if (scr_havechar(4))
{
global.flag[919 times_noelle_leveled]++;
global.maxhp[4] += 4;
global.hp[4] += 4;
if ((global.flag[65 times_leveled_ch2] % 4) == 0)
{
global.at[4] += 1;
global.mag[4] += 1;
}
}
global.maxhp[1] = clamp(global.maxhp[1], 10, 160);
global.maxhp[2] = clamp(global.maxhp[2], 10, 190);
global.maxhp[3] = clamp(global.maxhp[3], 10, 140);
global.maxhp[4] = clamp(global.maxhp[4], 10, 999);
for (var _i = 1; _i < 5; _i++)
global.hp[_i] = min(global.hp[_i], global.maxhp[_i]);
with (obj_event_manager)
trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_19);
}
enum UnknownEnum
{
Value_0,
Value_19 = 19
} ()
|
|
2
|
{
|
|
3
|
global.flag[65 times_leveled_ch2]++;
|
|
4
|
global.maxhp[1] += 2;
|
|
5
|
global.maxhp[2] += 2;
|
|
6
|
global.maxhp[3] += 2;
|
|
7
|
global.hp[1] += 2;
|
|
8
|
global.hp[2] += 2;
|
|
9
|
global.hp[3] += 2;
|
|
10
|
if ((global.flag[65 times_leveled_ch2] % 2) == 0)
|
|
11
|
global.maxhp[2] += 1;
|
|
12
|
if ((global.flag[65 times_leveled_ch2] % 10) == 0)
|
|
13
|
{
|
|
14
|
global.at[1] += 1;
|
|
15
|
global.at[2] += 1;
|
|
16
|
global.mag[2] += 1;
|
|
17
|
global.at[3] += 1;
|
|
18
|
global.mag[3] += 1;
|
|
19
|
global.flag[66 times_gained_at_ch2]++;
|
|
20
|
}
|
|
21
|
if (scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (4))
|
|
22
|
{
|
|
23
|
global.flag[919 times_noelle_leveled]++;
|
|
24
|
global.maxhp[4] += 4;
|
|
25
|
global.hp[4] += 4;
|
|
26
|
if ((global.flag[65 times_leveled_ch2] % 4) == 0)
|
|
27
|
{
|
|
28
|
global.at[4] += 1;
|
|
29
|
global.mag[4] += 1;
|
|
30
|
}
|
|
31
|
}
|
|
32
|
global.maxhp[1] = clamp(global.maxhp[1], 10, 160);
|
|
33
|
global.maxhp[2] = clamp(global.maxhp[2], 10, 190);
|
|
34
|
global.maxhp[3] = clamp(global.maxhp[3], 10, 140);
|
|
35
|
global.maxhp[4] = clamp(global.maxhp[4], 10, 999);
|
|
36
|
for (var _i = 1; _i < 5; _i++)
|
|
37
|
global.hp[_i] = min(global.hp[_i], global.maxhp[_i]);
|
|
38
|
with (obj_event_manager)
|
|
39
|
trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_19);
|
|
40
|
}
|
|
41
|
|
|
42
|
enum UnknownEnum
|
|
43
|
{
|
|
44
|
Value_0,
|
|
45
|
Value_19 = 19
|
|
46
|
}
|