States

Is there a way to make it to where a skill that is used on an opponent can debuff their hit rate and also raise the hit rate of someone on the players party?
Example:
1587163024443.png

Any help is appreciated.
It sorta looks like VXACE but I can give a pointer.
If you're using the Battle Core along with the Action Sequences from Yanfly's Plugin Library,
then you can target both allies and enemies.
For the Hit Rate issue first, you're going to want to make a state and inside the traits there should be an Ex-Parameter, Hit Rate. You can raise/lower it there.
Now you don't have to make it a specific action sequence, but if it a single enemy then use
<target action>
</target action>
Now to target an ally or enemy
then use:
add state x: target
or
add state x: ally

X being the ID number of that state.
Hope that gets you going 😅
It sorta looks like VXACE but I can give a pointer.
If you're using the Battle Core along with the Action Sequences from Yanfly's Plugin Library,
then you can target both allies and enemies.
For the Hit Rate issue first, you're going to want to make a state and inside the traits there should be an Ex-Parameter, Hit Rate. You can raise/lower it there.
Now you don't have to make it a specific action sequence, but if it a single enemy then use
<target action>
</target action>
Now to target an ally or enemy
then use:
add state x: target
or
add state x: ally

X being the ID number of that state.
Hope that gets you going 😅
It is vx ace. It doesn't look like there is a action sequence script from yanfly for vx ace.
perhaps yanfly Follow-Up Skill
<follow up eval>
string
string
</follow up eval>
perhaps yanfly Follow-Up Skill
<follow up eval>
string
string
</follow up eval>
Don't know how that is supposed to help. Do note I am trying to make the debuff hit the enemy but at the same time the skill adds a buff to the user/one party member.
You could try HimeWorks' Formula Effects script. You would need to add the following to the skill's notes:
Ruby:
<formula effect>
a.add_state(X)
</formula effect>
where X is the ID of the state you've made that increases the hit rate. This adds the state to the user of the skill.
You could try HimeWorks' Formula Effects script. You would need to add the following to the skill's notes:
Ruby:
<formula effect>
a.add_state(X)
</formula effect>
where X is the ID of the state you've made that increases the hit rate. This adds the state to the user of the skill.
Is there a way to add it to one of the other party members instead of the user?
Its also doable without any additional script at all, just by utilizing the damage formula box since it allows any viable rgss code.. If you want it to affect some other character you could do it like

Code:
$game_party.battle_members(index).add_state(State_ID); your actual damage formula

Where index is the position of the character in the battle party (0 being leader), state_id being the id of the state you want to add

If you want it to affect a more specific actor, you could use $game_actors(ID) instead.
Its also doable without any additional script at all, just by utilizing the damage formula box since it allows any viable rgss code.. If you want it to affect some other character you could do it like

Code:
$game_party.battle_members(index).add_state(State_ID); your actual damage formula

Where index is the position of the character in the battle party (0 being leader), state_id being the id of the state you want to add

If you want it to affect a more specific actor, you could use $game_actors(ID) instead.
I am looking for it to let the player choose who gets the stat boost. If that is even possible.
You can make your skill run a common event which then asks you to choose the target actor via show choices, then add the state via that event too..

Original thread: https://forums.rpgmakerweb.com/threads/states.120325/