I just started using scripting and it's pretty neat but I'm not sure how to compare a data field to an empty string. For example I want to only draw the background behind the reward text on the planet cards if the reward data is not empty. I found a method that works but only if the first character is not a space.
#(if @[reward] == then #nodraw else images/Planet-RewardBox.png)#
A couple other suggestions. Detect when data references change and automatically refresh the cards. This is perhaps the only tedious part of the workflow. It would also be amazing if you can add references to Google spreadsheets directly. I'm collaborating with a friend on the game and it would make it so much easier to sync.
Thanks for the suggestions. The Google spreadsheet functionality would be really nice. I'll see what it would take in a future revision. In a far off dream world this would be a Google application entirely! (though printing and exporting to images would be horrible)
You are performing the empty string comparison as intended. I realize I failed to point out how to do that in the documentation! I will be sure to update the documentation along with possibly adding another special variable like #empty to make it more obvious.
A simple trick for refreshing the spreadsheet data is to have a second layout in the project and just switching to it and then back to the one you want to update. The CSV file is read from your hard drive whenever the layout node is selected. A file watcher would be helpful. In my experience they are always buggy so I may just add a hotkey to refresh the data source instead.