Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_spellinfo_all

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

function scr_spellinfo_all() { for (j = 0; j < 6; j += 1) { for (i = 0; i < 12; i += 1) { spellid = global.spell[j][i]; scr_spellinfo(spellid); global.spellname[j][i] = spellname; global.spellnameb[j][i] = spellnameb; global.spelldescb[j][i] = spelldescb; global.spelldesc[j][i] = spelldesc; global.spellcost[j][i] = cost; global.spellusable[j][i] = spellusable; global.spelltarget[j][i] = spelltarget; } } }
()
2
{
3
    for (j = 0; j < 6; j += 1)
4
    {
5
        for (i = 0; i < 12; i += 1)
6
        {
7
            spellid = global.spell[j][i];
8
            scr_spellinfo
scr_spellinfo

function scr_spellinfo(arg0) { cost = -1; spelltarget = 1; spellname = stringsetloc(
" ", "scr_spellinfo_slash_scr_spellinfo_gml_3_0"
); spellnameb = " "; spelldescb = stringsetloc(
" ", "scr_spellinfo_slash_scr_spellinfo_gml_5_0"
); spelldesc = stringsetloc(
" ", "scr_spellinfo_slash_scr_spellinfo_gml_6_0"
); spellanim = 0; spellusable = 0; spelltext = " "; switch (arg0) { case 0: spellname = stringsetloc(
" ", "scr_spellinfo_slash_scr_spellinfo_gml_14_0"
); spellnameb = " "; spelltarget = 0; cost = -1; spelldescb = stringsetloc(
None
"None", "scr_spellinfo_slash_scr_spellinfo_gml_18_0"
); break; case 1: spellname = stringsetloc(
Rude Sword
"Rude Sword", "scr_spellinfo_slash_scr_spellinfo_gml_21_0"
); spellnameb = stringsetloc(
RudeSword
"RudeSword", "scr_spellinfo_slash_scr_spellinfo_gml_22_0"
); spelldescb = stringsetloc(
Rude#damage
"Rude#damage", "scr_spellinfo_slash_scr_spellinfo_gml_24_0_b"
); spelldesc = stringsetloc(
Deals moderate Rude-elemental damage to#one foe. Depends on Attack
Magic.
"Deals moderate Rude-elemental damage to#one foe. Depends on Attack & Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_24_0"
); spelltarget = 2; cost = 125; spellusable = 0; break; case 2: spellname = stringsetloc(
Heal Prayer
"Heal Prayer", "scr_spellinfo_slash_scr_spellinfo_gml_31_0"
); spellnameb = stringsetloc(
Heal Prayer
"Heal Prayer", "scr_spellinfo_slash_scr_spellinfo_gml_32_0"
); spelldescb = stringsetloc(
Heal#ally
"Heal#ally", "scr_spellinfo_slash_scr_spellinfo_gml_34_0_b"
); spelldesc = stringsetloc(
Heavenly light restores a little HP to#one party member. Depends on Magic.
"Heavenly light restores a little HP to#one party member. Depends on Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_34_0"
); spelltarget = 1; cost = 80; usable = 0; spellusable = 0; break; case 3: spellname = stringsetloc(
Pacify
"Pacify", "scr_spellinfo_slash_scr_spellinfo_gml_42_0"
); spellnameb = stringsetloc(
Pacify
"Pacify", "scr_spellinfo_slash_scr_spellinfo_gml_43_0"
); spelldescb = stringsetloc(
Spare#TIRED foe
"Spare#TIRED foe", "scr_spellinfo_slash_scr_spellinfo_gml_45_0_b"
); spelldesc = stringsetloc(
SPARE a tired enemy by putting them to sleep.
"SPARE a tired enemy by putting them to sleep.", "scr_spellinfo_slash_scr_spellinfo_gml_45_0"
); spelltarget = 2; cost = 40; usable = 0; spellusable = 0; break; case 4: spellname = stringsetloc(
Rude Buster
"Rude Buster", "scr_spellinfo_slash_scr_spellinfo_gml_52_0"
); spellnameb = stringsetloc(
Rude Buster
"Rude Buster", "scr_spellinfo_slash_scr_spellinfo_gml_53_0"
); spelldescb = stringsetloc(
Rude#damage
"Rude#damage", "scr_spellinfo_slash_scr_spellinfo_gml_55_0_b"
); spelldesc = stringsetloc(
Deals moderate Rude-elemental damage to#one foe. Depends on Attack
Magic.
"Deals moderate Rude-elemental damage to#one foe. Depends on Attack & Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_55_0"
); spelltarget = 2; cost = 125; if (global.charweapon[2] == 7) cost = 100; spellusable = 0; break; case 5: spellname = stringsetloc(
Red Buster
"Red Buster", "scr_spellinfo_slash_scr_spellinfo_gml_64_0"
); spellnameb = stringsetloc(
Red Buster
"Red Buster", "scr_spellinfo_slash_scr_spellinfo_gml_65_0"
); spelldescb = stringsetloc(
Red#damage
"Red#damage", "scr_spellinfo_slash_scr_spellinfo_gml_67_0_b"
); spelldesc = stringsetloc(
" ", "scr_spellinfo_slash_scr_spellinfo_gml_67_0"
); spelltarget = 2; cost = 0; spellusable = 0; break; case 6: spellname = stringsetloc(
Dual Heal
"Dual Heal", "scr_spellinfo_slash_scr_spellinfo_gml_75_0"
); spellnameb = stringsetloc(
Dual Heal
"Dual Heal", "scr_spellinfo_slash_scr_spellinfo_gml_76_0"
); spelldescb = stringsetloc(
Heal All#30 HP
"Heal All#30 HP", "scr_spellinfo_slash_scr_spellinfo_gml_77_0"
); spelldesc = stringsetloc(
" ", "scr_spellinfo_slash_scr_spellinfo_gml_78_0"
); spelltarget = 0; cost = 0; spellusable = 0; break; case 7: spellname = stringsetloc(
ACT
"ACT", "scr_spellinfo_slash_scr_spellinfo_gml_86_0"
); spellnameb = stringsetloc(
ACT
"ACT", "scr_spellinfo_slash_scr_spellinfo_gml_87_0"
); spelldescb = stringsetloc(
Use#action
"Use#action", "scr_spellinfo_slash_scr_spellinfo_gml_88_0"
); spelldesc = stringsetloc(
Do all sorts of things.#It isn't magic.
"Do all sorts of things.#It isn't magic.", "scr_spellinfo_slash_scr_spellinfo_gml_89_0"
); if (global.chapter == 4) spelldesc = stringsetloc(
Execute various behaviors.#It can't be considered magic.
"Execute various behaviors.#It can't be considered magic.", "scr_spellinfo_slash_scr_spellinfo_gml_93_0"
); spelltarget = 0; cost = 0; spellusable = 0; break; case 8: spellname = stringsetloc(
SleepMist
"SleepMist", "scr_spellinfo_slash_scr_spellinfo_gml_96_0"
); spellnameb = stringsetloc(
Sleep Mist
"Sleep Mist", "scr_spellinfo_slash_scr_spellinfo_gml_97_0"
); spelldescb = stringsetloc(
Spare#TIRED foes
"Spare#TIRED foes", "scr_spellinfo_slash_scr_spellinfo_gml_98_0"
); spelldesc = stringsetloc(
A cold mist sweeps through,#sparing all TIRED enemies.
"A cold mist sweeps through,#sparing all TIRED enemies.", "scr_spellinfo_slash_scr_spellinfo_gml_99_0"
); spelltarget = 0; cost = 80; spellusable = 0; break; case 9: spellname = stringsetloc(
IceShock
"IceShock", "scr_spellinfo_slash_scr_spellinfo_gml_107_0"
); spellnameb = stringsetloc(
IceShock
"IceShock", "scr_spellinfo_slash_scr_spellinfo_gml_108_0"
); ...
(spellid);
9
            global.spellname[j][i] = spellname;
10
            global.spellnameb[j][i] = spellnameb;
11
            global.spelldescb[j][i] = spelldescb;
12
            global.spelldesc[j][i] = spelldesc;
13
            global.spellcost[j][i] = cost;
14
            global.spellusable[j][i] = spellusable;
15
            global.spelltarget[j][i] = spelltarget;
16
        }
17
    }
18
}