Original Source
- Original title: Yanfly Buff States Lunatic Mode problem
- Original author: zimzim
- Original date: August 21, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/yanfly-buff-states-lunatic-mode-problem.67151/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
Hello. I'm trying to create an Attack Interrupt skill and Magic Interrupt skill. The idea is that when you use Attack Interrupt skill or Magic Interrupt skill on an enemy, then that enemy will be inflicted with Attack Interrupt State or Magic Interrupt State respectively. Both of these states last for 10 turns. So, whenever the enemy attacks when it has Attack Interrupt State applied on itself, then that attack is interrupted (it failed) and the enemy also receives some HP damage. Likewise, whenever the enemy uses magic when it has...
Archived First Post
To create these effects, I use Yanfly Battle Engine Core and Yanfly Buffs & States Core. Now, the scripts that I wrote for both Attack Interrupt State and Magic Interrupt State works fine if the enemy is applied with only ONE of either states at a time. If the enemy has BOTH states at the same time, I found that when the enemy ATTACKS, it will lead to an error as shown in this pic:
Whereas when the enemy uses magic, even if the enemy has both states at the same time, the Magic Interrupt still works fine. Could anyone help me with this issue, maybe point out what is wrong with my script or maybe suggest an alternative way to achieve the same effects?
These are the scripts that I used for both Attack Interrupt State and Magic Interrupt State:
Attack Interrupt State: http://pastebin.com/6gL1r5mv
Magic Interrupt State: http://pastebin.com/r3TtR66M
These are the plugins that I use:
Yanfly Battle Engine Core: https://www.dropbox.com/s/4mgcqz5hgnblwez/YEP_BattleEngineCore.js?dl=0
Yanfly Buffs & States Core: https://www.dropbox.com/s/0fk64r7zwfx90fo/YEP_BuffsStatesCore.js?dl=0
(I also use Yanfly Core Engine to activate the developer's console. The core engine is not required for these effects to occur. https://www.dropbox.com/s/uzfxvvp17ypb1tb/YEP_CoreEngine.js?dl=0 )
Finally, this is the sample project file for this issue: https://www.dropbox.com/s/ljkfmvkxqrxjumu/Project1.rar?dl=0
To replicate the issue:
1) Encounter the bat enemy in the map
2) Use Attack Interrupt skill under Magic
3) Use Magic Interrupt skill under Magic
4) If the enemy uses magic, the Magic Interrupt effect should work fine, but if the enemy uses attack, then the game will crash with error as shown in the picture above.
I've been stuck with this problem for a week and couldn't find a way to solve it.

Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator 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...