赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 1060 |
最后登录 | 2020-5-5 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 0 小时
- 注册时间
- 2008-2-29
- 帖子
- 114
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
#=========================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#=========================================================================
# 空手的攻击防御力 by Claimh
#------------------------------------------------------------------
# http://www.k3.dion.ne.jp/~claimh/
#========================================================================
module Arm_Element
ARM_ATK = []
ARM_PDEF = []
ARM_MDEF = []
ARM_ELEMENT = []
ARM_ELE_PLUS = []
ARM_ELE_MINUS = []
ARM_ANIMATION1 = []
ARM_ANIMATION2 = []
#===================================================================
# 自定义开始
#====================================================================
# 空手时1号角色攻击力与力量值的百分比关系(60%)
ARM_ATK[1] = 0.6
# 空手时2号角色攻击力与力量值的百分比关系(70%),以下类推,不一一举例。
ARM_ATK[1] = 0.7
# 空手时1号角色防御力与灵巧值的百分比关系(60%)
ARM_PDEF[1] = 0.6
# 空手时1号角色魔法防御力与速度值的百分比关系(60%)
ARM_MDEF[1] = 0.6
# 空手时攻击方动画编号
ARM_ANIMATION1[1] = 1
# 空手时挨打方动画编号
ARM_ANIMATION2[1] = 4
#————以下几个慎用,是空手时的属性增减,不推荐修改
ARM_ELEMENT[1] = [1]
ARM_ELE_PLUS[1] = []
ARM_ELE_MINUS[1] = []
end
class Game_Actor < Game_Battler
include Arm_Element
#--------------------------------------------------------------------
#------------------------------------------------------------------
alias base_atk_arm base_atk
def base_atk
if @weapon_id == 0 and ARM_ATK[@actor_id] != nil
return $data_actors[@actor_id].parameters[2, @level] * ARM_ATK[@actor_id]
end
return base_atk_arm
end
#--------------------------------------------------------------------
#-------------------------------------------------------------------
alias base_pdef_arm base_pdef
def base_pdef
if @weapon_id == 0 and ARM_PDEF[@actor_id] != nil
return base_pdef_arm + $data_actors[@actor_id].parameters[3, @level] * ARM_PDEF[@actor_id]
end
return base_pdef_arm
end
#--------------------------------------------------------------------
#--------------------------------------------------------------------
alias base_mdef_arm base_mdef
def base_mdef
if @weapon_id == 0 and ARM_MDEF[@actor_id] != nil
return base_mdef_arm + $data_actors[@actor_id].parameters[4, @level] * ARM_MDEF[@actor_id]
end
return base_mdef_arm
end
#------------------------------------------------------------------
#--------------------------------------------------------------
alias element_set_arm element_set
def element_set
if @weapon_id == 0 and ARM_ELEMENT[@actor_id] != []
return ARM_ELEMENT[@actor_id]
end
return element_set_arm
end
#-----------------------------------------------------------------
#-------------------------------------------------------------------
alias plus_state_set_arm plus_state_set
def plus_state_set
if @weapon_id == 0 and ARM_ELE_PLUS[@actor_id] != []
return ARM_ELE_PLUS[@actor_id]
end
return plus_state_set_arm
end
#-------------------------------------------------------------------
#------------------------------------------------------------------
alias minus_state_set_arm minus_state_set
def minus_state_set
if @weapon_id == 0 and ARM_ELE_MINUS[@actor_id] != []
return ARM_ELE_MINUS[@actor_id]
end
return minus_state_set_arm
end
#------------------------------------------------------------------
#-----------------------------------------------------------------
alias animation1_id_arm animation1_id
def animation1_id
if @weapon_id == 0 and ARM_ANIMATION1[@actor_id] != nil
return ARM_ANIMATION1[@actor_id]
end
return animation1_id_arm
end
#---------------------------------------------------------------------
#------------------------------------------------------------------
alias animation2_id_arm animation2_id
def animation2_id
if @weapon_id == 0 and ARM_ANIMATION2[@actor_id] != nil
return ARM_ANIMATION2[@actor_id]
end
return animation2_id_arm
end
end
#=====================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#====================================================================
我放在自己做的游戏里没有效果,但是新建一个工程可以用
不知道有没有大大能帮我看看可能是什么原因,我修改了什么数值才没效果了? 版务信息:本贴由楼主自主结贴~ |
|