Undertale script viewer

← back to main script listing

gml_Script_scr_armoreq

(view raw script w/o annotations or w/e)
1
if (global.armor == 48)
2
    global.wstrength -= 5;
3
if (global.armor == 64)
4
    global.wstrength -= 10;
5
if (argument0 >= 0)
6
    global.item[argument0] = global.armor;
7
global.armor = argument1;
8
if (global.armor == 4)
9
    global.adef = 0;
10
if (global.armor == 12)
11
    global.adef = 3;
12
if (global.armor == 15)
13
    global.adef = 7;
14
if (global.armor == 24)
15
    global.adef = 10;
16
if (global.armor == 44)
17
    global.adef = 5;
18
if (global.armor == 46)
19
    global.adef = 11;
20
if (global.armor == 48)
21
{
22
    global.adef = 12;
23
    global.wstrength += 5;
24
}
25
if (global.armor == 50)
26
    global.adef = 15;
27
if (global.armor == 53)
28
    global.adef = 99;
29
if (global.armor == 64)
30
{
31
    global.adef = 20;
32
    global.wstrength += 10;
33
}
34
script_execute(scr_itemnameb);
35
script_execute(scr_itemname);