Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_plotforce

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

function
scr_plotforce(arg0)
{ if (
scr_debug())
{ if (global.plot < arg0) { var curplot = global.plot; global.plot = arg0; debug_print("Force Plot Update, see debug"); debug_message("============================="); debug_message("Force Plot Update from " + string(curplot) + " to " + string(arg0)); debug_message("
scr_plotforce(" + string(arg0) + ") was called by " + object_get_name(object_index));
debug_message("============================="); } } }
(arg0)
2
{
3
    if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
4
    {
5
        if (global.plot < arg0)
6
        {
7
            var curplot = global.plot;
8
            global.plot = arg0;
9
            debug_print("Force Plot Update, see debug");
10
            debug_message("=============================");
11
            debug_message("Force Plot Update from " + string(curplot) + " to " + string(arg0));
12
            debug_message("
scr_plotforce
scr_plotforce

function
scr_plotforce(arg0)
{ if (
scr_debug())
{ if (global.plot < arg0) { var curplot = global.plot; global.plot = arg0; debug_print("Force Plot Update, see debug"); debug_message("============================="); debug_message("Force Plot Update from " + string(curplot) + " to " + string(arg0)); debug_message("
scr_plotforce(" + string(arg0) + ") was called by " + object_get_name(object_index));
debug_message("============================="); } } }
(" + string(arg0) + ") was called by " + object_get_name(object_index));
13
            debug_message("=============================");
14
        }
15
    }
16
}