How can I change the critical hit damage?

Status
Not open for further replies.

pikmonwolf

Villager
Member
Joined
Aug 31, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMVXA
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?
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
Add 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
 

pikmonwolf

Villager
Member
Joined
Aug 31, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMVXA
@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.
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
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.
 

pikmonwolf

Villager
Member
Joined
Aug 31, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Oh wonderful, I was way overthinking it. Thanks for the help my guy. Hopefully this helps any future googlers too lol.
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
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)
 

pikmonwolf

Villager
Member
Joined
Aug 31, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Oh sweet it worked, thanks!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
@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
 

Ms Littlefish

Dangerously Caffeinated
Global Mod
Joined
Jan 15, 2014
Messages
6,417
Reaction score
8,104
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top