How to use stats into conditional branches?

Basically...I want to use the "atack" stat in a conditional branch with battle processing...so for example..if you have more than 10 atk you kill the enemy instantly just by touching the enemy overworld sprite....otherwise you engage in battle normally...

Edit: Sorry...I've figured it out...the moderators can close this topic if you want
basically control variable to get game data, then conditional branch on the variable
If you are going to use those type of conditional branches a lot, Conditional Branch+ plugin is recommended
basically control variable to get game data, then conditional branch on the variable

Yeah...that's what I did...it worked perfectly...


If you are going to use those type of conditional branches a lot, Conditional Branch+ plugin is recommended

I just used the variable to get the stat as a parallel process in a common event so I can use it as many times as I want...

Thanks guys =)
I just used the variable to get the stat as a parallel process in a common event so I can use it as many times as I want...
bad idea, because that adds to lag without any real need.
just add a control variable command before every conditional branch that checks the value
bad idea, because that adds to lag without any real need.
just add a control variable command before every conditional branch that checks the value

It's not lagging at all...and I have 3 of those...one for atk, magatk and agility...the game is running normally
It's not lagging at all..
lag is additive - and every computer has some processing reserves.
but each parallel process uses some of that processing, and it adds up the more you use (as well as other problems caused by too many parallel processes.

and it is a bad idea to use up the processing reserve for things that can be done other ways.

looking for lag only when it becomes detectable is like says "only the last beer was bad, the twelve beers before that have nothing to do with how I feel now"
lag is additive - and every computer has some processing reserves.
but each parallel process uses some of that processing, and it adds up the more you use (as well as other problems caused by too many parallel processes.

and it is a bad idea to use up the processing reserve for things that can be done other ways.

looking for lag only when it becomes detectable is like says "only the last beer was bad, the twelve beers before that have nothing to do with how I feel now"

ok .-.
You can build a common event to check the stats of an actor and just recall that common event anytime you need to get it (before making the conditional branch). Its spares you from doing it manually every time.
A better way would be to just do a Control Variables prior to the Battle Processing call. A parallel process event is very inefficient for this.

Thread closed

Next time, please report your post and say it's been resolved, rather than adding a comment in an already-existing post - mods don't look at every post so might miss it, especially when it's an edit of an existing post, as that won't even make it bump to the top of the list.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-stats-into-conditional-branches.130241/