Help with creating Rules

razzsoftrazzsoft Member Posts: 38
edited November -1 in Working with GS (Mac)
When you create a rule there is a + at the righthand side of the rule and then there is also a + at the righthand side of the rule command.

Could somebody please explain the differences in using these two +'s to add to the rule.

Thanks.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    They are the same.
  • razzsoftrazzsoft Member Posts: 38
    Thanks for the reply - can you use the rule for a loop until the right conditions are met
  • rebumprebump Member Posts: 1,058
    From what I can determine, rules are only evaluated initially and then when something in the rule is made dirty (i.e. a value changed). So to get re-evaluation, one or more of the attributes in the rule has to change -OR- you can plop the rule in a timer as that seems to force repeated evaluation each timer interval.

    Also, learn to use "Otherwise" clause of a rule that way something will always be evaluated in binary situations like making things (alpha) appear/disappear, spawn/re-spawn, etc. That seems like no-brainer but you would be surprised what you can go back and tweak/combine as your project gets more complex and things are added to actors later on.
  • razzsoftrazzsoft Member Posts: 38
    Thanks rebump for your reply.

    Could you give me some info on how to use the otherwise clause as I don't seem to be able to find that in the rule
  • razzsoftrazzsoft Member Posts: 38
    cabcom said:
    Thanks rebump for your reply.
  • rebumprebump Member Posts: 1,058
    It's at the bottom of a rule behavior when you add one. Click on the arrow next to "Otherwise:" to expand the area and add your behaviors there. These will be the behaviors you want done when the rule above evaluates to false.

    `
    If condition(s) is/are true
    do stuff
    otherwise
    do other stuff
    `
    "Otherwise" in other computer languages/syntaxes is usually "else".
Sign In or Register to comment.