module Caidao
WS = { #这里别动
#-----------------------------------------
#下面设置技能的关联, 写法 武器ID=>[技能ID],
#-----------------------------------------
1=>[1], #←后面这个逗号别漏了
5=>[2,3], #要附加多个技能就这样写
#=========================================
} #这里别误删了
end
class Game_Actor < Game_Battler
def skills
a = Caidao::WS[@weapon_id].nil? ? [] : Caidao::WS[@weapon_id]
for skill17 in a
$game_actors[@actor_id].skill[a].level = 17 if a != []
end
return @skills | a
end
def attached_skills
return skills
end
end
module Caidao
WS = { #这里别动
#-----------------------------------------
#下面设置技能的关联, 写法 武器ID=>[技能ID],
#-----------------------------------------
1=>[1], #←后面这个逗号别漏了
5=>[2,3], #要附加多个技能就这样写
#=========================================
} #这里别误删了
end
class Game_Actor < Game_Battler
def skills
a = Caidao::WS[@weapon_id].nil? ? [] : Caidao::WS[@weapon_id]
for skill17 in a
$game_actors[@actor_id].skill[a].level = 17 if a != []
end
return @skills | a
end
def attached_skills
return skills
end
end