I was wondering if there was a way to increase a variable based on what actor uses it in MV. For example Bob, actor 1 uses Bad Crystal I want it to add the "Bob is evil" variable. Also if Jane uses the Bad Crystal if adds to the "Jane is evil" instead. This item can only be used in battle.
Increase a variable based on what actor uses it (MV)
JS Plugin RequestsIt depends. The easiest way is to set common event as item use, then in that common event make a conditional branch that will check who is a party leader(and who's using it).
I forgot to mention this item is used only in battle.
if you're using Yanfly Action Sequences, you can run the common events during battle. I'm sure there's other ways to run them during battle as well if you aren't using them. I agree that'd probably be your easiest solution.
It works when you the leader of the party use the item on themselves with the Action sequence 1. However, it doesn't work when you give it to another party member. It still goes towards the Actor 1's variable.
would this at all be helpful then? https://forums.rpgmakerweb.com/index.php?threads/make-item-consumption-modify-variable.63163/
basically I think you'd add a state with the common event. check if that actor has said state, then check off the variable... at least that's what I'm getting from what I read here.
basically I think you'd add a state with the common event. check if that actor has said state, then check off the variable... at least that's what I'm getting from what I read here.
What you suggested worked. I added another state before applying the power up. After the first state then there is a common event that checks if the actor has that state then removes it and add the variable.
Anyways, thanks for helping me out.
Original thread: https://forums.rpgmakerweb.com/threads/increase-a-variable-based-on-what-actor-uses-it-mv.120014/