Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

critical hit up?

Is there a way to make it that for some characters automatically, or if they wear a certain item, that they're critical hit rate can become 100% or increase a certain percentage? I want one character to basically be a total physical fighter, but he'll have a skill that makes it so he critically hits automatically, it's like his special ability is the ability to spot weakness, anyway that's neither here nor there.

Basically, is there a way to increase the critical hit rate to always be 100 for one certain char?

and also how would I make an item that makes your critical hit rate go up by let's say 10% when you equip it?
 
in Game_Battler 1 change @critical = false to @critical = true
for %100

and as for the skill make a status efect with everything %110 or more
to make a good power up skill

then after you make the skill can make a armor or wep you if want
and have it auto inflict status
 
how do I set it for a particular actor though?

and for the second one... uhm no offense but I know how to make it so it does that, I'm really looking for a just pure and simple critical up item. Is there a way it could be done by only raising the -critical- percentage?
 
bump

again, just looking for a way to make it so a character automatically always critical hits or critical hits a lot

second is just how to make an accessory that increases critical hit rate when worn.
 
Code:
if @active_battler.is_a?(Game_Actor) && @active_battler.id = 1
   if @active_battler.weapon_id == 1 #or whatever the crit-up weapon id is
      self.critical = true
   end
end

or
Code:
if @active_battler.is_a?(Game_Actor) && @active_battler.id = 1
   if @active_battler.weapon_id == 1 #or whatever the crit-up weapon id is
      crit = 40 #in percent
      crit_result = (rand(100) <= crit)
   end
end
if crit_result == true
   self.critical = true
end

or

Code:
if @active_battler.is_a?(Game_Actor) && @active_battler.id = 1
   case @active_battler.weapon_id
   when 1 #if weapon id is 1, crit is 10% etc.
      crit = 10
   when 2
      crit = 30
   end
   crit_result = (rand(100) <= crit)
end

if crit_result == true
   self.critical = true
end

and put it in Game_Battler3 :eek:
 

merfie

Member

Lettuce, Thanks I have also been looking for a way to have weapons with different criticals. I am going to use example #3
However
Code:
if @active_battler.is_a?(Game_Actor) && @active_battler.id = 1
   case @active_battler.weapon_id
How do I edit this so enemies can have different criticals?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top