- 40
- Posts
- 4
- Years
- Seen Jan 13, 2022
I am trying to get a script working, but I keep running into issues with the new sub-category of isSpecies?
If anyone can help, much appreciated. Code below.
If anyone can help, much appreciated. Code below.
Code:
def pbCelelocus
def isDeterminedSpecies?(species,level)
return @pokemon && @pokemon.isDeterminedSpecies?(species,level)
end
if isDeterminedSpecies?(:SOLROCK,40) &&
isDeterminedSpecies?(:LUNATONE,40)
pbMessage(_INTL("The experiment is beginning.\nHand over the sun and moon, please."))
pbRemovePokemonAt(1)
pbRemovePokemonAt(2)
pbMessage(_INTL("The experiment worked. Here is your new Pokemon!"))
pbAddPokemon(:CELELOCUS,40)
else
pbMessage(_INTL("Come back when you are ready, then."))
end
end