Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Yanfly Action Sequence Pack 1 - switch X on/off eval

Xeen

Villager
Xy$
0.00
Hello.

I am heavily using Yanfly scripts, and I recently hit wall with this one
http://yanfly.moe/2015/10/11/yep-4-action-sequence-pack-1/

What I need:
My states applied/not applied chances towards targed are expected to be heavily related to relative (%) damage done by individual blows to target.

Example: Target receive single blow for 20% or more (of total target.mhp) impact damage, so he has risk of broken bones status, etc...
Math I need for every status I need I can easilly do inside separate common event, as well as location damage etc.. and put everything necessary to game switches.

My problem is HOW I exactly I check switch ON/OFF during action sequence inside skill notebox related to yanfly plugin above.

Something with logic like this:
eval: If ($gameSelfSwitches.(5)==true) add state 12: target, show;

Tried but 7 hours of various syntax erorrs makes me really sad :(. I need just this one line I am not able to write correctly :P.

I will be etternally gratefull for right syntax I need to copy/paste to make it work.

Thank you, you will be my hero.
 
Top