summaryrefslogblamecommitdiff
path: root/npc/items/require_stat.txt
blob: cd274b62ddf7d4ead48a0bf822f18cab9817048e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                               
function	script	RequireStat	{
    @bStatVal = @bStat;
    // If the requirement isn't met, we set an unequip trigger.
    // The item is now removed.
    if (@bStat < @minbStatVal)
        goto L_Unequip;
    return;

L_Unequip:
    callfunc "UnequipLater";
    return;
}