Difference between revisions of "Category:Pluggy"

Jump to navigation Jump to search
686 bytes added ,  16:25, 19 February 2008
imported>Speedo
(Added note about ArrayID's)
imported>Haama
Line 54: Line 54:
**#Note that other mods will be able to look at your array regardless of Protection or Global flags.
**#Note that other mods will be able to look at your array regardless of Protection or Global flags.
**#The corresponding mod for each array can be changed with [[ArrayEsp]].
**#The corresponding mod for each array can be changed with [[ArrayEsp]].
*Each array has its own ID which is a [[Long]] number from 0 up. For instance, the first array you create will have an ID of 0, and the second one will have an ID of 1. The ID is returned when you create the array (either via [[CreateArray]] or [[CopyArray]]).
**You can store the ID in a [[Long]] variable, scripted effect (with [[SetNthEffectItemMagnitude]]), etc., and is exactly like any other number.
**If you wish to test a variable for a valid ArrayID, use the function [[ArrayCount]].
***While various Pluggy functions are capable of checking the validity of an ArrayID, [[ArrayCount]] is recommended since it does not have the potential to alter the array if used incorrectly.
*Arrays have indexes from 0 to (array size - 1). The array size is set when you first create the array and can be modified with [[ArraySize]].
*Arrays have indexes from 0 to (array size - 1). The array size is set when you first create the array and can be modified with [[ArraySize]].
*There are 3 '''SetInArray''' and '''FindInArray''' functions: one for integers, one for floats, and one for references.
*There are 3 '''SetInArray''' and '''FindInArray''' functions: one for integers, one for floats, and one for references.
Anonymous user

Navigation menu