Hi, I was wondering how I could create a state that gives the user a specific amount of guaranteed dodges when being attacked? Ex. The state gives the user 3 guaranteed dodges, and is guaranteed to dodge the next 3 damaging skills, but once they run out the state is removed automatically.
How Would I Go About Making A State That Gives The User A Specific Amount Of Guaranteed Dodges?
RPG Maker MV SupportI'd also like to make a state similar to this, but just with special attacks and ultimates specifically being evaded.
We're not supposed to post twice in a row within 72 hours. If you need to add something to your post, there's an Edit button on the bottom.
The answer to your question is Yanfly's Buffs & States plugin. How you implement it has multiple possibilities.
I would use the state counters that the plugin offers (and that way the player can see what the state is doing). In the state's notes you'd put:
where stateId is the ID of this state.
For dodging regular skills, just give the state a Trait that adds a very high Evade. Then do:
again, replacing all instances of stateId.
Your second question you'll have to clarify - there's no such thing in RPG Maker as "special attacks and ultimates."
How do you differentiate those from other skills? If you mean that you want to evade Certain Hit skills, it's pretty easy to make them do 0 damage, but more complicated if you actually want it to display as an evasion.
The answer to your question is Yanfly's Buffs & States plugin. How you implement it has multiple possibilities.
I would use the state counters that the plugin offers (and that way the player can see what the state is doing). In the state's notes you'd put:
Code:
<Custom Apply Effect>
user.addStateCounter(stateId, 3);
</Custom Apply Effect>
For dodging regular skills, just give the state a Trait that adds a very high Evade. Then do:
Code:
<Custom Deselect Effect>
if (this.evaded)
user.addStateCounter(stateId, -1);
if (user.getStateCounter(stateId)<=0)
user.removeState(stateId);
</Custom Deselect Effect>
Your second question you'll have to clarify - there's no such thing in RPG Maker as "special attacks and ultimates."
How do you differentiate those from other skills? If you mean that you want to evade Certain Hit skills, it's pretty easy to make them do 0 damage, but more complicated if you actually want it to display as an evasion.
Thanks for answering the first question. What I meant by specials and ultimates, is basically certain category of skills outside of normal attacks. I wanted to implement a system where if the user had a certain state, they would specifically dodge skills that dealt damage outside of normal attacks, those 2 categories would be special skills, and ultimates. I wanted to know if there was a way where I could make a state which automatically evades (or reduces the damage to 0) of skills based on those 2 skill categories.
Okay...sure, you can, but as I said in my first post you need to explain how you're doing this. A lot of the words you're using (category of skills, special skills, ultimates) don't mean anything in RPG Maker.
In order to get an answer to your question to use in RPG Maker, you'll need to explain how you're implementing this in RPG Maker.
Are these two Skill Types? If no, they're the same Type as other skills, how do you know if a skill is special or ultimate?
If there isn't any difference between them in the database and you'd need to make up a way to differentiate them, that's an answer, too.
Yes, they would be 2 different skill types.
Okay. So you start the state off the same way, with three charges:
Code:
<Custom Apply Effect>
user.addStateCounter(stateId, 3);
</Custom Apply Effect>
Then you do:
Code:
<Custom React Effect>
if (this.isSkill() && this.item().stypeId==type_1 || this.item().stypeId==type_2)
{
value=0;
user.addStateCounter(stateId, -1);
if (user.getStateCounter(stateId)<=0)
user.removeState(stateId);
}
</Custom React Effect>
All right, thanks alot. I'll have to wait to test it since I currently don't have my laptop, but it's something I've been wanting to implement for a while now. Makes it harder since I know very little about coding.
Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-go-about-making-a-state-that-gives-the-user-a-specific-amount-of-guaranteed-dodges.151941/