Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-26-2002, 09:17 AM
Logo Logo is offline
Banned
Join Date: Nov 2001
Posts: 377
Logo is on a distinguished road
Send a message via AIM to Logo
Logo's Newbie Scripting Big Guy Scripting Function of THE DAY

The "for" command is a very good command. Used for indexes, etc., or hell,it can be used for just about anything.

Here is what the basic for command looks like:

NPC Code:

for (var=integer;var<othervaroninteger;var++) {}



The first little section thing (for (HEREPEOPLE;.;.) {}) does what it says there, then for the middle section, every time it performs what is inside the {} brackets, it checks to see if var is less than, equal to, or more than the other integer or variable. If it is, it does what is in the brackets, then does what is in the 3rd section/column. I know it's a sloppy explanation, but it is understandable.
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:00 AM.


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