I want the player to be able to find and buy attribute boost like hp + 10 %. What would be the best way to implement this? Also what is the best way to make a shop keeper sell only a certain number of these items?
MV items as %'s
JS Plugin RequestsYou've really got 2 questions here, that belong in different areas.
I think you can do the boost as a state, but others might have other solutions.
The second will need a plugin, so ...
Moved to: Plugin Requests
I think you can do the boost as a state, but others might have other solutions.
The second will need a plugin, so ...
Moved to: Plugin Requests
the % of boost can be done with the trait option, for the other for stock,
require a plugin.
BO_CustomShops is 1 (cannot link at the moment), but there are more
that has limited stock and re-stock ability.
require a plugin.
BO_CustomShops is 1 (cannot link at the moment), but there are more
that has limited stock and re-stock ability.
Just to be clear, you want the stat boost to be permanent or temporary?
permanent
If I understand you correctly, you're asking about using a consumable item to increase an actor's parameters by a percentage.
I would do this:
- Make the item apply a State. Make up something you don't use other places, call it Targeting or something.
- Then it calls a common effect. In that common effect, use conditional branches to check each actor to have the Targeting state. If they do, set a variable to 10% of their MHP then increase HP by that variable then remove the Targeting state
There are ways to make this a bit more efficient via script calls, but they're not necessary.
I would do this:
- Make the item apply a State. Make up something you don't use other places, call it Targeting or something.
- Then it calls a common effect. In that common effect, use conditional branches to check each actor to have the Targeting state. If they do, set a variable to 10% of their MHP then increase HP by that variable then remove the Targeting state
There are ways to make this a bit more efficient via script calls, but they're not necessary.
This is where I am stumped
"If they do, set a variable to 10% of their MHP then increase HP by that variable then remove the Targeting state"
"If they do, set a variable to 10% of their MHP then increase HP by that variable then remove the Targeting state"
In the future, please provide screenshots of what you've already tried.
When you're referring to instructions that are in English words corresponding to the event commands in your list, and you simply say "I'm confused" without telling us which specific words you don't understand, it's very hard to give you help beyond simply saying the same words again...as they ought to mean something to you.

Instead of increasing Harolds hp It dropped from 450hp to 45hp. LOL. I don't see that I did anything different from your instructions.
Solved it! Thank you for all the help!
Original thread: https://forums.rpgmakerweb.com/threads/items-as-s.155128/