User Tag List

Results 1 to 6 of 6

Thread: syntax list and if then ?

  1. #1
    No Products Registered

    Join Date
    May 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    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
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: syntax list and if then ?

    Sorry for the double post. Dog got to barking and lost gray matter.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    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!

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    No Products Registered

    Join Date
    May 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    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
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Syntax highlighting
    By Looki in forum Extension Development
    Replies: 5
    Last Post: 22nd October 2015, 04:06 PM
  2. ini++ subgroup syntax
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 21st February 2011, 09:55 PM
  3. Red Syntax Text
    By olltwit in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st May 2010, 07:02 PM
  4. Set key syntax
    By Shmuper in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th May 2010, 07:19 AM
  5. Syntax Checker
    By LazyCoder in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 7th March 2008, 10:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •