Valid Equations in Expression Editor

romyrome2005romyrome2005 Member Posts: 14
edited November -1 in Working with GS (Mac)
After making an entire scoring system, I noticed that some of my equations aren't actually written correctly for game salad. For example:

game.Score to = game.Score+A+(B*C) doesn't seem to work. Only the variable 'A' is counted.

Interestingly, to = game.Score+(B*C) seems to work.

I assumed my equations were correct because at no time did game salad give me any 'invalid equation' prompt. It only seemed to ignore the wrong parts of the equation.

Am I writing it wrong? How should I write it?

Thanks

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    romyrome2005 said:
    After making an entire scoring system, I noticed that some of my equations aren't actually written correctly for game salad. For example:

    game.Score to = game.Score+A+(B*C) doesn't seem to work. Only the variable 'A' is counted.

    Interestingly, to = game.Score+(B*C) seems to work.

    I assumed my equations were correct because at no time did game salad give me any 'invalid equation' prompt. It only seemed to ignore the wrong parts of the equation.

    Am I writing it wrong? How should I write it?

    Thanks

    Ooh! I LOVE score equations! :D

    I think some extra info might help, but try this:

    game.Score to = game.Score+(A+(B*C))

    Hope that helps!

    QS :D
Sign In or Register to comment.