Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting definitions?
Author Message
Rel Offline
Junior Member

Posts: 21
Joined: Jul 2011
Reputation: 0
Post: #1
Scripting definitions?
Could someone tell me a good place with simple definitions for things like If and void and those types of things in scripts?
07-18-2011 08:31 AM
Find all posts by this user Quote this message in a reply
Ouroboros Offline
Junior Member

Posts: 20
Joined: Jul 2011
Reputation: 0
Post: #2
RE: Scripting definitions?
If you're asking what I think you're asking, functions can be bool, int, and so on and at the end have "return(a number or true/false);" at the end, which gives that to a variable somewhere else. Void means that it doesn't have a value to give to a variable.

If works by checking if something is true or not.

if(A == B) {do something}
else {something else}

If A had a value equal to B then it would do the first thing, if not then it would do the other thing. Of course adding else is optional.

Is that what you were asking? If it is, I can post more about some things you can do with if statements.
(This post was last modified: 07-18-2011 08:45 AM by Ouroboros.)
07-18-2011 08:44 AM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #3
RE: Scripting definitions?
http://www.cprogramming.com/tutorial.html

07-18-2011 08:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Rel Offline
Junior Member

Posts: 21
Joined: Jul 2011
Reputation: 0
Post: #4
RE: Scripting definitions?
(07-18-2011 08:44 AM)Ouroboros Wrote:  If you're asking what I think you're asking, functions can be bool, int, and so on and at the end have "return(a number or true/false);" at the end, which gives that to a variable somewhere else. Void means that it doesn't have a value to give to a variable.

If works by checking if something is true or not.

if(A == B) {do something}
else {something else}

If A had a value equal to B then it would do the first thing, if not then it would do the other thing. Of course adding else is optional.

Is that what you were asking? If it is, I can post more about some things you can do with if statements.

Ya thats exactly what i meant haha, and thanks tanshay, im looking around that site now.
07-18-2011 09:31 AM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #5
RE: Scripting definitions?
First three or four tutorial should answer all of your questions and let you to get a grasp of general programming logic.

07-18-2011 09:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)