View Single Post
  #6  
Old 09-03-2003, 05:41 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Re: Re: Brief explanations about some new features: (NEW SCRIPT ENGINE)

Quote:
Originally posted by CheeToS2
so, you could do something like this?
NPC Code:

if (created){
a = {2,3,5,8};
setarray c,4;
i=0;
for (b: a){
c[i] = b;
setplayerprop #c,Set c[#v(i)] to #v(c[i]);
i++;
}
}
// pointless yeah & more complicated than it needs to be, but just trying to make sure I understand it

[/B]
I don't think it's a loop, nor does it take the { }'s
just
for (a: b);
that's what I got from it, I haven't seen a few of these types of features before, thanks Jagen
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote