• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!

[SOLVED] Custom evolution method shows 'Unable' in party menu despite working correctly

Blanco_9

Rookie
Member
Joined
Nov 7, 2024
Posts
3
I made a variation of the "item" evolution method to evolve Pokémon into different forms, like Dewott into Hisuian Samurott or Ursaring into Bloodmoon Ursaluna, using a specific item.
However, there's a small problem: when you try to use the item on the Pokémon in the party, it says "Unable," even though if you select the Pokémon, the evolution proceeds normally into the alternate form.
Any idea how to fix this?

Here is the code:

Ruby:
Expand Collapse Copy
GameData::Evolution.register({
  :id            => :UseItemForm,
  :parameter     => :Item,
  :use_item_proc => proc { |pkmn, item, parameter|
    next false unless item == parameter
    pkmn.form = 1
    next true
  }
})
 
here, i've made something similar to get rid of trade evos and region exclusive, try this, just change the ID to your Method Name


Ruby:
Expand Collapse Copy
GameData::Evolution.register({
  :id            => :ItemForm,
  :parameter     => :Item,
  :use_item_proc => proc { |pkmn, parameter, item|
    if item == parameter
        pkmn.form = 1
        next true
    else
        next false
    end
  }
})
 
Back
Top