Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_gameshow_battlemanager_Create_0

(view raw script w/o annotations or w/e)
1
scr_board_battlehealth
scr_board_battlehealth

function
scr_board_battlehealth()
{ with (obj_mainchara_board) { if (name == "kris") global.hp[1] = round((myhealth / maxhealth) * global.maxhp[1]); if (name == "susie") global.hp[2] = round((myhealth / maxhealth) * global.maxhp[2]); if (name == "ralsei") global.hp[3] = round((myhealth / maxhealth) * global.maxhp[3]); } } function scr_board_boardhealth() { with (obj_mainchara_board) { if (name == "kris") { global.hp[1] = round((myhealth / maxhealth) * global.maxhp[1]); myhealth = round((global.hp[1] / global.maxhp[1]) * maxhealth); if (myhealth < 1) myhealth = 1; } if (name == "susie") { myhealth = round((global.hp[2] / global.maxhp[2]) * maxhealth); if (myhealth < 1) myhealth = 1; } if (name == "ralsei") { myhealth = round((global.hp[3] / global.maxhp[3]) * maxhealth); if (myhealth < 1) myhealth = 1; } } }
();
2
depth = 100010;
3
kris = 1185;
4
with (obj_caterpillarchara)
5
{
6
    if (name == "ralsei")
7
        other.ralsei = id;
8
    if (name == "susie")
9
        other.susie = id;
10
}
11
plpo = obj_ch3_gameshow.playerpodiums;
12
tenna = obj_actor_tenna;
13
console = obj_ch3_gameshow.gameconsole;
14
couch = obj_ch3_gameshow.couch;
15
wires = obj_ch3_gameshow.wires;
16
con = 0;
17
timer = 0;
18
encounterflag = 0;
19
kris.ignoredepth = 1;
20
susie.ignoredepth = 1;
21
ralsei.ignoredepth = 1;
22
remmove = [];
23
battlesprite = 0;
24
khealth = 0;
25
rhealth = 0;
26
shealth = 0;
27
hitcount = 0;
28
battletime = 0;
29
turns = 1;
30
lettergrade = "Z";
31
rem1 = global.hp[1];
32
rem2 = global.hp[2];
33
rem3 = global.hp[3];
34
rcon = 0;
35
rtimer = 0;
36
reachedend_draw_triangle_siner = 0;
37
snd_play_delay(snd_tensionhorn, 3, 1, 1.1);
38
snd_play_delay(snd_tensionhorn, 10, 1, 1.2);
39
global.flag[1011 gameshow_battles]++;
40
specialend = 0;
41
battleseconds = 0;
42
battleminutes = 0;
43
tpgained = 0;
44
updatehealth = 0;
45
lerptime = 15;
46
downdist = 128;