Page 1 of 1

what do int,while,char,actor, and FILE do?

PostPosted: Thu Jan 03, 2008 12:26 am
by DarkParadox
what do these do?:
int
while
char
actor
File

Re: what do int,while,char,actor, and FILE do?

PostPosted: Thu Jan 03, 2008 1:13 am
by Freddy
int stands for integer (a whole number posotive or negative) Its used for declaring variables with integers. (int d; d = 6;)
while I believe is used for loops for example:
while(blablabla)
{
blablabla
}
or something along those lines
char is short for character (a number or a letter or a symbol) again this is used for declaring variables, except with characters
an actor is a character in your game
and FILE...I have no idea :(
Anyway, I hope that helps a littl bit :D

Re: what do int,while,char,actor, and FILE do?

PostPosted: Thu Jan 03, 2008 1:29 am
by DarkParadox
no not that actor the one when you type "Actor" and it turns bright green
also FILE turns bright green when you type it too.

Re: what do int,while,char,actor, and FILE do?

PostPosted: Thu Jan 03, 2008 1:37 am
by Freddy
Yeah I noticed the green, when I was expirimenting with the terms in the script editor, but I didnt get anywhere.

Re: what do int,while,char,actor, and FILE do?

PostPosted: Thu Jan 03, 2008 3:02 am
by Fuzzy
Actor and FILE are pointers, special variables that can point to other variables.. or groups of them.

Re: what do int,while,char,actor, and FILE do?

PostPosted: Thu Jan 03, 2008 3:09 am
by Game A Gogo
I'm not sure what Actor does, but FILE is for storing file information to be saved/read for later usage, that way you can make external media and read external media

Re: what do int,while,char,actor, and FILE do?

PostPosted: Mon Jan 21, 2008 10:02 pm
by yttermayn
Fuzzy wrote:Actor and FILE are pointers, special variables that can point to other variables.. or groups of them.


Any examples of their use? Especially the Actor pointer...

Re: what do int,while,char,actor, and FILE do?

PostPosted: Tue Jan 22, 2008 8:40 pm
by DarkParadox
yttermayn, i have figured out the true purpose of Actor,
this is one: you can use them in the global code to while
creating a custom function, Example(part of morcior's typing code):

void txtClear(Actor *ent) { sprintf(ent->text, " "); }

i can't really expain anything but Actor in this code, if you use this in normal script editor in the actor area you will type: &theActor, by typing that you are designating the actor this code will effect.