赞 | 0 |
VIP | 0 |
好人卡 | 11 |
积分 | 1 |
经验 | 3075 |
最后登录 | 2014-5-19 |
在线时间 | 54 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 54 小时
- 注册时间
- 2011-8-4
- 帖子
- 87
|
我在66的搜索上找到了有人问了同样的问题,回答的是把脚本里Game_Actor的94-106行:- def make_exp_list
- actor = $data_actors[@actor_id]
- @exp_list[1] = 0
- pow_i = 2.4 + actor.exp_inflation / 100.0
- for i in 2..100
- if i > actor.final_level
- @exp_list = 0
- else
- n = actor.exp_basis * ((i + 3) ** pow_i) / (5 ** pow_i) #这行就是下一级exp的计算公式,你可以改成自己需要的公式
- @exp_list = @exp_list[i-1] + Integer(n)
- end
- end
- end
复制代码 把那个计算公式改下就行了
于是我改成这样了:- def make_exp_list
- actor = $data_actors[@actor_id]
- @exp_list[1] = 0
- pow_i = 2.4 + actor.exp_inflation / 100.0
- for i in 2..100
- if i > actor.final_level
- @exp_list[i] = 0
- else
- if i < 11
- n = (n-1)*10
- @exp_list[i] = Integer(n)
- else
- if i < 21
- n = (n-1)*100
- @exp_list[i] = Integer(n)
- else
- if i < 31
- n = (n-1)*1000
- @exp_list[i] = Integer(n)
- else
- if i < 41
- n = (n-1)*10000
- @exp_list[i] = Integer(n)
- else
- if i <51
- n = (n-1)*100000
- @exp_list[i] = Integer(n)
- else
- @exp_list[i] = 0
- end
- end
- end
- end
- end
- end
- end
- end
复制代码 我本来是想调成每十级就有一个经验坎。
但游戏运行开始就弹出错误,我是脚本新手,请问谁能帮忙看看是哪里错了吗? |
|