lonequeso 1,921 Posted January 7, 2016 Hi. I want to make a variable fro a conditional branch that checks what the party's average level is. I'm sure there's some little line of code that'll do it. Thanks! Share this post Link to post Share on other sites
Quack 34 Posted January 7, 2016 avg_lvl = 0 $game_party.members.each {|actor| avg_lvl += actor.level} avg_lvl /= $game_party.members.length $game_variables[YOUR_VARIABLE_ID] = avg_lvl obviously replace YOUR_VARIABLE_ID with the id of your variable. 1 Share this post Link to post Share on other sites
lonequeso 1,921 Posted January 7, 2016 A little more than a line, but it worked! Thanks for the quick response This one is solved. Share this post Link to post Share on other sites