Deltarune (Chapter 1) 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 < 4; 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 < 4; 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 = " "; spellnameb = " "; spelldescb = " "; spelldesc = " "; spellanim = 0; spellusable = 0; spelltext = " "; switch (arg0) { case 0: spellname = " "; spellnameb = " "; spelltarget = 0; cost = -1; spelldescb =
None
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_18_0")
;
break; case 1: spellname =
Rude Sword
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_21_0")
;
spellnameb =
RudeSword
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_22_0")
;
spelldescb =
Rude#Damage#
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_23_0")
;
spelldesc =
Deals moderate Rude-elemental damage to#one foe. Depends on Attack
Magic.
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_24_0")
;
spelltarget = 2; cost = 125; spellusable = 0; break; case 2: spellname =
Heal Prayer
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_31_0")
;
spellnameb =
Heal Prayer
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_32_0")
;
spelldescb =
Heal#Ally
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_33_0")
;
spelldesc =
Heavenly light restores a little HP to#one party member. Depends on Magic.
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_34_0")
;
spelltarget = 1; cost = 80; usable = 0; spellusable = 1; break; case 3: spellname =
Pacify
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_42_0")
;
spellnameb =
Pacify
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_43_0")
;
spelldescb =
Spare#TIRED foe
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_44_0")
;
spelldesc =
SPARE a tired enemy by putting them to sleep.
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_45_0")
;
spelltarget = 2; cost = 40; usable = 0; spellusable = 0; break; case 4: spellname =
Rude Buster
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_52_0")
;
spellnameb =
Rude Buster
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_53_0")
;
spelldescb =
Rude#Damage#
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_54_0")
;
spelldesc =
Deals moderate Rude-elemental damage to#one foe. Depends on Attack
Magic.
scr_84_get_lang_string("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 =
Red Buster
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_64_0")
;
spellnameb =
Red Buster
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_65_0")
;
spelldescb =
Red#Damage#
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_66_0")
;
spelldesc = " "; spelltarget = 2; cost = 0; spellusable = 0; break; case 6: spellname =
Dual Heal
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_75_0")
;
spellnameb =
Dual Heal
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_76_0")
;
spelldescb =
Heal All#30 HP
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_77_0")
;
spelldesc = " "; spelltarget = 0; cost = 0; spellusable = 0; break; case 7: spellname =
ACT
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_86_0")
;
spellnameb =
ACT
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_87_0")
;
spelldescb =
Use#action
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_88_0")
;
spelldesc =
Do all sorts of things.#It isn't magic.
scr_84_get_lang_string("scr_spellinfo_slash_scr_spellinfo_gml_89_0")
;
spelltarget = 0; cost = 0; spellusable = 0; break; } }
(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
}