I simply want to change it form triple to double damage, but I tried changing it from the standard battler script and using note tags alongside the yanfly LDP crit script. Neither worked. No matter what I try crits are 3x damage. Any suggestions?
How can I change the critical hit damage?
RPG Maker VXAce SupportAdd this to the top your script list (below materials). Use whatever formula you want for critical damage.
Code:
#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
# A battler class with methods for sprites and actions added. This class
# is used as a super class of the Game_Actor class and Game_Enemy class.
#==============================================================================
class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# * Overwrite: Apply Critical
#--------------------------------------------------------------------------
def apply_critical(damage)
damage * 2
end
end
@Rinobi Funny enough, it didn't work, but the crash it caused pointed me to what was overwriting the crit damage without me realizing, Theo's side view animation has a direct crit damage overwrite in the basic script. So it fixed the issue by crashing the game lol, so thank you still. Before I get the thread closed, I don't suppose you know how I could make crit damage effected by a stat do you? Like every point in luck increases damage by 1% or something.
Just change the formula to include the luk stat.
damage * (2 + luk * 0.01) # Adds 1% to critical damage per point of luk.
damage * 2 * (1 + luk * 0.01) # Increases critical damage by 1% per point of luk.
damage * (2 + luk * 0.01) # Adds 1% to critical damage per point of luk.
damage * 2 * (1 + luk * 0.01) # Increases critical damage by 1% per point of luk.
Oh wonderful, I was way overthinking it. Thanks for the help my guy. Hopefully this helps any future googlers too lol.
Apologies, that won't work. I remembered that the receiver of critical damage is being referenced in the above example. If you dealt critical damage to an enemy using the above formula, the enemy's own luk stat would increase the damage dealt.
Try this instead:
damage * (2 + SceneManager.scene.subject.luk * 0.01)
damage * 2 * (1 + SceneManager.scene.subject.luk * 0.01)
Try this instead:
damage * (2 + SceneManager.scene.subject.luk * 0.01)
damage * 2 * (1 + SceneManager.scene.subject.luk * 0.01)
Oh sweet it worked, thanks!
@pikmonwolf
If your query is fully resolved, please Report your post and ask for the thread to be closed. Mods might not see a post, but they will see a Report.
Thanks
If your query is fully resolved, please Report your post and ask for the thread to be closed. Mods might not see a post, but they will see a Report.
Thanks
Thread closed IgnoreMe
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-change-the-critical-hit-damage.112752/