- 12
- Posts
- 2
- Years
- Seen Oct 9, 2022
I have seen Thundaga's tutorial about creating a switch that makes pokemon uncatchable. But I am trying to make the roaming legendary dogs uncatchable. In my game they hunt you down where ever you are on the map so I can't really use switches. I was wondering if there is a way in the "Throw a Poke Ball" code to check the name of certain Pokemon and return a message that says they are uncatchable, skipping the "catch" animation.
Right here in the code where is says:
# Determine which Pokémon you're throwing the Poké Ball at
battler = nil
if opposes?(idxBattler)
battler = @battlers[idxBattler]
else
battler = @battlers[idxBattler].pbDirectOpposing(true)
end
battler = battler.allAllies[0] if battler.fainted?
could be the key but I just don't understand the code enough to manipulate it.
I had:
if battler == (:ENTEI)
pbDisplay(_INTL("Entei cannot be caught"))
return
end
but that didn't work. Any help would be appreciated.
Right here in the code where is says:
# Determine which Pokémon you're throwing the Poké Ball at
battler = nil
if opposes?(idxBattler)
battler = @battlers[idxBattler]
else
battler = @battlers[idxBattler].pbDirectOpposing(true)
end
battler = battler.allAllies[0] if battler.fainted?
could be the key but I just don't understand the code enough to manipulate it.
I had:
if battler == (:ENTEI)
pbDisplay(_INTL("Entei cannot be caught"))
return
end
but that didn't work. Any help would be appreciated.