My problem is as follows: I made a boss with a skill that gives them an "action times + 100%" state, which makes them act twice for the duration of the buff. I want dispelling that state to be a viable method of defanging this boss, but in the turn where the state is removed, the boss still acts twice. My best guess for why this happens is that it must have something to do with the enemy's actions being determined at the start of the turn and the game following through even if the conditions change mid-turn before the enemy acts. But it's not a very solid theory, because other buffs/debuffs still work (or stop working) properly when they are added or removed mid-turn. Anyone has any idea how I could fix this?
Enemy acts twice even though the buff that allows them to do so is removed
RPG Maker MV SupportYour assumption is correct - the actions are decided in the first phase of the turn, it's results are handled in the second phase of the turn. Anything that changes the actions will only take effect on the nnext turn, while things that change the results are handled in the same phase of the current turn - because that is when the next results are calculated. But as said the next action decision is only handled next turn, so that is the earliest that the effect can be changed by default.
The problem is that the engine does not remember which action might have come from an action time state, and which might have come from some other action time trait. Because of that it simply cannot remove that action by default.
you'll probably have to request a plugin that stores that info and handles the state removal, and I don't know if that work is not too much for such a minor balancing effect.
That is something only you can decide depending on how important that effect change is for your project - just keep in mind that it might not be as easy as it first sounds, depending on where and how the action time effects are handled in your game.
EDIT: and please don't confuse buff/debuff with state - as you can see in the effects of skills they are different things, the (de)buffs are listed under param effects, not state effects.
If you call a state to be a buff that will confuse other people here.
The problem is that the engine does not remember which action might have come from an action time state, and which might have come from some other action time trait. Because of that it simply cannot remove that action by default.
you'll probably have to request a plugin that stores that info and handles the state removal, and I don't know if that work is not too much for such a minor balancing effect.
That is something only you can decide depending on how important that effect change is for your project - just keep in mind that it might not be as easy as it first sounds, depending on where and how the action time effects are handled in your game.
EDIT: and please don't confuse buff/debuff with state - as you can see in the effects of skills they are different things, the (de)buffs are listed under param effects, not state effects.
If you call a state to be a buff that will confuse other people here.
That's what I feared, thanks for the explanation. Sorry for mixing up the nomenclature, I'll try to be more mindful of that in the future.
I came up with a really crude workaround that allows me to sidestep the issue, so I think I'll manage without a plugin this time. (The workaround is based around micromanaging the boss' mp supply to make sure he won't act twice unless the situation calls for it. It's really convoluted and probably won't work as a general fix in games that are balanced differently)
I came up with a really crude workaround that allows me to sidestep the issue, so I think I'll manage without a plugin this time. (The workaround is based around micromanaging the boss' mp supply to make sure he won't act twice unless the situation calls for it. It's really convoluted and probably won't work as a general fix in games that are balanced differently)
Original thread: https://forums.rpgmakerweb.com/threads/enemy-acts-twice-even-though-the-buff-that-allows-them-to-do-so-is-removed.118772/