I guess since my last post got no reply ill try a different approach to my problem. I want to try to have it so based on a characters statistic that selected character in battle can make more then one attack of different powers. (Sorta like Chrono Cross)
Now ive had it for a while where pressing certain keys caused the different damage to be dealt but I can't seam to get the multiple attacks to work. SO I was wondering if anyone could share some ideas on how I would get this to work?
because this bellow doesn't work. There are no errors. It just acts like I never changed my code at all to try for multiple attacks.
Now ive had it for a while where pressing certain keys caused the different damage to be dealt but I can't seam to get the multiple attacks to work. SO I was wondering if anyone could share some ideas on how I would get this to work?
because this bellow doesn't work. There are no errors. It just acts like I never changed my code at all to try for multiple attacks.
Code:
#--------------------------------------------------------------------------
# * Frame Update (actor command phase : enemy selection)
#--------------------------------------------------------------------------
def update_phase3_enemy_select
# Update enemy arrow
@enemy_arrow.update
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# End enemy selection
end_enemy_select
return
end
# If C button was pressed
if Input.trigger?(Input::C) or Input.trigger?(Input::Y) or Input.trigger?(Input::X) or Input.trigger?(Input::Z)
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Set action
if @active_battler.is_a?(Game_Actor)
@num_attacks = @active_battler.stam
else
@num_attacks = 1
end
# Set each attacks strength
for i in (1..@num_attacks)
if Input.trigger?(Input::C) or Input.trigger?(Input::Y)
$atk_power[i] = "MED"
end
if Input.trigger?(Input::X)
$atk_power[i] = "STR"
end
if Input.trigger?(Input::Z)
$atk_power[i] = "WEAK"
end
end