YAMASKSEY'S PROFILE
Search
Filter
[RMVX ACE] Need Help! Get an Extra Turn when you get a Critical Hit
Everything else works in the playtest and battle test it just the line 357 game_batter thing that keeps popping up
[RMVX ACE] Need Help! Get an Extra Turn when you get a Critical Hit
I did apply a state to it, that state boosts a characters agility hence get him/her an extra turn since i'm using the Yanfly Free Turn Battle System, it just when someone get's a critical this message pops up
Script 'Game_Battler' line 357:: ArgumentError Occurred wrong number of arguments (2 for 1)
Also I'm using this script
class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# * Get Element Modifier for Skill/Item
#--------------------------------------------------------------------------
def item_element_rate(user, item)
if item.damage.element_id < 0
the_rate = (user.atk_elements.empty? ? 1.0 : elements_max_rate(user.atk_elements))
else
the_rate = (element_rate(item.damage.element_id))
end
if the_rate >= 2
user.add_state(26)
end
return the_rate
end
end
This script works in getting an extra turn when I hit an enemy with an element that it's weak against is there a chance that I can modify this so get an extra turn when any of my characters get's a critical on an enemy?
Script 'Game_Battler' line 357:: ArgumentError Occurred wrong number of arguments (2 for 1)
Also I'm using this script
class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# * Get Element Modifier for Skill/Item
#--------------------------------------------------------------------------
def item_element_rate(user, item)
if item.damage.element_id < 0
the_rate = (user.atk_elements.empty? ? 1.0 : elements_max_rate(user.atk_elements))
else
the_rate = (element_rate(item.damage.element_id))
end
if the_rate >= 2
user.add_state(26)
end
return the_rate
end
end
This script works in getting an extra turn when I hit an enemy with an element that it's weak against is there a chance that I can modify this so get an extra turn when any of my characters get's a critical on an enemy?
[RMVX ACE] Need Help! Get an Extra Turn when you get a Critical Hit
I've been trying to modify and add a new script that if your character get's an critical hit on an enemy you get an extra turn. I'm using the Free Turn Battle System made by yanfly and I tried using things such as
You're going to have to redefine apply_critical a bit to make it work.
def apply_critical(user, damage)
user.add_state(id)
return damage * 3
end
and
value = item.damage.eval(user, self, $game_variables)
value *= item_element_rate(user, item)
value *= pdr if item.physical?
value *= mdr if item.magical?
value *= rec if item.damage.recover?
value = apply_critical(user, value) if @result.critical
value = apply_variance(value, item.damage.variance)
value = apply_guard(value)
@result.make_damage(value.to_i, item)
Both of them crash the game when either my character get's a critical hit on an enemy or the other way around can anyone help me out with this?
You're going to have to redefine apply_critical a bit to make it work.
def apply_critical(user, damage)
user.add_state(id)
return damage * 3
end
and
value = item.damage.eval(user, self, $game_variables)
value *= item_element_rate(user, item)
value *= pdr if item.physical?
value *= mdr if item.magical?
value *= rec if item.damage.recover?
value = apply_critical(user, value) if @result.critical
value = apply_variance(value, item.damage.variance)
value = apply_guard(value)
@result.make_damage(value.to_i, item)
Both of them crash the game when either my character get's a critical hit on an enemy or the other way around can anyone help me out with this?
[RMVX ACE] Need Help! Get an Extra Turn when you get a Critical Hit
I've been trying to modify and add a new script that if your character get's an critical hit on an enemy you get an extra turn. I'm using the Free Turn Battle System made by yanfly and i tried using things such as self.add_state and user.add_state can anyone help me?
[RMVX ACE] Gain state on critical hit for all skills? Help please!
[RMVX ACE] Need Battle System Similar to Persona
[RMVX ACE] Need Battle System Similar to Persona
Hello. I'm new to RPG Maker and the current version I have is VX ACE and I'm trying to make a Persona Fan Game but i'm having trouble with the battle system, for example when you hit an enemy's weakness you get an extra turn, if anyone was any advice for alternatives that can help me please tell me as soon as possible.
Pages:
1