Disclamer, please take the time to read This is just a little script I made at the request of someone, it wasnt supposed to be released
until that someone was almost finished with the game it was going with...
(sorry, but i need to make my RGSS skills known)
Perhaps you've played a RPG such as Final Fantasy: Tactics Advance, you might of noticed that
the people that want to join your party are the average level as your party, well, this script does
just that.

I ask that you DO NOT DISTRIBUTE THIS TO OTHER SITES WITHOUT MY PERMISION, AS I WILL BE POSTING IT TO SOME SOON.
Don't forget to give credit!
Important notes on the script- THIS SCRIPT IS NOT TESTED WITH SDK OR MACL
- This script was made by me, and it basicly modifies game_actor, if you see someone with another name
than Enix2, Efever2, post this script, let me know.
- I am currently working on another script that will work with this script, so when it's out, (and if you want to use it)
place it above this script, set your first switch on, to change which switch it looks for, find if $game_switches[1] == true
and set the number in the brackets to your desired switch
- dont set $USE_ADVANCED_NAMES to true UNLESS you have the other script
- This script modifies Game_Actor
- THIS SCRIPT HAS NOT BEEN TESTED WITH A LARGE PARTY SCRIPT, BUT IF YOU WANT ME TO MAKE IT COMPATABLE WITH ONE, LET ME KNOW OF
THE LARGE PARTY SCRIPT AND I'LL TRY
Setup1) PLACE ANYWHERE ABOVE MAIN AND BELOW OTHER CUSTOM SCRIPTS
2) to activate, turn the switch on (switch number is in [] on line 59 of the script)
3) to use this script, the switch must be on. make an event that adds a party member, and make sure 'initialize' is checked.
(screenshot1)
How It Works If you have 2 party members, and want to add a third using this system, it takes the level of the first, and the second party
member, adds those 2 numbers together, and divides by the current party size,(Eg: P1 is level 19, and P2 is level 40, 19+40=59;
59/2 = 29.5)in the example i chose numbers that result in a floating average(has a decimal point) its good to note that RGSS
ALLWAYS, i repeat, ALLWAYS ROUNDS DOWN, it doesnt matter if the result is 29.999999999 RMXP will ALLWAYS return 29.
Here's a clearer example:
Arshes lv 10
Basil lv 18
Gloria lv 37
Total lv 65
(3 party mebers, so divide by 3)
Average lv 21.66666667
Rounded lv 21
Gloria lv 21
ScreenShotsonly the one telling you how to use it, kinda hard to display this script :0
Level Averager
# Level Averager
# Writen by Enix2
# 09/20/08
# v. 5.7
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
# This class handles the actor. It's used within the Game_Actors class
# ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Setup
# actor_id : actor ID
#--------------------------------------------------------------------------
def setup(actor_id)
actor = $data_actors[actor_id]
@actor_id = actor_id
if $USE_ADVANCED_NAMES == true
Advanced_Name_Generator.new
@name = $Name
else
@name = actor.name
end
@character_name = actor.character_name
@character_hue = actor.character_hue
@battler_name = actor.battler_name
@battler_hue = actor.battler_hue
@class_id = actor.class_id
@weapon_id = actor.weapon_id
@armor1_id = actor.armor1_id
@armor2_id = actor.armor2_id
@armor3_id = actor.armor3_id
@armor4_id = actor.armor4_id
if $game_switches[1] == true
if $game_party.actors.size == 1
actor1 = $game_party.actors[0]
actor_level1 = actor1.level
$addition_one = actor_level1
$END_RESULT = $addition_one / 1
@level = $END_RESULT
elsif $game_party.actors.size == 2
actor1 = $game_party.actors[0]
actor_level1 = actor1.level
actor2 = $game_party.actors[1]
actor_level2 = actor2.level
$addition_two = actor_level1 + actor_level2
$END_RESULT = $addition_two / 2
@level = $END_RESULT
elsif $game_party.actors.size == 3
actor1 = $game_party.actors[0]
actor_level1 = actor1.level
actor2 = $game_party.actors[1]
actor_level2 = actor2.level
$addition_two = actor_level1 + actor_level2
actor3 = $game_party.actors[2]
actor_level3 = actor3.level
$addition_three = $addition_two + actor_level3
$END_RESULT = $addition_three / 3
@level = $END_RESULT
else
@level = actor.initial_level
end
else
@level = actor.initial_level
end
@exp_list = Array.new(101)
make_exp_list
@exp = @exp_list[@level]
@skills = []
@hp = maxhp
@sp = maxsp
@states = []
@states_turn = {}
@maxhp_plus = 0
@maxsp_plus = 0
@str_plus = 0
@dex_plus = 0
@agi_plus = 0
@int_plus = 0
# Learn skill
for i in 1..@level
for j in $data_classes[@class_id].learnings
if j.level == i
learn_skill(j.skill_id)
end
end
end
# Update auto state
update_auto_state(nil, $data_armors[@armor1_id])
update_auto_state(nil, $data_armors[@armor2_id])
update_auto_state(nil, $data_armors[@armor3_id])
update_auto_state(nil, $data_armors[@armor4_id])
end
end
Demo, for those of you who dont want to copy/paste scriptshttp://files.filefront.com/Level+Averager+...;/fileinfo.htmlBugsthere are currently no known bugs that havent been resolved, If you find a bug, post it to the site at which you
found this script, if i dont reply within 2 weeks, then i did not post that script, and i am asking that you
report that topic, because I specificly said not to distribute it without my permission.
EDIT- only the script within the spoiler will be cut down