Project1
标题:
让经验值翻倍来得更猛烈些吧!
[打印本页]
作者:
yzlsym
时间:
2008-4-27 07:58
标题:
让经验值翻倍来得更猛烈些吧!
跟禾西大人讨论了下经验值翻倍的事宜
最终得出两种方法
均是把Scene_Battle 2里的这几行交换
# 获得 EXP
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
if actor.cant_get_exp? == false
last_level = actor.level
actor.exp += exp
if actor.level > last_level
@status_window.level_up(i)
end
end
end
复制代码
方法一:
# 获得 EXP
#==============================================================================
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
if actor.cant_get_exp? == false
last_level = actor.level
$经验值翻倍武器 = [1,5]
$经验值翻倍防具 = [1,5,13]
$经验值翻倍职业 = [1,2]
a = exp
weapon = [actor.weapon_id]
weapon.each{|i|a *= 2 if $经验值翻倍武器.include?(i)}
armor = [actor.armor1_id,actor.armor2_id,actor.armor3_id,actor.armor4_id]
armor.each{|i|a *= 2 if $经验值翻倍防具.include?(i)}
a *= 2 if $经验值翻倍职业.include?(actor.class_id)
actor.exp += a
if actor.level > last_level
@status_window.level_up(i)
end
end
end
#==============================================================================
复制代码
方法二:
#==============================================================================
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
if actor.cant_get_exp? == false
last_level = actor.level
a = exp
$经验值翻倍属性 = 20
$经验值翻倍职业 = [1,2]
unless $data_weapons[actor.weapon_id].nil?
a *=2 if $data_weapons[actor.weapon_id].element_set.include?($经验值翻倍属性)
end
[actor.armor1_id,actor.armor2_id,actor.armor3_id,actor.armor4_id].each do |id|
next if $data_armors[id].nil?
a *= 2 if $data_armors[id].guard_element_set.include?($经验值翻倍属性)
end
a *= 2 if $经验值翻倍职业.include?(actor.class_id)
actor.exp += a
if actor.level > last_level
@status_window.level_up(i)
end
end
end
#==============================================================================
复制代码
方法二需设置一个属性(默认是20)
把要附加经验翻倍的装备属性勾上即可
最多可以翻6番!
一只幽灵就可以连升几级
杀人越货必备脚本啊!
好吧,我承认我是模仿夏娜的祝福特技。。。
范例无视了··要应用到RTAB里自己添加
修改的地方模仿
http://rpg.blue/web/htm/news736.htm
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1