I am looking for something like this to toss into the script portion of the conditional branch.
actor(variable1)level > actor(variable2)level
I'm just not sure how to write it correctly.
Thank you in advance! :) (I hope this is in the right section)
Level comparason conditional branch?
● ARCHIVED · READ-ONLY
-
-
Set the level of each actor to a variable
then compare those two variables
or use the script option of the conditional branch (on the last tab of conditional branch)
and use
Code:And just replace id_1 and id_2 with whatever id number of the actors that you want to check$game_actors[id_1].level > $game_actors[id_2].level -
why don't you use the control variable command?
Load the actor 1 level into variable 1 and actor 2 level into variable 2 (by game data option).
And then compare the two variables in the conditional branch without ever touching script options -
Thank you very much.
$game_actors[$game_variables[1]].level > $game_actors[$game_variables[2]].level
Works perfectly! -
Oh, because I needed the actors it checks to work off of a variable.why don't you use the control variable command?
Load the actor 1 level into variable 1 and actor 2 level into variable 2 (by game data option).
And then compare the two variables in the conditional branch without ever touching script options -
Emily Frost, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
If you want to quote multiple people, just use the MultiQuote button on each post, then at the end, hit the Reply to Selected Posts button. That'll put all the quotes in a single post so you don't double-post in order to reply to each one :)