Hello, fellow Trainers!
Over the past few days, I have been looking into ways of giving a Pokémon ANY ability. Currently, Essentials only allows you to set a Pokémon's ability as any of its legal abilities - that is, the ones defined in the PBS File for that Pokémon. So basically, I want it to be possible that a Pokémon's ability can be set to ANY ability (aside from the regular ones which it can already have) - be it via a script in an event or a function similar to setAbility().
I personally think that if Essentials allows you to have any move on a Pokémon (regardless of legality) then it should allow this for abilities as well.
So far, I have tried creating a separate function setHackedAbility(). It opens up the list of all abilities and the player picks one (pbChooseAbilityList). I must have done something wrong however, cause this doesn't seem to work, the Pokémon still shows up with one of its regular abilities in its Summary Screen as well as in Battle.
Another way I tried is the simple way of changing abilities - looking at what moves like Worry Seed and Entrainment do & replicate the same (pokemon.ability=getConst(PBAbilities,:ABILITYNAME). I put this in a script session to modify the Pokémon's ability before starting the battle & then fronted that Pokémon with my Trace Ralts so that I can know it's ability immediately. And of course, it wasn't changed. It showed up one of the regular abilities again.
So, could anyone help out here? I think it's just some legality check that is disallowing illegal abilities or I could be wrong.
I can provide the code of what I did if anybody wants.
All help is much appreciated, thanks in advance!
Over the past few days, I have been looking into ways of giving a Pokémon ANY ability. Currently, Essentials only allows you to set a Pokémon's ability as any of its legal abilities - that is, the ones defined in the PBS File for that Pokémon. So basically, I want it to be possible that a Pokémon's ability can be set to ANY ability (aside from the regular ones which it can already have) - be it via a script in an event or a function similar to setAbility().
I personally think that if Essentials allows you to have any move on a Pokémon (regardless of legality) then it should allow this for abilities as well.
So far, I have tried creating a separate function setHackedAbility(). It opens up the list of all abilities and the player picks one (pbChooseAbilityList). I must have done something wrong however, cause this doesn't seem to work, the Pokémon still shows up with one of its regular abilities in its Summary Screen as well as in Battle.
Another way I tried is the simple way of changing abilities - looking at what moves like Worry Seed and Entrainment do & replicate the same (pokemon.ability=getConst(PBAbilities,:ABILITYNAME). I put this in a script session to modify the Pokémon's ability before starting the battle & then fronted that Pokémon with my Trace Ralts so that I can know it's ability immediately. And of course, it wasn't changed. It showed up one of the regular abilities again.
So, could anyone help out here? I think it's just some legality check that is disallowing illegal abilities or I could be wrong.
I can provide the code of what I did if anybody wants.
All help is much appreciated, thanks in advance!
Last edited: