• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
11
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)?
     

    FL

    Pokémon Island Creator
    2,450
    Posts
    13
    Years
    • Seen yesterday
    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