- 1,224
- Posts
- 10
- Years
- Omnipresence
- Seen Aug 8, 2023
I have most of the ability in, but I need help changing the pokemon back once the illusion is broken.
In PokeBattle_Move I have
right before Justified, but I can't figure out what to add into it (if it would even be the right place) to change the graphic and name back. Help would be appreciated. Once I get past this step, I'll do a bit more testing and then try to make a tutorial on how to add it.
Edit: Also having trouble getting the right name called when switching pokemon. Will hopefully eventually fix everything :/
Edit2: Fixed the name call, as well as the name displayed next to the hp bar. Only thing to do now is change graphic and name when it breaks, code for double battles, and I think there might be an exp gain bug.
In PokeBattle_Move I have
Code:
if opponent.effects[PBEffects::Illusion]==true
opponent.effects[PBEffects::Illusion]=false
@battle.pbDisplayPaused(_INTL("{1}'s Illusion broke!",opponent.name))
end
Edit: Also having trouble getting the right name called when switching pokemon. Will hopefully eventually fix everything :/
Edit2: Fixed the name call, as well as the name displayed next to the hp bar. Only thing to do now is change graphic and name when it breaks, code for double battles, and I think there might be an exp gain bug.
Last edited: