Currently if an actor is at max attack (for example) you can still use an attack growing item on him. Is there any way to prevent this so users aren't wasting those precious stat increasers?
Restrict Stat Increasing Items
RPG Maker VXAce SupportWhat is max attack? Aren't stat increasers used to increase the max possible?
You can always just increase the max attack...
You mean the param? Which is capped at 999 (by default)?
Actually, it is not really wasted. You can have any param above 999. When you got debuffed, or has a state that reduce the param, it will reduce from the absolute value before capping it, so an actor using 2000 ATK-raising items' effective ATK will differ from an actor who doesn't use them when debuffed with 50% ATK decrease.
Pretty sure the point is that you have a cap on your max atk (eg: for tactical reasons), but maybe some people will still try to feed the actor more atk ups.
One option is the dev saying "now you know!" while another is to reward the player's curiosity with a buzzer rather than a lost item (or having them reload from a save).
Go with the latter of Tsuki's example. lol
Exactly. At end-game, players will want to max their stats by farming items that raise parameters. If you've got an actor with 999 attack the system doesn't stop you from using those items. A simple buzzer sound instead would be appropriate.
I just threw together this script which handles it:
# Prevents player from using a parameter raising "grow" item if the stat is# already at max valueclass Game_Battler < Game_BattlerBase alias foppy_item_test item_effect_test def item_effect_test(user, item, effect) case effect.code when EFFECT_GROW self.param_base(effect.data_id) + self.param_plus(effect.data_id) < self.param_max(effect.data_id) else foppy_item_test end endendSeems to work with Yanfly's adjust limits script as well.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/restrict-stat-increasing-items.25029/