赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | -330 |
最后登录 | 2013-7-25 |
在线时间 | 34 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 34 小时
- 注册时间
- 2011-3-3
- 帖子
- 45
|
$data_actors = load_data("Data/Actors.rxdata") #——角色
$data_classes = load_data("Data/Classes.rxdata") #——职业
$data_skills = load_data("Data/Skills.rxdata") #——特技
$data_items = load_data("Data/Items.rxdata") #——物品
$data_weapons = load_data("Data/Weapons.rxdata") #——武器
$data_armors = load_data("Data/Armors.rxdata") #——防具
$data_enemies = load_data("Data/Enemies.rxdata") #——敌人
$data_troops = load_data("Data/Troops.rxdata") #——队伍
$data_states = load_data("Data/States.rxdata") #——状态
$data_animations = load_data("Data/Animations.rxdata") #——动画
$data_tilesets = load_data("Data/Tilesets.rxdata") #——图块
$data_common_events = load_data("Data/CommonEvents.rxdata") #——公共事件
$data_system = load_data("Data/System.rxdata") #——状态
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
save_data($data_actors,"Data/Actors.rxdata")
save_data($data_classes,"Data/Classes.rxdata")
save_data($data_skills,"Data/Skills.rxdata")
save_data($data_items,"Data/Items.rxdata")
save_data($data_weapons,"Data/Weapons.rxdata")
save_data($data_armors,"Data/Armors.rxdata")
save_data($data_enemies,"Data/Enemies.rxdata")
save_data($data_troops,"Data/Troops.rxdata")
save_data($data_states,"Data/States.rxdata")
save_data($data_animations,"Data/Animations.rxdata")
save_data($data_tilesets,"Data/Tilesets.rxdata")
save_data($data_common_events,"Data/CommonEvents.rxdata")
save_data($data_system,"Data/System.rxdata")
exit
我在本论坛的新人教学里面找到了以上一段脚本,作用是:调高数据库的最大上限值,即把999改为2000!
可是我按照里面教的步骤将它插入到MAIN之前,可是为什么没有用呢????……
还是999,没有什么用啊?有什么错么??
上面的脚本,就是我插入的脚本啊…… |
|