Is it not possible to do "if Table cell value is, then do this"...?
JodyMitoma
Member Posts: 307
Just as the title says... Is there no such thing as taking a Table's cell value, and making a rule out of it??? If not, why the heck not?! lol... Seems rather ridiculous, really?
Comments
You can indeed do that.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Thank you very much @Armelline!
I am not sure if that feature is on the windows version yet.
You're right. We don't have the Condition "Numeric Expression".
It is coming in 11 which hopefully Windows users will have soon
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
I think there is a way to work around this. Maybe if you used a self attribute and constrained it to the table value. Then, use that self attribute in your rule.
Ex.
Constrain self.x to tableCellValue(xx,xx,xx)
Then have your rule
If self.x =123
Do this.
Might be a better way, but was just throwing out ideas.
@crestwoodgames' suggestion should do the trick for you. It may, depending on how you need to use it, be possible to avoid the constrain if you can put the value on the left of the expression. So for my example above, you could make an integer attribute with a value of 10, and then do this:
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Rather than constrain, i prefer to put it on an every timer or Self.time% loop. I find this way i can control the speed of updating, and sometimes thats very valuable for the behavior patterns that tables can control.
Sucks that Windows peeps don't have table to table comparisons yet. It's a feature I was wanting for years. So glad it's finally here (been using it for more than a few months now) - extremely useful!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx