Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what do they do?...
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: what do they do?...

That's a loop. It translates into "For every integer between 0 and less than 10, inclusive of 0, give the player 1 tinderbox". It will give the player 10 tinderboxes.

For loops are very handy. Toy around with them, I'm sure you'll find great uses for them Smile

//--------------------

Cases are used in switch functions. They're basically step-wise functions that are executed based on a variable. In vernacular it means "if the designated variable is 1, execute case 1; if the designated variable is 2, execute case 2; etc"

They're handy in a wide variety of functions. I suggest you master them, you'll find scripting events, puzzles, even your soundscape MUCH easier.

(This post was last modified: 06-21-2011, 04:57 PM by palistov.)
06-21-2011, 04:55 PM
Find


Messages In This Thread
what do they do?... - by X4anco - 06-21-2011, 04:51 PM
RE: what do they do?... - by palistov - 06-21-2011, 04:55 PM
RE: what do they do?... - by X4anco - 06-21-2011, 04:56 PM
RE: what do they do?... - by palistov - 06-21-2011, 05:02 PM
RE: what do they do?... - by Apjjm - 06-21-2011, 05:46 PM
RE: what do they do?... - by palistov - 06-21-2011, 05:53 PM
RE: what do they do?... - by Apjjm - 06-21-2011, 06:09 PM
RE: what do they do?... - by palistov - 06-21-2011, 06:14 PM
RE: what do they do?... - by xiphirx - 06-21-2011, 06:57 PM



Users browsing this thread: 1 Guest(s)