ID:175537
 
I can't remember if you can setup an Array VAR in BYOND or not.. anyone know the answer?

var/array[2]

var/list/some_list = list("blah","bleh")

mob
verb
ViewArray()
usr << some_list[2] //this will output the second entry in "some_list" which is "bleh"
In response to Nadrew
Ah great Nadrew.. getting caught up in naming conventions again I guess?? :P

Another question as I'll be making quite a few list. Is there a limit to the number of list you can have in a BYOND program?? If not.. what is a safe to stick around if going for quite a few??? At the moment my program will need 71 lists to function the way I need it to.

LJR
Nadrew wrote:
> var/list/some_list = list("blah","bleh")
>
> mob
> verb
> ViewArray()
> usr << some_list[2] //this will output the second entry in "some_list" which is "bleh"
>
In response to LordJR
LordJR wrote:
Another question as I'll be making quite a few list. Is there a limit to the number of list you can have in a BYOND program?? If not.. what is a safe to stick around if going for quite a few??? At the moment my program will need 71 lists to function the way I need it to.

BYOND's current limit is 65,535 lists. :)