I am trying to check the average party level through an event/script call.
This is what I have so far, I rarely mess with scripts and especially in RMMV so this may be on the right track or complete incorrect (found it from a past post in vx and tweaked it some but stilll doesnt work)
This is what I have so far, I rarely mess with scripts and especially in RMMV so this may be on the right track or complete incorrect (found it from a past post in vx and tweaked it some but stilll doesnt work)
Code:
avg_lvl = 0
$gameParty.members().each {|actor| avg_lvl += actor.level}
avg_lvl /= $gameParty.members().length
$gameVariables.setValue(80, avg_level)