Original Source
- Original title: MZ VisuStella Skills & States Core - Passive States Cancelling Out
- Original author: sainti
- Original date: February 19, 2024
- Source thread: https://forums.rpgmakerweb.com/threads/visustella-skills-states-core-passive-states-cancelling-out.165940/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
I'm using VisuStella Skills and States Core to apply a couple of different global passive states, but they seem to be conflicting with each other. The first passive state is for "hard mode" -- I have it set to be a global enemy passive, it applies only when a certain switch is on, and it boosts the enemy's parameters by 170%. This works fine on its own. The second passive state is one of several states that create a "terrain type" in the battle, which affects element rates and nothing...
Archived First Post
However, when I switch the variable that controls terrain type during a battle, my enemies temporarily lose the parameter boosts from the hard mode state, and then regain the bonuses at the end of the turn. This is reflected in their HP: since MHP is one of the parameters affected, when it's not being boosted the enemy's HP is cut, and then when it's boosted again they don't regain the HP they lost. See the below gif if that doesn't make sense.
So the enemy's HP loses that 70% boost -- an enemy with a base 100 HP should be boosted to 170, but because the state gets cancelled, it drops back down to 100. If I change the terrain type a second time, it looks like the enemy regains that lost HP, but I'm pretty sure what's happening is its MHP is dropping down to base level, making it appear to be gaining HP when it's really not. Then at the end of the turn it gets the boost back again and looks the way it did before. Again, see the gif below.
I recreated this issue in a demo project without any extraneous code or plugins (aside from the Core Engine and Battle Core). You can download it here if you want to take a look. The "terrain switch" item can be used to change the terrain variable during battle.
I've tried a couple of different things to solve this problem, and haven't had any success. I tried making separate versions of the terrain states for hard mode specifically, with the parameter boosts built in, but this didn't change anything. I also tried restoring enemy HP at the end of every turn, but this didn't work out -- partially because I'm making use of instant skills and those disrupt the turn order, and partially because I couldn't come up with a good way to avoid restoring HP lost from actual attacks. If anyone has any better suggestions for how to fix this, either through plugins/JS or just some workaround, I'd really appreciate it! Thanks!
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...