How to specify when attribute = multiple values?
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
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
Generally things can be broken, but if not then it will take some careful notes and organisation.
Hope that helps
Kipper
Anyone know how many conditions is too many for a GS game?
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
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!