Re: BGT help please.
Here is how I would write what I think you are trying to do here.
//Declares a variable called mangos and asigns 4 as the value.
int' mangoes=4;
//Declares a variable called apples, and asigns 5 as the value.
int apples=5;
//Declares a variable called fruit_basket and has the value set to mangos plus apples, which is 9 according to our previous declarations.
int fruit_basket=mangoes+apples;
//This is our main function, a function is a portion of code that is only executed when the function is called. The main function is the very first function that is run after a program is compiled, it's the master function in a way. To tell the compiler what things go inside of the function you use { and }. You just put your code within those two braces as shown in the example below.
void main()
{
alert("hello", "I am a BGT script!");
alert("Counting Fruit", "The contents of the fruit basket
are as follows, there are "+apples+" apples, and "+mangos+" mangos. In total there are "+fruit_basket+" fruits in the basket.");
}
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector