• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

[Essentials Tutorial] Hansiec's Scripts, commands, and explatantion on how it works!

  • 1,723
    Posts
    15
    Years
    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:


    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.
     
    woohoo! those commands are so usefull! I didn't know hot to call events, but you explained well =D
     
    Back
    Top