How to prevent certain items to be used in boss battles

Hi everyone,


I need your help with something:


I want some items to be unusable in boss battles, because they would make the battle too easy.


Does anyone know how to do that?


I mean, ONE way would be to make a common even for each and every item which checks if a switch, that gets switched on once you enter the boss battle, and then 


makes the item effect happen.


BUT that would be so many common events! Way too much!
Is there a better way?
Um... I think a simple plugin may work, something in whatever function does items "If switch is on and in Scene_Battle, then items in this array (via plugin parameters) cannot be used and are greyed out!"
I did something like this in ACE for my battle arena, what I did was I used a multiple inventory script, switched the parties inventory to a blank one, then switched it back afterwards. However, this also means you would be unable to give drops from the boss until after the battle is over.


Though...serious question now. If an item makes a boss battle too easy, why is it in the game? Its going to also make random battles WAY too easy (I assume your random battles are weaker than your boss battles). Maybe it might be a good idea to reconsider if that item should be in the game in the first place. Plus, restricting it like this for boss battles is going to make the player think the item is useless as it is never useable in any battle they care about using it in.
I would be able to offer a solution, depending on what this item does. If it's an instant death item, for instance, you can simply set the state rate for Death on those bosses to 0% (Nothing wrong with preventing the player from taking a surefire method to oneshot the boss).
@bgillisp


The items in questions are monster card that let you summon a monster that attacks one random enemy once.


They only have a 5% rate of dropping. The reason they are in the game at all is that they are fun and because they are so rare I want them to be special and rewarding.


Most of them are not that powerful at all, they heal 50 HP or deal 100 HP damage.


But some like for example one cart that drains 10% of an enemies HP and gives that to the user may be too powerful for a boss battle.


I do not want to not have them in the game. 
Easy solution: Set the cards to inflict damage with their own element (call it Card), then make anyone you don't want the cards to damage to have element rate 0%.


This also allows you to maybe do a nerfed version of the cards instead if you wish (like maybe early bosses take full damage, mid game bosses 50%, and final boss 0%), or you could even make someone take extra damage from the cards with an element rate * 200% now. Many possibilities open up with this.
@bgillisp


The items in questions are monster card that let you summon a monster that attacks one random enemy once.


They only have a 5% rate of dropping. The reason they are in the game at all is that they are fun and because they are so rare I want them to be special and rewarding.


Most of them are not that powerful at all, they heal 50 HP or deal 100 HP damage.


But some like for example one cart that drains 10% of an enemies HP and gives that to the user may be too powerful for a boss battle.


I do not want to not have them in the game. 



   Couldn't you just make all of the monster cards (or just the ones that are overpowered) a unique element that bosses are granted immunity to so that they'd deal 0 damage anyway? That's kind of standard fare in rpgs already, at least where % damage attacks are concerned since bosses tend to have 10+ times the health of normal enemies and party members so it would likely be even more accepted than simply blocking out the use of those items entirely during boss battles.
Yes, I thought about that too.


But then the card would be used anyway and the player uses it.


I mean, in the end, that solution is better than nothing and it is my compromise solution for now. 
I don't get it.


If the item is rare, it is valuable. If it Is valuable, I will want to use it.


if it is rare, but when I use it against a boss and it has no effect, I would be pissed off. If an item is rewarding (so a reward), I should be able to use it at my convenience,


it's like saying that elixirs that fill up your all HP shouldn't be used against a boss, or it would be to easy. Or that invocations can't be used against bosses.


I would even say it makes the card even more valuable, If I can save it to use against a boss. using a powerful card on mobs sucks.


I understand the mechanic, and that you are really attached to it, but I don't really get why you want the boss restrictions... too powerful? well then that's a balance issue, but If I buy a booster of Magic cards, I'd be annoyed if a powerful one I drew (specially with a 5% drop chance) was restricted to be used only in qualifiers, but I would be restricted to use it when (if) I reach the finals.
@Niten Ichi Ryu


I guess you are right.


Items are made to be used.


And you wouldn't use a rare item unless you need to, you wouldn't waste it no matter what.


Thx! 
@Niten Ichi Ryu


I guess you are right.


Items are made to be used.


And you wouldn't use a rare item unless you need to, you wouldn't waste it no matter what.


Thx! 

That was what I was thinking too. Besides, at a 5% drop rate, the probability that a player would have 10 of them is 0.0000000009% (and it might be a couple more 0's there, had a hard time reading them on my calculator). So it might be best to let them use them.


Or...if you are using MV I think Yanfly has a plug-in that lets you set caps on how many of an individual item someone can have. Maybe you could cap the cards at 5 of each? Just a thought. And I think a similar script might exist in ACE too.
@bgillisp


The items in questions are monster card that let you summon a monster that attacks one random enemy once.


They only have a 5% rate of dropping. The reason they are in the game at all is that they are fun and because they are so rare I want them to be special and rewarding.


Most of them are not that powerful at all, they heal 50 HP or deal 100 HP damage.


But some like for example one cart that drains 10% of an enemies HP and gives that to the user may be too powerful for a boss battle.


I do not want to not have them in the game. 



If it's just the fact that 10% of the boss HP is far too much to give to the player, then why not just apply a maximum amount that can be syphoned across to the player?  You could still have it attempt to take 10%, but if that is above a maximum amount, cap it to that maximum amount instead.  I'm sure there are ways to still have them usable in boss battles, as @Niten Ichi Ryu said it's a balancing issue that you will need to address.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-prevent-certain-items-to-be-used-in-boss-battles.60596/