Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] How to make events for Deoxys and Rotom's forms?

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old September 26th, 2012 (08:03 PM).
LenSho's Avatar
LenSho LenSho is offline
 
Join Date: Sep 2012
Gender: Male
Nature: Modest
Posts: 93
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)?
Reply With Quote
  #2    
Old September 30th, 2012 (10:48 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,481
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
__________________
Reply With Quote
  #3    
Old September 30th, 2012 (01:07 PM).
LenSho's Avatar
LenSho LenSho is offline
 
Join Date: Sep 2012
Gender: Male
Nature: Modest
Posts: 93
Ok, it worked just fine. Thanks for your help!
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 10:41 AM.