v20.1 [SOLVED] Type Effectiveness Conditions

This thread pertains to v20.1 of Pokémon Essentials.

Spudfin

Novice
Member
Joined
Aug 20, 2023
Posts
15
I was wondering how I would be able to change how different types interact under certain conditions. More specifically, how I can temporarily remove a type immunity. If I want to have a move be super effective against a type it's usually ineffective against, I can just look at the code for Freeze Dry and change the damage modifier, but that doesn't work against immunities. For example, let's say I want to make Poison type moves super-effective against Steel types while a specific weather condition is active, or I want the Psychic type moves of a Pokemon with a specific ability to do neutral damage to Dark types. How would I code this?
 

Spudfin

Novice
Member
Joined
Aug 20, 2023
Posts
15
Looked into the codes for Scrappy and Miracle Eye, they're both in the same place. I was able to code the ability but still having trouble with the weather condition.
 
Top