赞 | 204 |
VIP | 13 |
好人卡 | 7 |
积分 | 122 |
经验 | 52899 |
最后登录 | 2021-6-29 |
在线时间 | 4435 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 12157
- 在线时间
- 4435 小时
- 注册时间
- 2014-4-11
- 帖子
- 5955
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 yang1zhi 于 2015-11-17 20:15 编辑
是使用道具加入新队友时报错
module Fy #下面填职业增加的属性对应数值,职业ID=>[四项属性增加值] , 四项属性依次是: #[力量,灵巧,速度,魔力] , 下面只有楼主所说的战士(职业ID:1)法师(职业ID:2), #其他就照格式添加。 Class_additions = {1=>[0,0,0,0,100,0], 2=>[0,0,0,0,0,1000]} end class Game_Actor < Game_Battler #-------------------------------------------------------------------------- # ● 获取基本力量 #-------------------------------------------------------------------------- alias additions_str base_str def base_str return [[additions_str+Fy::Class_additions[@class_id][0], 1].max, 999].min end #-------------------------------------------------------------------------- # ● 获取基本灵巧 #-------------------------------------------------------------------------- alias additions_dex base_dex def base_dex return [[additions_dex+Fy::Class_additions[@class_id][1], 1].max, 999].min end #-------------------------------------------------------------------------- # ● 获取基本速度 #-------------------------------------------------------------------------- alias additions_agi base_agi def base_agi return [[additions_agi+Fy::Class_additions[@class_id][2], 1].max, 999].min end #-------------------------------------------------------------------------- # ● 获取基本魔力 #-------------------------------------------------------------------------- alias additions_int base_int def base_int return [[additions_int+Fy::Class_additions[@class_id][3], 1].max, 999].min end #-------------------------------------------------------------------------- # ● 获取基本HP #-------------------------------------------------------------------------- alias additions_maxhp base_maxhp def base_maxhp return [[additions_maxhp+Fy::Class_additions[@class_id][4], 1].max, 9999].min end #-------------------------------------------------------------------------- # ● 获取基本SP #-------------------------------------------------------------------------- alias additions_maxsp base_maxsp def base_maxsp return [[additions_maxsp+Fy::Class_additions[@class_id][5], 1].max, 9999].min end end
module Fy
#下面填职业增加的属性对应数值,职业ID=>[四项属性增加值] , 四项属性依次是:
#[力量,灵巧,速度,魔力] , 下面只有楼主所说的战士(职业ID:1)法师(职业ID:2),
#其他就照格式添加。
Class_additions = {1=>[0,0,0,0,100,0], 2=>[0,0,0,0,0,1000]}
end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ● 获取基本力量
#--------------------------------------------------------------------------
alias additions_str base_str
def base_str
return [[additions_str+Fy::Class_additions[@class_id][0], 1].max, 999].min
end
#--------------------------------------------------------------------------
# ● 获取基本灵巧
#--------------------------------------------------------------------------
alias additions_dex base_dex
def base_dex
return [[additions_dex+Fy::Class_additions[@class_id][1], 1].max, 999].min
end
#--------------------------------------------------------------------------
# ● 获取基本速度
#--------------------------------------------------------------------------
alias additions_agi base_agi
def base_agi
return [[additions_agi+Fy::Class_additions[@class_id][2], 1].max, 999].min
end
#--------------------------------------------------------------------------
# ● 获取基本魔力
#--------------------------------------------------------------------------
alias additions_int base_int
def base_int
return [[additions_int+Fy::Class_additions[@class_id][3], 1].max, 999].min
end
#--------------------------------------------------------------------------
# ● 获取基本HP
#--------------------------------------------------------------------------
alias additions_maxhp base_maxhp
def base_maxhp
return [[additions_maxhp+Fy::Class_additions[@class_id][4], 1].max, 9999].min
end
#--------------------------------------------------------------------------
# ● 获取基本SP
#--------------------------------------------------------------------------
alias additions_maxsp base_maxsp
def base_maxsp
return [[additions_maxsp+Fy::Class_additions[@class_id][5], 1].max, 9999].min
end
end
|
评分
-
查看全部评分
|