Draconic_Dragon12
SalamenceLvX or simply Salamence
- 11
- Posts
- 6
- Years
- Seen Apr 27, 2024
Tried, doesn't work.maybe you should change like:
if pkmn.species = :DEOXYS && pkmn.form = 2
setBattleRule("disablePokeBalls")
...
...
Noted, thanks.As an aside you should really be setting battle rules before the battle, in the event itself. while you can technically set it here, it's not supposed to be set here, this proc isn't intended for side effects like this.
The code has a typo. it should be == (comparison) not = (assignment)Tried, doesn't work.
For what part? pkmn.species and pkmn.form (and others similar) use =. == crashes.The code has a typo. it should be == (comparison) not = (assignment)
you use == to check a value.For what part? pkmn.species and pkmn.form (and others similar) use =. == crashes.
pkmn.isSpecies?(:DEOXYS)
for species specifically.Oh my gosh that works. Thank you so much.you use == to check a value.
so conditionals will use them.
if it crashes, you should post the error and stacktrace here.
but you can also usepkmn.isSpecies?(:DEOXYS)
for species specifically.