Increase Critical Rate with Action Sequence (MV)

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
410
Reaction score
599
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
34,761
Reaction score
8,970
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
410
Reaction score
599
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
3,154
Reaction score
1,865
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

Fun fact. Today it's exactly 2600 days since I met my now gf for the first time. Sometimes being a programmer can be really useful. O:)
Is RPG Maker VX (rgss2) still relevant? xD
ZyCHqk2.png

Something about top-downs.
I have never felt so attacked by a tree before :LZSlol: it took 10++ hours to make but at least it looks pretty LOL

Untitled-1.png
now seems like the worst time for me to need a better computer with how much stuff is costing. that and I don't thing there's much else I can do to make MV run any better with what I have.

Forum statistics

Threads
118,455
Messages
1,116,109
Members
155,440
Latest member
yamamushi
Top