Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_spellphase_Create_0

(view raw script w/o annotations or w/e)
1
spelltimer = 0;
2
spellmax = 40;
3
spelltotal = 0;
4
char = 0;
5
castyet = 0;
6
re_castyet = 0;
7
active = 0;
8
alarm[0]
 = 5;
gml_Object_obj_spellphase_Alarm_0.gml

for (xyz = 0; xyz < 3; xyz += 1) { using[xyz] = 0; gotspell[xyz] = 0; gotitem[xyz] = 0; if (global.charaction[xyz] == 2) { spelltotal += 1; using[xyz] = 1; gotspell[xyz] = 1; if (castyet == 0) { with (global.charinstance[xyz]) { state = 2; attacktimer = 0; } castyet = 1; char = xyz + 1;
scr_spelltext(global.charspecial[xyz], xyz);
spellwriter =
scr_battletext_default();
} } if (global.charaction[xyz] == 4) { spelltotal += 1; using[xyz] = 1; gotitem[xyz] = 1; if (castyet == 0) { with (global.charinstance[xyz]) { state = 4; attacktimer = 0; } castyet = 1; char = xyz + 1;
scr_spelltext(global.charspecial[xyz], xyz);
spellwriter =
scr_battletext_default();
} } } active = 1; global.spelldelay = 90;