Level comparason conditional branch?

Emily Frost

Villager
Member
Joined
May 15, 2013
Messages
8
Reaction score
1
First Language
English
Primarily Uses
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)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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:
$game_actors[id_1].level > $game_actors[id_2].level
And just replace id_1 and id_2 with whatever id number of the actors that you want to check
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
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

Villager
Member
Joined
May 15, 2013
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Thank you very much.

$game_actors[$game_variables[1]].level > $game_actors[$game_variables[2]].level

Works perfectly!
 

Emily Frost

Villager
Member
Joined
May 15, 2013
Messages
8
Reaction score
1
First Language
English
Primarily Uses
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
Oh, because I needed the actors it checks to work off of a variable.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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 :)
 

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

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,072
Members
137,578
Latest member
JamesLightning
Top