How to specify when attribute = multiple values?

DigiChainDigiChain Member, PRO Posts: 1,288
edited November -1 in Working with GS (Mac)
Hi,

I've created a rule:
When Attribute 'X' = 10
Change Attribute - Self.colour.alpha to 1

But I'm wondering if I can add other values for x to also trigger the change in alpha.
BUT I would prefer it if I could just type a string of numbers in the box after the 10 (eg 10, 12, 18, 25, 36, 42) rather than creating a load of new conditions and changing the rule to "Ehen ANY"

the reason for this is I'll literally have about 200 conditions to trigger the change in alpha and it'll be much faster to enter them all in a single box.

PS. I've tried entering them with a comma between and GS doesn't accept it

Comments

  • old_kipperold_kipper Member Posts: 1,420
    At some point you have to define the conditions for change. If there 200 totally different conditions you have to set them up, but there ways you might reduce these to groups by having a second or even third or forth) attribute that combines in rules to generate the conditional state for change. Try to break down the logic to see if this is possible. It will be dependant on how the changes are generated and how they are to be used.

    Generally things can be broken, but if not then it will take some careful notes and organisation.

    Hope that helps

    Kipper
  • DigiChainDigiChain Member, PRO Posts: 1,288
    Unfortunately I think there are 200 odd different conditions that will affect this image. Other images will have a similar amount of conditions too.

    Anyone know how many conditions is too many for a GS game?
  • old_kipperold_kipper Member Posts: 1,420
    Ive run sixty different game attributes and in truth its a pain to run through the expressions editor.i am not sure how many attribute is the roof. I think others have done well over the ton and possibly up where you are talking about.

    It would be interesting to understand why you need 200 cases for each. If you explained the structure of your problem it would be more likely to be able to see an alternative if there is one.

    Kipper
  • DigiChainDigiChain Member, PRO Posts: 1,288
    In terms of game attributes I think for what i'm planning they can be kept to a minimum. I'll be mainly using integers and depending what they equal it'll trigger whether an image is visable or not.

    So the bulk of the code will be within the image specifying that if ANY conditions are valid:

    If x = 1,
    If x = 4,
    If x = 9.... and so and so on (for a couple of hundred other values)...
    Then, change attribute...

    Sorry for being secretive about my idea at the moment, I'm just working it throgh so don't want to reveal my plans just yet!
Sign In or Register to comment.