Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_get_team_name

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

function
scr_get_team_name()
{ var name = stringsetloc(
Gang
"Gang", "scr_get_team_name_slash_scr_get_team_name_gml_2_0"
);
if ((global.flag[214 team_name] == 1) == stringsetloc(
The $!$? Squad
"The $!$? Squad", "scr_get_team_name_slash_scr_get_team_name_gml_4_0"
))
{ if (global.flag[214 team_name] == 2) name = stringsetloc(
The Lancer Fan Club
"The Lancer Fan Club", "scr_get_team_name_slash_scr_get_team_name_gml_5_0"
);
} if (global.flag[214 team_name] == 3) name = stringsetloc(
The Fun Gang
"The Fun Gang", "scr_get_team_name_slash_scr_get_team_name_gml_6_0"
);
return name; }
()
2
{
3
    var name = stringsetloc(
Gang
"Gang", "scr_get_team_name_slash_scr_get_team_name_gml_2_0"
);
4
    if ((global.flag[214 team_name] == 1) == stringsetloc(
The $!$? Squad
"The $!$? Squad", "scr_get_team_name_slash_scr_get_team_name_gml_4_0"
))
5
    {
6
        if (global.flag[214 team_name] == 2)
7
            name = stringsetloc(
The Lancer Fan Club
"The Lancer Fan Club", "scr_get_team_name_slash_scr_get_team_name_gml_5_0"
);
8
    }
9
    if (global.flag[214 team_name] == 3)
10
        name = stringsetloc(
The Fun Gang
"The Fun Gang", "scr_get_team_name_slash_scr_get_team_name_gml_6_0"
);
11
    return name;
12
}