Turn Rules On/Off

joelmejiagananjoelmejiaganan Member Posts: 2
edited November -1 in Working with GS (Mac)
Everytime we test a new rule we change it a lot of times until we get the results we really want.

Sometimes the initial rule is better than the edited one and we have to undo all.

But what if we just copy that rule and edit the copied one and "turn off" or disable the initial rule. That way we don't have to do it all again.

It can be an on/off switch on the rule's name bar.

What do you think?

Comments

  • PhoticsPhotics Member Posts: 4,172
    There's a folder called "My Behaviors" ... you can just drag behaviors into that folder for later use with your project.
  • joelmejiagananjoelmejiaganan Member Posts: 2
    Done. My bad.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Also, you can create a boolean called self.Disabled and leave it false. then just wrap a rule set in

    rule when self.disabled is true
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Yes, it would be great to be able to "comment" out Rules for testing.

    Be a little wary of the 'my behaviors' folder as there is currently a bug where you cannot delete those behaviors...
  • ORBZORBZ Member Posts: 1,304
  • ORBZORBZ Member Posts: 1,304
    The "My Behaviors" folder also seems to get nuked every time a new version of GS is released.

    A disabled checkbox in the rule bar would be ideal. However, until then what I do is just wrap a block of behaviors in a rule where game.name contains DISABLED. This is effectively always false. Make sure you take out any disabled blocks before production though as even the mere presence of rules, even if they are never executed, slows the engine down.
Sign In or Register to comment.