Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_lweaponeq

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

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); }
(arg0, arg1)
2
{
3
    if (arg0 >= 0)
4
        global.litem[arg0] = global.lweapon;
5
    global.lweapon = arg1;
6
    global.lwstrength = get_lw_weapon_strength(global.lweapon);
7
    script_execute(scr_litemname);
8
}