Not much more I can add. I guess to be more specific, I'm talking about a state with the "Attack an enemy" restriction.
How do I make the Berserk state automatically use a skill other than the default attack?
RPG Maker MV Supportcould try having the berserk state give auto battle trait and seal skill traits for all skills except that 1 attack
I believe yanfly’s buffs and states core will allow you to choose any skill to be used in such a state.
I don't see how - what do you have in mind?
Depending on what the op wants the berserk state to do, something like this:
</Custom Action Start Effect>
var skill = ‘code for chosen skill?’ || ‘skill id’
var target = -1;
BattleManager.queueForceAction(user, skill, target);
<Custom Action Start Effect>
Are you using a plugin, or asking how to do this without a plugin?
Hm, good thought, but it doesn't work. For one thing, there are several syntax errors in there so it definitely doesn't work as written...but fixing those, it crashes the game. The battle manager can be finicky, and it doesn't seem to like having the forceAction() called externally.
I didn't care enough to troubleshoot beyond that, but that was in a vanilla project, so it would definitely require further messing around with to get this method to work - at which point you might as well have clicked on all of the stuff for Tiamat's method 😉
It doesn't matter to me whether I use a plugin or not because I don't plan on selling my game. I just want it to work.
Did you set it up as Tiamat described in the first reply to your thread? Does it work?
(also, what does using plugins have to do with selling your game?)
Using a plugin or not has nothing to do with whether you are selling your game.
If you are looking for a plugin to do this, we'll need to move it to the Plugin Requests forum.
@Shaz
I couldn't get Tiamat's solution to work, but I found a work-around using a different plugin. I just got rid of the ability to use a standard attack normally using this plugin so now the only time any actor uses the standard attack (which I customized to attack all enemies like I originally wanted) is while they are in the berserk state.
@ATT_Turan
Certain plugins have terms in their license that prevent you from using them if you intend to profit from a game that uses them.
I couldn't get Tiamat's solution to work, but I found a work-around using a different plugin. I just got rid of the ability to use a standard attack normally using this plugin so now the only time any actor uses the standard attack (which I customized to attack all enemies like I originally wanted) is while they are in the berserk state.
@ATT_Turan
Certain plugins have terms in their license that prevent you from using them if you intend to profit from a game that uses them.
Not very many plugins have those terms. But if you are looking for a plugin, all you have to do is say any suggestions have to allow commercial use.
Is your question resolved now, or do you still need some more help?
Is your question resolved now, or do you still need some more help?
I have seen art resources on the forum with those restrictions, but I've never actually seen a plugin that did. You must be scrounging the depths of the earth 😛
@Shaz yes, you may close this thread as my issue is resolved
Thread closed
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-the-berserk-state-automatically-use-a-skill-other-than-the-default-attack.141017/