for i in 1..2000 #——上限设置
$data_actors[i] = RPG::Actor.new if $data_actors[i]==nil
$data_classes[i] = RPG::Class.new if $data_classes[i]==nil
$data_skills[i] = RPG::Skill.new if $data_skills[i]==nil
$data_items[i] = RPG::Item.new if $data_items[i]==nil
$data_weapons[i] = RPG::Weapon.new if $data_weapons[i]==nil
$data_armors[i] = RPG::Armor.new if $data_armors[i]==nil
$data_enemies[i] = RPG::Enemy.new if $data_enemies[i]==nil
$data_troops[i] = RPG::Troop.new if $data_troops[i]==nil
$data_states[i] = RPG::State.new if $data_states[i]==nil
$data_animations[i] = RPG::Animation.new if $data_animations[i]==nil
$data_tilesets[i] = RPG::Tileset.new if $data_tilesets[i]==nil
$data_common_events[i] = RPG::CommonEvent.new if $data_common_events[i]==nil
$data_system.elements[i] = "" if $data_system.elements[i]==nil
end