blob: 7ff2b1011607b459eef5cd29d36b7cdf02a17eda (
plain) (
tree)
|
|
// Unequip if stat not enough
// callfunc "RequireStat", bDex, 80, EQI_HAND_R;
function script RequireStat {
.@stat = getarg(0);
.@min = getarg(1);
.@me = getarg(2);
.@val = readparam(.@stat);
// If the requirement isn't met, we set an unequip trigger.
// The item is now removed.
if (.@val < .@min)
unequip(.@me);
return;
}
|