Undertale script viewer

← back to main script listing

gml_Script_scr_weaponeq

(view raw script w/o annotations or w/e)
1
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
2
    global.at = 8 + (global.lv * 2);
3
if (argument0 >= 0)
4
    global.item[argument0] = global.weapon;
5
global.weapon = argument1;
6
if (global.weapon == 3)
7
    global.wstrength = 0;
8
if (global.weapon == 13)
9
    global.wstrength = 3;
10
if (global.weapon == 14)
11
    global.wstrength = 5;
12
if (global.weapon == 25)
13
    global.wstrength = 7;
14
if (global.weapon == 45)
15
    global.wstrength = 2;
16
if (global.weapon == 47)
17
    global.wstrength = 10;
18
if (global.weapon == 49)
19
    global.wstrength = 12;
20
if (global.weapon == 51)
21
    global.wstrength = 15;
22
if (global.weapon == 52)
23
    global.wstrength = 99;
24
if (global.armor == 48)
25
    global.wstrength += 5;
26
if (global.armor == 64)
27
    global.wstrength += 10;
28
script_execute(scr_itemnameb);
29
script_execute(scr_itemname);