View Single Post
  #5  
Old 06-04-2002, 09:11 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
NPC Code:

setarray XY,lenght; // define array
for ( i = 0 ; i < lenght * 2 ; i += 2){ // for loop with step of 2
XY[i + 0] = Whatever; // x value
XY[i + 1] = Whatever; // y value
}

// You could easily add as many variables as you like to an array this way.




This is basically how I do it.

I been using arrays for a long time. This works.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote