Thread: [Guide] Scripting in Essentials 101
View Single Post
Old December 11th, 2012 (10:23 AM).
carmaniac's Avatar
carmaniac carmaniac is offline
Where the pickle surprise at?
    Join Date: Apr 2009
    Location: England
    Age: 22
    Nature: Relaxed
    Posts: 682
    Originally Posted by Musketeer View Post
    This a good thread, carmaniac. Maybe this will help some of the newbies and lower the number of question threads.

    And I think venom12 meant that since if $>=1 checks for Pokémon number 1, in the code 1 basically means 2, and 0 means 1. That would make the code actually search for the second Pokémon in the party, not the first since the first is 0. Although, if they function the way you describe, then there should be no problem.
    When it comes to party.length, it literally is just that, checking the length of the party. if it's >=1 it's seeing if the party length is 1 or higher. The 0 being 1 logic however, applies to the number of the party, i.e $[0] being the first Pokémon. Found that out the hard way on the length checks when I was getting errors calling the Pokémon into a menu XD.

    Pokémon: Lost Souls.

    Developed by Carmaniac.

    Originally Posted by Luka S.J. View Post
    My balls seem to be fine.
    Reply With Quote