加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 紫英晓狼1130 于 2022-12-30 19:58 编辑
想将角色属性做成梯度增长 而不是增加点数
例如力量从1-10的难度和90-100的难度一定是不一样的
此处附上武林群侠传属性的成长经验表
自己在尝试的过程中使用了数组记录EXP表 但是无法与增减能力值同步刷新
以下是范例代码
#numexp numexp = [0,1,4,9,18,32,50,75,106,144,190,245,308,382,466,562,668,786,917, 1061,1217,1387,1570,1768,1980,2206,2447,2702,2972,3257,3557,3872, 4202,4547,4907,5281,5670,6074,6492,6924,7371,7831,8305,8793,9294, 9808,10335,10874,11426,11989,12565,13152,13750,14359,14979,15609, 16249,16899,17558,18227,18905,19591,20286,20989,21699,22418,23144, 23877,24617,25363,26116,26874,27639,28409,29185,29966,30752,31543, 32338,33138,33941,34749,35561,36377,37195,38018,38843,39671,40503, 41336,42173,43012,43853,44697,45542,46390,47239,48090,48943,50000,0] if @actor_id == 1 while n < 100 and $game_variables[6] > numexp[n+1] and numexp[n+1] > 0 n += 1 end end
#numexp
numexp = [0,1,4,9,18,32,50,75,106,144,190,245,308,382,466,562,668,786,917,
1061,1217,1387,1570,1768,1980,2206,2447,2702,2972,3257,3557,3872,
4202,4547,4907,5281,5670,6074,6492,6924,7371,7831,8305,8793,9294,
9808,10335,10874,11426,11989,12565,13152,13750,14359,14979,15609,
16249,16899,17558,18227,18905,19591,20286,20989,21699,22418,23144,
23877,24617,25363,26116,26874,27639,28409,29185,29966,30752,31543,
32338,33138,33941,34749,35561,36377,37195,38018,38843,39671,40503,
41336,42173,43012,43853,44697,45542,46390,47239,48090,48943,50000,0]
if @actor_id == 1
while n < 100 and $game_variables[6] > numexp[n+1] and numexp[n+1] > 0
n += 1
end
end
目前的做法是根据角色属性值得到基础经验 之后再根据循环与EXP表比较显示出能力值
实际上二者并无关联 有没有方法能直接将能力值和EXP(也就是自定义的$game_variables)相关联?
而能力值更像是一个等级 具体数值由变量计算 |