加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
技能在自我魔法模型里面,我想把技能附加在武器而不是在人物ID上, 武器不在系统上 而是module Equips_data里面
module Equips_data
@data_id = 2
ICON[@data_id] = "icon_1280"
NAME[@data_id] = "测试刀"
DISCRIPTION[@data_id] = "测试用的刀,非常坚固,非常OP"
PRICE[@data_id] = 999
#类型: 1.甲 2.盾 3.近战武器 4.远程武器 5.马
TYPE[@data_id] = 3
#限制:只有特定兵种才能装,nil都能装
LIMIT[@data_id] = nil
#防具类, 都是加成
AMMOR_HP[@data_id] = 0
SHD_HP[@data_id] = 0
LIVE_CHANCE[@data_id] = 0
MOVEMENT_SPEED[@data_id] = 0
CRITICAL[@data_id] = 0
BASE_ATK[@data_id] = 9999
BRO_ATK[@data_id] = 0
S_BASE_ATK[@data_id] = 0
S_BRO_ATK[@data_id] = 0
ANTI_CAV[@data_id] = 0
ANTI_INF[@data_id] = 0
ATK_FR[@data_id] = 0
ACCURATCY[@data_id] = 0
ENGAGE_RANGE[@data_id] = 0
AMMO_MAX[@data_id] = 0
MORALE[@data_id] = 0
module State_data data_id = 2 #名字 NAME[data_id] = "狂暴攻击" ICON[data_id] = "" ANIMATION[data_id] = 32 #持续时间(nil 表示整个战场中都有) TIME[data_id] =nil #400 #移动速度 MOVEMENT_SPEED[data_id] = 100 #精确度(远程) ACCURATCY[data_id] = 100 #熟练度 SKILLED_LEVEL[data_id] = 115 #攻击力 AP[data_id] = 175 #攻击频率 ATK_FR[data_id] = 999#125 #护甲 ARMOR[data_id] = 25 #远程攻击力 S_AP[data_id] = 100 end
module State_data
data_id = 2
#名字
NAME[data_id] = "狂暴攻击"
ICON[data_id] = ""
ANIMATION[data_id] = 32
#持续时间(nil 表示整个战场中都有)
TIME[data_id] =nil #400
#移动速度
MOVEMENT_SPEED[data_id] = 100
#精确度(远程)
ACCURATCY[data_id] = 100
#熟练度
SKILLED_LEVEL[data_id] = 115
#攻击力
AP[data_id] = 175
#攻击频率
ATK_FR[data_id] = 999#125
#护甲
ARMOR[data_id] = 25
#远程攻击力
S_AP[data_id] = 100
end
自我魔法
module EFS_Spell#魔法 module Skill_data data_id = 1 #名称 NAME[data_id] = "强制热血" #图标 ICON[data_id] = "skill1" #冷却时间 CD[data_id] = 10#400 #使用次数限制 TIME[data_id] = 100#2 #技能代码 CODE[data_id] = 1 end def self.use_spell(code_id) #-------------------------------------------------------------------------- if code_id == 1 #强制热血 #-------------------------------------------------------------------------- $game_party.actors[0].sp = 0 $game_player.animation_id = 32 Audio.se_play("Audio/SE/rush_"+(rand(4)+1).to_s,100, 100) for e in $Team_Fighter next if e.is_a?(Game_Player) e.add_state(2) end
module EFS_Spell#魔法
module Skill_data
data_id = 1
#名称
NAME[data_id] = "强制热血"
#图标
ICON[data_id] = "skill1"
#冷却时间
CD[data_id] = 10#400
#使用次数限制
TIME[data_id] = 100#2
#技能代码
CODE[data_id] = 1
end
def self.use_spell(code_id)
#--------------------------------------------------------------------------
if code_id == 1 #强制热血
#--------------------------------------------------------------------------
$game_party.actors[0].sp = 0
$game_player.animation_id = 32
Audio.se_play("Audio/SE/rush_"+(rand(4)+1).to_s,100, 100)
for e in $Team_Fighter
next if e.is_a?(Game_Player)
e.add_state(2)
end
|