Thread: Fun Challenge!
View Single Post
  #9  
Old 01-24-2004, 07:08 PM
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
meh, the 9 should have been 8 upon further consideration, but I dun like it anyhow, this is better

NPC Code:

for (i=0;i<8;i++) {
i = (i/3==int(i)/3)?i+1:i;
a = int(random(0,6.9));
while (!save[a]==0) a=(a+1)%7;
save[a]=i;
}
a = save[int(random(0,6.9))];



redundancy is fun
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote