• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] v21.1 | How to make form change update all the time?

  • 2
    Posts
    10
    Years
    • Seen Mar 22, 2025
    I have a form change that could happen at any time even in the middle of battle. It seems like the "getForm" method only runs when you view the status screen of the pokemon? That combined with "getFormOnStartingBattle" makes the form accurate most of the time but when it happens mid battle it doesn't update until the battle ends and I then check the summary or start a new battle. Is there a way to update the form mid battle? Could I edit the "getForm" method so it could run whenever a move is used or at the end of each turn or whenever else I want? The form change occurs when a status is healed is that matters.
     
    Last edited:
    I figured out a solution. For anyone else trying to figure out how to update a form at any specified time do the following:

    remove the line:
    Code:
    $game_temp.in_battle
    from
    Code:
    def form
        return @forced_form if !@forced_form.nil?
        return @form if $game_temp.in_battle || $game_temp.in_storage
        calc_form = MultipleForms.call("getForm", self)
        self.form = calc_form if calc_form && calc_form != @form
        return @form
      end

    then you can add the line
    Code:
    self.pbChangeForm(@pokemon.form, _INTL("{1} transformed!", self.pbThis))

    to any method you want such as pbCureStatus, pbEndTurn, etc and it will properly update into the new form calculated by defining your form conditions in FormHandlers.
     
    Back
    Top