Increase Critical Rate with Action Sequence (MV)

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
571
Reaction score
776
First Language
English
Primarily Uses
RMMZ
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
37,959
Reaction score
10,536
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
571
Reaction score
776
First Language
English
Primarily Uses
RMMZ
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
7,614
Reaction score
5,370
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 Posts

Latest Profile Posts


New sprites in my project!
Updating my stream thumbnail collection here Streaming more game dev in 30 minutes or so. :LZSexcite:

Programming languages are amazing.

Someone needed help with a problem in C#. I've got 0 experience in C#. I read 0 lines of their code. I only knew what they wanted to do. I wrote a completely generic code in Javascript containing the generic answer. But they understood what I was doing and translated that to their code. 20 seconds later, problem solved.
been using ChatGPT to write a new story. I told it to :
generate a word like gundam for a false prophet super AI

it answered :
"NOVUS" as an acronym for "New Omnipotent Virtual Unit for Synthetics"? sounds similar to "gnosis," which is a term associated with knowledge and spiritual enlightenment, fitting the theme of a false prophet.


Five traps done, more on the way!
Stay tuned!

Forum statistics

Threads
129,806
Messages
1,205,357
Members
170,920
Latest member
FantasyLife
Top