Save first 3 results to a 3 dimensional Array ?

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Java
a lesser mummy
a lesser mummy
Posts: 73
Joined: Sat Jul 13, 2002 12:03 pm

Save first 3 results to a 3 dimensional Array ?

Post by Java » Sun Sep 29, 2002 3:48 am

I have been trying to set a 3 dimensional Array filled with
the Values from doing a /who npc radius 199.

I was thinking that

Code: Select all

	/varset a(50,0) ((/who npc radius 199))
	/varset a(50,1) ((/who npc radius 199))
        /varset a(50,2) ((/who npc radius 199))
would work, but it's more pseudo code then functional code.

I'd like to assign the first 3 results into a 3 dimensional array.
Now looking at it seems silly, because the /Who command could return an npc of lvl 1 to 99, and it could return theoretically unlimited npc's per try.

What i really want is to use the command 1 time, saving the first 3 results into 3 variables.

Is it possible?
Please throw me a bone here. Where else to look aside from the readme file.
My perception is my reality.

[url=http://www.phpbb.com/][img]http://www.mutedfaith.com/images/illusion.jpg[/img][/url]