Can i use a table attribute as a rule condition?
amarillovegan
Member Posts: 3
Im doing a large item database in a table and i need to use a column text attribute in a rule condition, but i dont know how.
Comments
You cannot grab the cell from a table in a rule, currently. When you need to do is constrain or grab the value of the table and put that into another game attribute. Then reference that attribute in your rule.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
a = b => 0 = b-a
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
e.g. If you wanted:
If tableCellValue(myTable,2,3) > 56
Instead try,
If game.ConstantZero > 56 - tableCellValue(myTable,2,3)
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
if levelScore > tableCellValue(tblLevelSettings,currentLeve,2)
then do this
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
On another note, though, do you have any clever solutions to cells/colums that are not integers or real values? Several of my tables would use text.