syntax list and if then ?
Im used to coding in darkbasic pro and having a syntax or command list.
Is there a list of the commands that I can type with the syntax that is supposed to be used ?
Also is there a way to do an if then statement as well as a for next type of loop.
Im working on a space sim and Im tying to get the economy going but being new to MMF2 (I have not used it much) Im finding it a bit hard to manipulate the numbers the way I am used to. Like loading arrays.
One thing I want to do is causing me some trouble is this.
I want say 500 of one type of Item but I want a random value of that 500 distributed to different planets but with a total of 500 units in the end. Kind of hard to do not knowing the syntax :)
Thanks in advance for any help or suggestions.
Re: syntax list and if then ?
In MMF for if then, the syntax:
Counter >10
Counter <15
Your Object: do something
for example.
For a listing, most are in pop up boxes for the events and objects.
Marv
Re: syntax list and if then ?
Sorry for the double post. Dog got to barking and lost gray matter.
Marv
Re: syntax list and if then ?
Quote:
Originally Posted by nivram
Sorry for the double post. Dog got to barking and lost gray matter.
Marv
LOL! :D
stephen1980
Re: syntax list and if then ?
I understand
In MMF for if then, the syntax:
Counter >10
Counter <15
Your Object: do something
I have my head around that.
I guess I was more looking more for something with the power of else if all in one line. But I can live with the above.
When I mentioned syntax I was referring to things like the random(500) command and things where you can use the xpos of an object for calculations as well as the proper place to bracket certain lines as this has caused me a bit of a pain on a few things.
I can see some of them in pop up boxes but I was looking for a list of expressions that was allowed so I would have a better Idea of my options.
Thanks for the reply.
Re: syntax list and if then ?
The expression editor also has some things you can check out. Compare 2 general values and you will see them. Like Pi, sqr and etc.
Marv