class Scene_Battle < Scene_Base
def execute_action_skill
skill = @active_battler.action.skill
####################################################3
name = skill.name
if $name_skill.split(/,/)[0]
if $name_skill != nil
kill = $name_skill.split(/X/)[1]
if kill == nil or kill == ""
kill = 1
end
#p kill
#p name
end
end
@animation_times = 1
for ii in 1..kill.to_i
####################################################3333
skill = @active_battler.action.skill
text = @active_battler.name + skill.message1
@message_window.add_instant_text(text)
unless skill.message2.empty?
wait(10)
@message_window.add_instant_text(skill.message2)
end
targets = @active_battler.action.make_targets
if @animation_times > 0
display_animation(targets, skill.animation_id)
@animation_times -= 1
end
@active_battler.mp -= @active_battler.calc_mp_cost(skill)
$game_temp.common_event_id = skill.common_event_id
for target in targets
target.skill_effect(@active_battler, skill)
display_action_effects(target, skill)
end
@message_window.clear
end
end
end
module RPG
class Skill
def name
$name_skill = @name
name = @name.split(/,X/)[0]
return name != nil ? name : ""
end
end
end 作者: kuerlulu 时间: 2013-10-5 09:04
你这是在黑@无脑之人 么 作者: 耀眼的毛玉 时间: 2013-10-5 10:40