Using tables instead of attributes
carlblanchet
Member Posts: 755
Hi all!
I am currently using way too many game integer attributes to keep track of the inventory's weapon amounts in my game.. I've been seeing all over the forum people saying to use tables instead of attributes, the problem is; if I want to change a table cell value in a table the change attribute behaviour is not an option. Can you go in and change a table cell value in a table using a behaviour?
Thanks!
I am currently using way too many game integer attributes to keep track of the inventory's weapon amounts in my game.. I've been seeing all over the forum people saying to use tables instead of attributes, the problem is; if I want to change a table cell value in a table the change attribute behaviour is not an option. Can you go in and change a table cell value in a table using a behaviour?
Thanks!
Best Answers
-
kolabo Posts: 240Take a look at the behaviour Change Table Value. I think that's what you're after.
-
SingleSparq Posts: 1,339Set the TableCellValue to a self.attribute then use that to create the greater than 0 rule.
Answers
& after saving the table, I assume it doesn't need to be loaded next time the game is opened like attributes require?
When touch is pressed
& TableCellValue is greater than 0
-Do this-