(Answered) Help with things that proc off of crits.

Servidion

Last Soul Keeper
Veteran
Joined
Mar 15, 2015
Messages
233
Reaction score
27
First Language
English
Primarily Uses
RMMV
Alright so using Yanfly's AutoPassiveStates I created a multitude of passives I can learn. My question is how do I make it so while a state is active and when you crit with something it will proc a certain effect?


I'll give some examples:


-Critical Strikes generate 10 TP and increase your physical damage dealt by 15% for 2 turns. (The damage increase would be an additional state, of course)


-Critical Strikes cause the target to bleed for 5 turns.


-Critical Strikes activate a heal-over-time on yourself.


-Critical strikes have a 20% chance to completely refill your ATB bar.


I have all of Yanfly's plugins and can install others if necessary.


Bear in mind I want these to be on a state rather than a skill so the state would affect every skill you use while in effect.


Thanks for reading!


~Serv


*edit* After a great deal of 'soul searching', Nekoyoubi actually helped me with a solution. To each skill that would be affected by these states I would add a note tag such as this:


<Pre-Damage Eval>
if (a.isStateAffected(891) && b.result().critical) {
a.addState(915); user.gainTp(10);
}
</Pre-Damage Eval>


This can be altered to fit the other states I have listed. Just be sure to have this tag in the SKILL note tag.


*Note* This requires multiple Yanfly plugins.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to JS Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Servidion

Last Soul Keeper
Veteran
Joined
Mar 15, 2015
Messages
233
Reaction score
27
First Language
English
Primarily Uses
RMMV
I still haven't found much. You can do it with a formula in a skill, but I haven't found anything for states.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top