Jump to content
Sign in to follow this  
lonequeso

Average Party Level

Recommended Posts



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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×