• 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.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.

[SOLVED] Increasing type effectiveness via switch

pkmnacademia

Trainer
Member
Joined
Mar 24, 2023
Posts
59
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?
 

pkmnacademia

Trainer
Member
Joined
Mar 24, 2023
Posts
59
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
 
Back
Top