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