Scripting in Essentials 101
View Single Post
December 15th, 2012 (10:42 PM).
Join Date: Jan 2009
When you are using " $Trainer.party", you are referring to the array party, which lies in the Trainer class "I think", remember computers start from 0, not from one. So when you are programming it is important to know that you always start at 0. But lets say you are trying to initialize an array, in lets say java or c++, what you would do is array_name[number of elements]. So for example pokemon, you will have 10 elements which can be used to hold a value. But as I said before to get the first value in the array, you would use pokemon.
$Trainer.party.length is the size of the array, so as Luka said before is true.
Check out the Pokemon Game Engine I am working on:
View Public Profile
Send a private message to zingzags
Find all posts by zingzags
Find threads started by zingzags