• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!

[SOLVED] Increasing type effectiveness via switch

MeweightX

Trainer
Member
Joined
Mar 24, 2023
Posts
71
I'm trying to incorporate a feature in my game where certain achievements allow you to increase the damage of all moves any of your Pokemon use of a certain type.

Basically, a type boost like Charcoal or Blaze but for all your Pokemon and only when a switch has been turned on.

I've looked at those examples, but they're reliant on ItemEffects and AbilityEffects, so I wasn't sure how I'd modify base_damage_multiplier with a switch instead, or how I'd make it a blanket effect that applies to all of your Pokemon.

Anyone know how this might be accomplished?
 
Figured it out! If anyone's interested:

In the Move_Usage Calculations script section, add under the def pbCalcDamageMultipliers part:

Ruby:
Expand Collapse Copy
  if user.pbOwnedByPlayer?
    if ($game_switches[92] == true && type == :FIRE)
      multipliers[:base_damage_multiplier] *= 1.1
    end
  end
 
I did something similar, but using a variable instead, so that the damage boost amount could be increased/decreased based on the variable
 
Back
Top