Increase Critical Rate with Action Sequence (MV)

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
458
Reaction score
668
First Language
English
Primarily Uses
RMMV
Yanfly Action Sequence 1: http://www.yanfly.moe/wiki/Action_Sequence_Pack_1_(YEP)

I was wondering what line of code would I have to put in to increase my character's chance of landing a critical hit if they are affected by a state.

Edit:
What I am trying to accomplish is a skill that has a higher chance of doing critical damage when you have a certain state.

For example, my skill 'Blast' has a 3% chance of landing a critical hit. If the actor using it has the state 'Strong' the skill 'Blast' will have a 7% chance of landing a critical hit.
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
35,794
Reaction score
9,461
First Language
German
Primarily Uses
RMMV
if the skill user has the state, then you only add a trait to increase the crit chance inside the state - absolutely no need for a plugin.
 

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
458
Reaction score
668
First Language
English
Primarily Uses
RMMV
if the skill user has the state, then you only add a trait to increase the crit chance inside the state - absolutely no need for a plugin.
I'm sorry I was clear with my initial post. What I am trying to accomplish is a skill that has a higher chance of doing critical damage when you have a certain state.

For example, my skill 'Blast' has a 3% chance of landing a critical hit. If the actor using it has the state 'Strong' the skill 'Blast' will have a 7% chance of landing a critical hit.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,031
Reaction score
2,457
First Language
English
Primarily Uses
RMMV
You can't do it just with action sequences, you need to own the Critical Control plugin in order to have the appropriate command. If you do have that, you'd just put:
Code:
if user.isStateAffected(x)
    FORCE CRITICAL
end
where x is the ID of your state.
 

Latest Threads

Latest Profile Posts

The worst text you can get from a friend "You left your webcam on!!!
When you start recoloring your character because lawsuits are expensive:

lawsuits are bad.png
Been busy in Fort Myers and I'm spending tonight and tomorrow in Orlando. Then I go home on Tuesday by train (I take the Amtrak) and rest up before work on Wednesday.
I'm going to make a thread on the forum asking an interesting question... about the next RPG Maker!

Forum statistics

Threads
121,842
Messages
1,144,633
Members
160,100
Latest member
Unknown-Tale
Top