- 4
- Posts
- 6
- Years
- Seen Jul 19, 2022
So, for example, I want to add different Electrode forms for the different Pokeballs. I think I know how to get the game to check what form to evolve into based on the Rockruff/Lycanroc script. I can't figure out how to make it actually recognize the conditions I set per form, if that makes sense? Here is the script I have:
I want Voltorb to evolve into the original electrode at level 30 if no other conditions have been met, Love Ball at max happiness, Master Ball at 55 with Psystrike. I have more forms but I thought I should figure out how to do this before I work any more on it.
Love Ball form works fine, but Master Ball form gives me this error:
It evolves into original form if no other conditions are met, but it also ignores the level 30 requirement and just evolves upon any level up. Probably because i set it to evolve at level 1 in the PBS file, but I figured the
Any help would be appreciated!! :)
Spoiler:
MultipleForms.register(:VOLTORB,{
"getForm" => proc { |pkmn|
next 17 if pkmn.level >= 55 && pkmn.HasMove?(PSYSTRIKE) # Master Ball
next 1 if pkmn.happiness = 255 # Love Ball
next 0 if pkmn.level >= 30 # Original
}
})
MultipleForms.register(:ELECTRODE,{
"getFormOnCreation" => proc { |pkmn|
next 17 if pkmn.level >= 55 && pkmn.HasMove?(PSYSTRIKE) # Master Ball
next 1 if pkmn.happiness = 255 # Love Ball
next 0 if pkmn.level >= 30 # Original
},
})
I want Voltorb to evolve into the original electrode at level 30 if no other conditions have been met, Love Ball at max happiness, Master Ball at 55 with Psystrike. I have more forms but I thought I should figure out how to do this before I work any more on it.
Love Ball form works fine, but Master Ball form gives me this error:
Spoiler:
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.0]
[v19.1 Hotfixes 1.0.7]
[EBDX v1.2.5]
Exception: NameError
Message: uninitialized constant PSYSTRIKE
Backtrace:
255:FormHandlers:559:in `block in <main>'
255:FormHandlers:31:in `call'
247:Pokemon:148:in `form'
131:Species_Files:119:in `icon_filename_from_pokemon'
257:Pokemon_Sprites:132:in `pokemon='
273:UI_Party:266:in `pokemon='
273:UI_Party:828:in `block in pbRefresh'
273:UI_Party:824:in `each'
273:UI_Party:824:in `pbRefresh'
273:UI_Party:918:in `pbRefresh'
It evolves into original form if no other conditions are met, but it also ignores the level 30 requirement and just evolves upon any level up. Probably because i set it to evolve at level 1 in the PBS file, but I figured the
would fix that...pkmn.level >= 30
Any help would be appreciated!! :)