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 offline
  • Platinum Tier
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 20
Gender: Female
Nature: Calm
Posts: 1,745
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: 22
    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 2:02 PM.