Need help with states

I'm new to RPG Maker VX Ace and I can't figure out a few states I'm trying to make.  I looked around online for the answers for a while and couldn't find them.

First, I want to make a status effect where the target gets critical hit every time they are hit.  I tried making crit evasion (CEV) -100% as an Ex-Parameter.  I have it set to last 6-6 turns but it's not working at all, the target gets effected by the status but they don't always get hit with critical damage.

Also, is there any way to give an enemy the ability to provoke a player's character so that character can only attack the monster who cast provoke? I mean, is there any way to do it without scripting?

Lastly I want to make a state where the target cannot be healed until it wears off and I have no idea how to do that.  Can that be done without scripting?
For the last one, just set the PHA in the parameter's tab to zero %
1. CEV only lowers their Evasion to Crit, not chance of getting Crit. I also got no idea.

2. You can do a roundabout way where Cover makes all enemies Invincible until the enemy who used cover is dead.

3. SP/Ex-Parameter turn PHA to 0% SHOULD do it.
For the first one, this is a roundabout way which I haven't had time to test as I'm not at a computer with Ace.  The structure of what you need to do is like something like this.  It will ensure that if the target of the enemy is the actor with the state, that actor will be hit with a critical.  It will not force the enemy to target that actor.

Create a state which inflicts CRI 100% for 6 turns, say with the ID 80

Create the state with the status infliction, say with the ID 81

In the damage formula of the enemy, you put in a check which determines if the target is inflicted with state 81.  If yes, add state 80 and the usual damage formula for attack, if not, then the damage formula for that skill.

so something like

if b.state?(81);a.add_state(80); a.atk *4 - b.def *2; end; ordinary skill damage formula here.

I'm not quite sure if I've got the syntax right, and as I said I'm not at a computer where I can check, but maybe this will be enough to get you going.
Thanks very much guys 🙂 and I should have seen that pha before I thought I explored that tab pretty thoroughly, RPG Maker has a lot to it I'm loving it so far and I'm motivated to get this game finished.
Hi,

1) -100% CEV only doubles the chance to get critically hit.

If every battler has at least 1% critical strike chance, you could still enforce a guaranteed crit by stacking huge amounts of -CEV features (a total of -10000% divided by the minimum CRI percentage).

If you only want to make certain attacks a guaranteed critical strike, you can set/clear the critical flag within the damage formula using

b.result.critical = true/false

If you want to set the critical flag when the target is inflicted with a certain state you could use this pattern for example:

(real damage formula).tap { b.result.critical = true if b.state?(state id) }

Another alternative would be modifying the formula for the critical strike chance in the scripteditor, but I can't look up the exact method at the moment.

2) While it's probably not completely impossible, it would be quite complex to set up with events alone. If you only want that effect for certain enemies you could use event script commands to change an actions target index after the start of each round. You'd still have to do check each possible party member for a "taunt" effect from each possible enemy.

To change the target index of an actors action (assuming you don't use multiple action features) you can use this script command:

actor.current_action.target_index = index

actor can be replaced either by

$game_actors[id]  <- Actor with the specified database id  or

$game_party.members[position]  <- Actor at the specified position in the party, starting at 0.

Make sure the actor does exist (especially if you use the party slot variant), otherwise this command will cause an error.

index can be replaced by the position of the targeted enemy (starting at position 0)

3) PHA only affects recovery effects when the battler uses an item. If you want to make the battler itself immune to healing, you could set the damage element of all healing spells and items to "Heal" and give that battler a 0% element rate feature for this element. You'd have to specify all healing effects via the damage formula though, as the element rate does not affect the "effects" list.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-states.37888/