Need Help: Rule Logic When Atribute

GAMEINTERNGAMEINTERN PRO Posts: 56
edited August 2012 in Working with GS (Mac)
Hi!

Is there a way to set up a attribute to say if :

When game.a ( = ) 1 2 or 3

Do ( Action )

Without having to put in Three or Four Rule boxes?

this would save space and time.

thanks!

Comments

  • DanDaMan123DanDaMan123 Member Posts: 216
    towards the top of the rule block there is something that says 'all.' Click this and change it to 'any.' Then, add two conditions, (so there are three total). One of them 'if game.a = 1' the next condition 'if game.a = 2' and the last 'if game.a =3'
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    I tried that but I dont think the code checks again for the condition.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited August 2012
    In order to help you I would need to know what game.a does how often does it change?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited August 2012

    @CGOStudios

    Hi, it should work just fine as @DanDaMan123 suggested, providing you set the Rule to Any as he said.

    Maybe set up a temporary actor on-screen with a Display Text to show the state of the attribute "a" during gameplay. You're bound to discover something else is going on that's not giving you the desired effect.

    But if still you've got a problem for whatever reason, try amending the Rule to When attribute a > 0 AND when attribute a < 4.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.