• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!

[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