HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can someone explain to me how to use arrays!?

05-04-2004, 04:56 PM#1
Strom
I'm very confused on how to go about using arrays, or what's the best situation to use them in. I know that there important and they help with map making. When you want something to randomely change I hear there also good for that, but I have no idea how to implement these things. So I was wondering if someone could point me to a how to tutorial or give me a example of arrays in use. Or show me how it's done because i'm confused when it comes to arrays :\

Thanks,
Sincerely,

Strom Stonebeard
05-04-2004, 05:11 PM#2
Kamux
There is a tutorial on my site (check sig) that explains variables and arrays and it has pictures and an exaple trigger for the use of arrays.
05-04-2004, 06:47 PM#3
SharQueDo
an integer array for example, has serveral of the same name with an number behind it

normal integer:

- thenumber

array integer

- thenumber[1]
- thenumber[2]
- thenumber[3]
- thenumber[4]
- thenumber[5]
- thenumber[6]
...
...
- thenumber[24892528]
...
...

it can be used for player grouping (player 1 to group[1], player 6 to group[6], ect).


or for player dialogs: array dialog (player 2 dialog to dialog[2])

edit: its for grouping several values in 1 integer/string/something else

be wary afaik no floating numbers (1,5 - 612,1 - 2,20371) can be used.