You are not logged in.
Pages: 1
I want to make attacks such as Thunder Wave, PoisonPowder, and Leech Seed (afflicting Paralysis, Poison, and Leech Seed effect, respectively) so that if used against, respectively, an Electric-type, a Poison-type, or a Grass-type, the standard "It doesn't affect [INSERT POKéMON NAME HERE]" message is displayed. How would I do so?
Offline
This is what I did for steel types in the poison effect code:
.poisonEffect
call CheckTargetSubstitute
jr nz, .noEffect ; can't posion a substitute target
ld a, [hli]
ld b, a
and a
jr nz, .noEffect ; miss if target is already statused
ld a, [hli]
cp POISON ; can't posion a poison-type target
jr z, .noEffect
cp STEEL
jr z, .noEffect
ld a, [hld]
cp POISON ; can't posion a poison-type target
jr z, .noEffect
cp STEEL ; can't poison a steel Pokémon
jr z, .noEffect
ld a, [de]
Maybe you could make use of that.
Offline
Which one should I change to ".doesntAffect", if this is where I change any instance of ".noEffect" to ".doesntAffect"?
Offline
Pages: 1