Increase Critical Rate with Action Sequence (MV)

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
460
Reaction score
670
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,822
Reaction score
9,475
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
460
Reaction score
670
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,069
Reaction score
2,478
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

Never play a random encounter RPG on the toilet. Just don't. Especially not one with save points instead of menu saving.
spent the entire day working on problems I was having in battle. enemy's tagging in and out was one of them.
Check out the Driftwood gamejam submissions, there's some pretty good projects in there.
Define purpose in your own words.
And assuming it doesn't contradict your definition: if someone takes your purpose away, can you get a new one?
At last, my fourth set of random sprites is finished! :kaojoy:
NebhyCL.jpg

Have fun recognizing characters!

Forum statistics

Threads
121,960
Messages
1,145,466
Members
160,233
Latest member
MechaHummus
Top