The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Scripts & Tutorials
Reload this Page Essentials Tutorial Hansiec's Scripts, commands, and explatantion on how it works!
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


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 19th, 2010 (6:09 AM).
Umbra's Avatar
Umbra Umbra is online now
Platinum Tier
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 19
Gender: Female
Nature: Calm
Posts: 1,732
Well anyways, I'm here to teach all that is interested in poccils starter kit how to script with it. Don't read this if you have the following: No interest in his starterkit or already know basic scripting.

Common Script commands and what they do
Scripts usally used in a conditional branch
pbAddPokemon(pokemon,level) (gives you a pokemon replace pokemon and level to the appropriate pokemon and level)
pbReceiveItem(PBItems::item) (first off if this one is wrong correct me.)(Adds an item)
pbItemBall(PBItems::item) (adds an item pokeball style.)
$Trainer.party.length==6 (sees if the trainer party is full if it is it returns true (the upper part of the conditional branch)usally used when wanting to add an egg or a foreign pokemon.)
pbAddForeignPokemon(pokemon,level,owner,nickname(optional)) (adds a pokemon owned by someone else to your party only.)
pbGenerateEgg(pokemon,level) (first off the appears when the pokemon hatched it generates an egg in your party only.)
$trainer.badges[x] (replace x with 0,1,2,3,4,5,6, or 7 (0 starts with badge 1 and 7 is badge 8))
Scripts used in script editor
Mystery Gift
Spoiler:

def pbMysteryGift # defines call method
=begin
|
defines the passwords and stores the results in pokemon and level. v
=end
pokemon=Kernel.pbFreeText(_INTL("Enter the first part of the password"),0,100,false)level=Kernel.pbFreeText(_INTL("Enter the second part of the password"),0,100,false)pokemon*2
pokemon-4
pokemon/2
level*2
level-4
level/2
=begin
|
starts an if branch and checks to see if this is a correct code v
=end
if level>100 || pokemon>493 || level<=0 || pokemon<=0
Kernel.pbMessage(_INTL("Sorry, this code is incorrect.")) # text
return false #returns to the game and the script status is false
end # ends the if branch
pbAddPokemon(pokemon,level) #adds the pokemon with the defined texts pokemon and level
end #ends the script.


For now this is all, I will be adding more scripts,

by the time you read this whole thing, you should have atleast a little scripting knowledge, until next updat goodbye.
Reply With Quote

Relevant Advertising!

  #2    
Old October 20th, 2010 (10:32 AM).
Stiwo's rule's Avatar
Stiwo's rule Stiwo's rule is offline
ahahahah.... NO, YOU NOT FUNNY
 
Join Date: Apr 2010
Location: Italy ♥
Age: 21
Gender: Male
Nature: Relaxed
Posts: 20
woohoo! those commands are so usefull! I didn't know hot to call events, but you explained well =D
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

Forum Jump


All times are GMT -8. The time now is 7:52 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 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 - 2016 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.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.