#list

1 messages · Page 1 of 1 (latest)

slim trail
#

How do I use list like what does it do?

remote abyss
#

a list is self-explanatory. it is an ordered list of elements of the given type (float, bool, etc.)

opaque fulcrum
# slim trail How do I use list like what does it do?

Lists are ordered from
0-4049 or 0-65 in list creates
REMEMBER LISTS START FROM 0

Know that a list stores values of almost every data type and if you want to understand lists you must understand what a index and element is

index = The numbered order of a thing on a list

element = A single piece of Data in a list

A list can have only one Data Type at a time int,string,object,vector etc

Lists are used to store lots or multiple sets of Data/Values

Here’s a example for lists and index’s
I wanna save the health of chests with gold for a simulator game
List<int>
0 (index) - 100000 (element)
1 (index) - 277374 (element)
2 (index) - 1 (element)
3 (index) - 19181919191929 (element)

Any number as long as it fits Rec Roms number cap

Typically lists are used for queue systems, pathfinding, list of options to choose from, save lots of int values, save roles ect

#

@slim trail