Change Skill Effects Mid-Battle

● ARCHIVED · READ-ONLY
Started by SawyerFriend 9 posts View original ↗
  1. Hello, everyone!

    So, I've been making a lot of progress using MV, but I ran into a small predicament that I'm not sure how to fix.
    I want to be able to change the effects of a skill in the middle of a battle. For example, if a character had two states representing a passive stance and an aggressive stance, I was wondering if there's any way to change the effect of the skill based on which state the character has. Furthermore, I'd also like to be able to change the other attributes of the skill as well, such as the name, animation, etc. This sounds like a pretty tall order, so I tried seeing if there could be a simpler way around this, such as having a skill redirect into another one based on certain variables, but I can't seem to figure out any way to do that, nor can I find any plugin that advertises this function.

    Is there any way for me to pull this off, or am I out of luck?
  2. You can probably do this via the yanfly plugin which allows you to run coded effects during skill use. Some of the effects might probably also be done via his States plugin

    I also dont know of a plugin that switches a skill in-game to a different one upon certain conditions.

    I have an idea though, why not make 2 versions of the skills (or maybe 3 if we have "normal" stance or no-stance version), make each version have a different skill type, make the player learn all versions but dont add the skill type so that the skills doesnt show. Then make your attack/defense stance add the appropriate skill type to the actor and maybe seal the no-stance type.

    That way they can only use the desired version during the state
  3. Engr. Adiktuzmiko said:
    I have an idea though, why not make 2 versions of the skills (or maybe 3 if we have "normal" stance or no-stance version), make each version have a different skill type, make the player learn all versions but dont add the skill type so that the skills doesnt show. Then make your attack/defense stance add the appropriate skill type to the actor and maybe seal the no-stance type.

    That way they can only use the desired version during the state

    Actually, that's a genius idea, especially given how many states the character in question has! Thank you so much, I'll try this out now.
  4. Edit: Unfortunately, it appears that idea didn't work out so well. In theory, it's perfect, but there ended up being some mechanics specific to my game that proved problematic, so I guess I'll have to be pretty specific to describe my new situation:

    So, the main issue getting in the way of using States to change the effects of skills is one of the mechanics of my game, in which you are limited to only a specific number of skills that you can bring into battle at a time, which you decide outside of battle.

    The character in question uses "stances" to change her weapon mid-battle in order to use different types of skills. Were it not for the above mechanic, this would work (almost) flawlessly, but thanks to the skills needing to be equipped, changing stances only grants the character access to any moves she had equipped outside of battle. This creates two problems:

    The first issue is that with only a limited number of moves available, her versatility is basically shot. She may as well just be able to equip any weapon type outside of battle as opposed to in, because being limited to a small pool of skills would mean she would only have one or two skills available per weapon type, not even considering the fact that her stance change is also a skill.

    The second issue is about stances. When she enters battle, she's supposed to start with her default stance, a bow and arrow. Due to this, her other stances disappear when battle ends, and when they do, all weapon types are sealed again (except bow type skills). I didn't consider this until I ran a play test, but unfortunately, this means that she can only equip bow skills outside of battle, since all other skill types are sealed.

    So, now that I've explained the specifics, what I'm trying to do is allow this character to be able to do either of the following:

    A. She has a limited range of "vanilla" skills whose effects change into other skills depending on her weapon stance
    or
    B. Changing stances mid-battle grants her access to all the skills of that type up to her level (for example, if a sword specialist learns Cleave at lv 4, she can use Cleave if she has Sword Stance and is higher than level 4).

    Is there any possible solution to this dilemma, or do I need to re-prioritize some mechanics over others?
  5. You'd then really need a script/plugin which will allow you to either make the skill change during execution, or make your states modify your equipped skills
  6. Engr. Adiktuzmiko said:
    You'd then really need a script/plugin which will allow you to either make the skill change during execution, or make your states modify your equipped skills
    Certainly seems that way. You wouldn't happen to know if any such plugin exists at the moment, would you?
  7. I dont know of any atm, I havent tackled that idea yet nor am I a fan of equip skills in my games. xD

    If you know how to access your equipped skills list though, you could probably do this via Yanfly's State plugin which lets you run things when a state is added/removed
  8. [mod]I am moving this to JS Plugins Requests, as it is now clear that a plugin is needed.[/mod]
  9. Use yanfly's buff and states plugin to trigger a common event when the stance change state is applied that will give the proper skills to your character.
    And when the state is removed trigger a common event that will give her her skills back.

    This should work, unless I missed something.

    If all else fails you can do conditionnal branches in action sequences, so you can modify skills on the fly. It's just gonna be a huge mess.