Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_flag_set

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

function scr_flag_set(arg0, arg1) { global.flag[arg0] = arg1; if (scr_debug()) show_debug_message("*** flag [" + string(arg0) + "] updated: " + string(arg1) + " | " + scr_flag_name_get(arg0)); } function scr_setflag(arg0, arg1) { scr_flag_set(arg0, arg1); }
(arg0, arg1)
2
{
3
    global.flag[arg0] = arg1;
4
    if (scr_debug
scr_debug

function scr_debug() { if (global.debug == 1) return 1; }
())
5
        show_debug_message("*** flag [" + string(arg0) + "] updated: " + string(arg1) + " | " + scr_flag_name_get(arg0));
6
}
7
8
function scr_setflag(arg0, arg1)
9
{
10
    scr_flag_set
scr_flag_set

function scr_flag_set(arg0, arg1) { global.flag[arg0] = arg1; if (scr_debug()) show_debug_message("*** flag [" + string(arg0) + "] updated: " + string(arg1) + " | " + scr_flag_name_get(arg0)); } function scr_setflag(arg0, arg1) { scr_flag_set(arg0, arg1); }
(arg0, arg1);
11
}