View Single Post
  #1  
Old 05-15-2005, 01:32 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Question MultiDimensional Arrays

This is new to me and it looks weird. Will someone be kind enough to explain to me how they work and provide some basic examples. I just got GS2 on this world I'm developing and want to experiment with this stuff.

I have seen some scripts that have lines of code like ...
NPC Code:

myvar = {{{val}}, val2, val3};



I believe there is another way of creating them for GS2 that is like old GS1
Quote:
GS1 -> setarray myvar,length;
GS2 -> setarray(myvar,length); // not quite sure
How would a multidimensional array be set for GS2?

If anyone could explain this to me and provide a couple of examples I would be extremely greatful. Thanks
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote