• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

How to make events for Deoxys and Rotom's forms?

  • 93
    Posts
    12
    Years
    • Seen May 4, 2018
    Hello, I've been looking at both the wiki and the PokemonMultipleForms scripts. I think I understand how to make alterate forms, but I have no idea how to trigger certain form changes happen (like Deoxys and Rotom), so my question is:

    How do I make an event that changes Deoxys or Rotom's forms by interacting with it (being a meteorite, appliance, etc)?
     
    I have this on my game. A script-only example:
    Code:
    # This change all Deoxys form in your party. 
    # You can use pbChoosePokemon(1,3) for individuals
    # Put this script above main. Use by command: 
    # 'Kernel.pbMessage(_INTL("Something happened")) if changeForm(PBSpecies::DEOXYS,4)'
    def changeForm(species,form_amount)
      changed=false
      if(pbHasSpecies?(species))    
        for pokemon in $Trainer.party 
          next if pokemon.egg?
          if pokemon.species==species
            pokemon.form==(form_amount-1) ? pokemon.form=0 : pokemon.form+=1
            changed=true
          end
        end
      end
      return changed
    end
     
    Back
    Top