Can you help me update my table cell value?
Hi all,
I've been working on this one for a couple of hours. I simply want to update a table cell value (from 1 to 99) when an actor is clicked. The table cell value doesn't seem to be updating.
To debug, I've tried updating the cell value, then showing it as text and it shows "99" as expected.
However, when I go and view the table, it hasn't changed.
I've tried adding "Save table" to the rule but this doesn't seem to affect it.
Here are the rules (I removed the display text in case it was interfering)
Here's the table AFTER testing the scene:
Any suggestions? Thanks so much in advance.
Best Answer
-
AlchimiaStudios Posts: 1,069
@appydave said:
Hi all,I've been working on this one for a couple of hours. I simply want to update a table cell value (from 1 to 99) when an actor is clicked. The table cell value doesn't seem to be updating.
To debug, I've tried updating the cell value, then showing it as text and it shows "99" as expected.
However, when I go and view the table, it hasn't changed.
I've tried adding "Save table" to the rule but this doesn't seem to affect it.
Here are the rules (I removed the display text in case it was interfering)
Here's the table AFTER testing the scene:
Any suggestions? Thanks so much in advance.
Hey @appydave tables won't save from a preview, except during the preview itself.
Your logic looks sound though.
One way to test it is to use display text and just display
TableCellValue(Game.InteractionsTable,1,1) in the expression
You should see it update live.
Answers
Ahhh!
Thank you so much.