Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_armorinfo_all

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

function
scr_armorinfo_all()
{ for (i = 0; i < 48; i += 1) {
scr_armorinfo(global.armor[i]);
armorname[i] = armornametemp; armordesc[i] = armordesctemp; amessage2[i] = amessage2temp; amessage3[i] = amessage3temp; amessage4[i] = amessage4temp; armorat[i] = armorattemp; armordf[i] = armordftemp; armormag[i] = armormagtemp; armorbolts[i] = armorboltstemp; armorgrazeamt[i] = armorgrazeamttemp; armorgrazesize[i] = armorgrazesizetemp; armorchar1[i] = armorchar1temp; armorchar2[i] = armorchar2temp; armorchar3[i] = armorchar3temp; armorchar4[i] = armorchar4temp; armorvalue[i] = value; armorability[i] = armorabilitytemp; armorabilityicon[i] = armorabilityicontemp; armoricon[i] = armoricontemp; armorelement[i] = armorelementtemp; armorelementamount[i] = armorelementamounttemp; } }
()
2
{
3
    for (i = 0; i < 48; i += 1)
4
    {
5
        
scr_armorinfo
scr_armorinfo

function
scr_armorinfo(arg0)
{ armorchar4temp = 1; armornametemp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_2_0"
);
armorelementtemp = 0; armorelementamounttemp = 0; switch (arg0) { case 0: armornametemp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_7_0"
);
armordesctemp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_8_0_b"
);
amessage2temp = stringsetloc(
Hey, hands off!
"Hey, hands off!", "scr_armorinfo_slash_scr_armorinfo_gml_8_0"
);
amessage3temp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_10_0"
);
amessage4temp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_11_0"
);
armorattemp = 0; armordftemp = 0; armormagtemp = 0; armorboltstemp = 0; armorgrazeamttemp = 0; armorgrazesizetemp = 0; armorchar1temp = 1; armorchar2temp = 0; armorchar3temp = 1; armorchar4temp = 1; armorabilitytemp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_22_0"
);
armorabilityicontemp = 0; armoricontemp = 0; value = 0; break; case 1: armornametemp = stringsetloc(
Amber Card
"Amber Card", "scr_armorinfo_slash_scr_armorinfo_gml_28_0"
);
armordesctemp = stringsetloc(
A thin square charm that sticks#to you, increasing defense.
"A thin square charm that sticks#to you, increasing defense.", "scr_armorinfo_slash_scr_armorinfo_gml_29_0"
);
amessage2temp = stringsetloc(
... better than nothing.
"... better than nothing.", "scr_armorinfo_slash_scr_armorinfo_gml_30_0"
);
amessage3temp = stringsetloc(
It's sticky, huh, Kris...
"It's sticky, huh, Kris...", "scr_armorinfo_slash_scr_armorinfo_gml_31_0"
);
amessage4temp = stringsetloc(
It's like a name-tag!
"It's like a name-tag!", "scr_armorinfo_slash_scr_armorinfo_gml_33_0"
);
armorattemp = 0; armordftemp = 1; armormagtemp = 0; armorboltstemp = 0; armorgrazeamttemp = 0; armorgrazesizetemp = 0; armorchar1temp = 1; armorchar2temp = 1; armorchar3temp = 1; armorabilitytemp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_43_0"
);
armorabilityicontemp = 0; armoricontemp = 4; value = 100; break; case 2: armornametemp = stringsetloc(
Dice Brace
"Dice Brace", "scr_armorinfo_slash_scr_armorinfo_gml_49_0"
);
armordesctemp = stringsetloc(
A bracelet made out of various#symbol-inscribed cubes.
"A bracelet made out of various#symbol-inscribed cubes.", "scr_armorinfo_slash_scr_armorinfo_gml_50_0"
);
amessage2temp = stringsetloc(
... okay.
"... okay.", "scr_armorinfo_slash_scr_armorinfo_gml_51_0"
);
amessage3temp = stringsetloc(
It says "Friendship!"
"It says \"Friendship!\"", "scr_armorinfo_slash_scr_armorinfo_gml_52_0"
);
amessage4temp = stringsetloc(
Hey, y-you jumbled it...
"Hey, y-you jumbled it...", "scr_armorinfo_slash_scr_armorinfo_gml_54_0"
);
armorattemp = 0; armordftemp = 2; armormagtemp = 0; armorboltstemp = 0; armorgrazeamttemp = 0; armorgrazesizetemp = 0; armorchar1temp = 1; armorchar2temp = 1; armorchar3temp = 1; armorabilitytemp = stringsetloc(
" ", "scr_armorinfo_slash_scr_armorinfo_gml_64_0"
);
armorabilityicontemp = 0; armoricontemp = 4; value = 150; break; case 3: armornametemp = stringsetloc(
Pink Ribbon
"Pink Ribbon", "scr_armorinfo_slash_scr_armorinfo_gml_70_0"
);
armordesctemp = stringsetloc(
A cute hair ribbon that increases#the range bullets increase tension.
"A cute hair ribbon that increases#the range bullets increase tension.", "scr_armorinfo_slash_scr_armorinfo_gml_71_0"
);
amessage2temp = stringsetloc(
Nope. Not in 1st grade anymore.
"Nope. Not in 1st grade anymore.", "scr_armorinfo_slash_scr_armorinfo_gml_72_0"
);
amessage3temp = stringsetloc(
Um... D-do I look cute...?
"Um... D-do I look cute...?", "scr_armorinfo_slash_scr_armorinfo_gml_73_0"
);
amessage4temp = stringsetloc(
... feels familiar.
"... feels familiar.", "scr_armorinfo_slash_scr_armorinfo_gml_75_0"
);
if (global.chapter == 2) { amessage2temp = stringsetloc(
I said NO! C'mon already!
"I said NO! C'mon already!", "scr_armorinfo_slash_scr_armorinfo_gml_78_0"
);
amessage3temp = stringsetloc(
It's nice dressing up...
"It's nice dressing up...", "scr_armorinfo_slash_scr_armorinfo_gml_79_0"
);
} armorattemp = 0; armordftemp = 1; armormagtemp = 0; armorboltstemp = 0; armorgrazeamttemp = 0; armorgrazesizetemp = 20; armorchar1temp = 1; armorchar2temp = 0; armorchar3temp = 1; armorchar4temp = 1; armorabilitytemp = stringsetloc(
GrazeArea
"GrazeArea", "scr_armorinfo_slash_scr_armorinfo_gml_91_0"
);
armorabilityicontemp = 7; armoricontemp = 4; value = 100; break; case 4: armornametemp = stringsetloc(
White Ribbon
"White Ribbon", "scr_armorinfo_slash_scr_armorinfo_gml_98_0"
);
armordesctemp = stringsetloc(
A crinkly hair ribbon that slightly#increases your defense.
"A crinkly hair ribbon that slightly#increases your defense.", "scr_armorinfo_slash_scr_armorinfo_gml_99_0"
);
amessage2temp = stringsetloc(
Nope. Not in 1st grade anymore.
"Nope. Not in 1st grade anymore.", "scr_armorinfo_slash_scr_armorinfo_gml_100_0"
);
amessage3temp = stringsetloc(
Um... D-do I look cute...?
"Um... D-do I look cute...?", "scr_armorinfo_slash_scr_armorinfo_gml_101_0"
);
if (global.chapter == 2) ...
(global.armor[i]);
6
        armorname[i] = armornametemp;
7
        armordesc[i] = armordesctemp;
8
        amessage2[i] = amessage2temp;
9
        amessage3[i] = amessage3temp;
10
        amessage4[i] = amessage4temp;
11
        armorat[i] = armorattemp;
12
        armordf[i] = armordftemp;
13
        armormag[i] = armormagtemp;
14
        armorbolts[i] = armorboltstemp;
15
        armorgrazeamt[i] = armorgrazeamttemp;
16
        armorgrazesize[i] = armorgrazesizetemp;
17
        armorchar1[i] = armorchar1temp;
18
        armorchar2[i] = armorchar2temp;
19
        armorchar3[i] = armorchar3temp;
20
        armorchar4[i] = armorchar4temp;
21
        armorvalue[i] = value;
22
        armorability[i] = armorabilitytemp;
23
        armorabilityicon[i] = armorabilityicontemp;
24
        armoricon[i] = armoricontemp;
25
        armorelement[i] = armorelementtemp;
26
        armorelementamount[i] = armorelementamounttemp;
27
    }
28
}