Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-27-2002, 04:54 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by WHIPENIE4

Yes pwease
Variable arrays are an easy way to store multiple values to one variable:

this.variable={0,1,2,3,4,5}

The above sets the arrays for the variable 'this.variable'. To access the arrays you use:

if (this.variable[1]=value) {}

Roughly, that says, if the array 1 of this.variable is equal to a value the contents of {} occur.
Arrays start at 0. So the arrays for that variable would be:

this.variable[0]=0
this.variable[1]=1
this.variable[2]=2
And so on...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.