Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

This is a great plugin that serves my purposes, though I seem to have discovered a bug. It triggers whenever I use my substitute skill (which is set to only last 1 turn, with Remove at Battle End and Remove by Restriction checked on its substitute state) on a target that has a state with a restriction (Attack anyone, Cannot move, etc.) The user of the skill will continue to substitute for the target on following turns, and even in following battles, as long the user is still able to freely act, without me selecting the substitute skill again. But if I use the substitute skill on the same target again when they don't have a state with a restriction, then the user stops substituting for the target when the turn ends and everything goes back to normal.

I am using RPG Maker MZ, and I tested this with all other plugins off.

Hello!

I did find a bug that would cause the substitution to go on forever unless reapplied. I just released a fix with version 1.0.1... I was able to reproduce this behavior, and based on my tests I'm pretty sure it is fixed. But please let me know if the issue persists!

And I should say... thank you for the detailed error report! It was such a specific scenario, and your description really helped me quickly identify the issue!

I tried out the new version, and while the substitution no longer goes on forever, instead it no longer applies at all when the skill is used on a target that has a state with a restriction on it. It still applies normally to any target that doesn't have any states with restrictions.

I double checked here, and I see it is working as intended. I think the issue now is just a minor misunderstanding of how the plugin works.

The substitution state is not applied in the actor doing the substitution, it's applied in the one being covered. So if you setup the substitution state to be removed by restrictions, the substitution will be canceled if the actor being covered gets restricted, or has a restriction when you try to apply the substitution.

If I'm getting it right, I think what you intended to do was ensure that the actor doing the substitution cannot do so if he himself has a restriction. Correct?

Whenever the character doing the substitution cannot move, the substitution state in the covered actor is not removed, but the restriction will prevent the substitution to happen. If the substitution state lasts more turns than the "tank" restrictions, he will resume substitutions when the restrictions are lifted, until the state expires.

However, there is no clear battle message being displayed right now to let the player know the substitution did not occur due to a tanker restriction. I could add one and release a new version right away if you deem it necessary. If not, I'll let it rest in my backlog to be released in the future along other bug fixes or new features. =]

D'oh...you are 100% right. I never needed to have Remove by Restriction checked on the substitute state. I believe everything is now working the way I wanted it to. Thanks!

I personally am not in need of a battle message to let the player know a substitution did not happen, but thanks for asking.