The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old October 18th, 2010 (07:47 AM).
Umbreon's Avatar
Umbreon
Community Supporter
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Alright here I'll show you my tutorial on rotom form changing

call with pbRotomForm1

# Start here
def pbRotomForm1 # Defines the call method
pkmn=pbFirstAblePokemon # get's the first pokemon that has 1hp+
if pkmn!=479 # checks if the pokemon is rotom.
Kernel.pbMessage(_INTL("Your text here if not rotom.")) # text if you don't have rotom first in your party.
return false # exits the script as false
end # ends the if branch
Kernel.pbMessage(_INTL("Your text here if pokemon = rotom.")) # text if you have rotom in the first slot with 1+ hp.
pkmn.form=x # (change form by replacing x 0 is normal 1+ is different forms, it is different for each kit.)
end # ends the script.
###End Script###


Well it's as simple as that!
Reply With Quote
  #2    
Old April 10th, 2011 (01:39 AM).
p.claydon
 
Join Date: Jan 2011
Gender:
just a quick question how does this choose the image for the different form is there a file name format that needs to be followed or something
Reply With Quote
Reply
Quick Reply

Sponsored Links
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:34 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.