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; }