- 3
- Posts
- 3
- Years
- Seen Sep 8, 2021
Hello,
I am currently making an Emerald hack, and I want to add an ability that is like Intimidate but for Special Attack, called Mystify. So far I have defined the ability in include/constants/abilities.h, added the name and description in src/data/text/abilities.h, created the special status mystifiedMon and the battle structure mystifyBattler in include/battle.h, and added a resource flag in include/battle.h:
(I am not sure if this way to implement a resource flag is correct, since I changed other hex values to fit the new flag in). Additionally, I added this code to src/battle_util.c:
However, at this point I am not sure how to continue with the ability. I am especially confused by the use of ABILITYEFFECT_INTIMIDATE1 and ABILITYEFFECT_INTIMIDATE2 within src/battle_util.c (as well as some other files, specifically with 2), as well as the command extern const u8 BattleScript_IntimidateActivatesEnd3[]; in include/battle_scripts.h
Why is Intimidate differentiated with numbers, what do these numbers mean, and how should I continue from here with the Mystify ability?
Thank you in advance
I am currently making an Emerald hack, and I want to add an ability that is like Intimidate but for Special Attack, called Mystify. So far I have defined the ability in include/constants/abilities.h, added the name and description in src/data/text/abilities.h, created the special status mystifiedMon and the battle structure mystifyBattler in include/battle.h, and added a resource flag in include/battle.h:
(I am not sure if this way to implement a resource flag is correct, since I changed other hex values to fit the new flag in). Additionally, I added this code to src/battle_util.c:
However, at this point I am not sure how to continue with the ability. I am especially confused by the use of ABILITYEFFECT_INTIMIDATE1 and ABILITYEFFECT_INTIMIDATE2 within src/battle_util.c (as well as some other files, specifically with 2), as well as the command extern const u8 BattleScript_IntimidateActivatesEnd3[]; in include/battle_scripts.h
Why is Intimidate differentiated with numbers, what do these numbers mean, and how should I continue from here with the Mystify ability?
Thank you in advance