• 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!
  • 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?

  • 94
    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