Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ah okay I see what's happened here. varstrings aren't intended to be as sophisticated as this: they only substitute a single named variable, not an arbitrary lua expression, so you can't use inline function calls in this context (currently).

As a quick workaround, you can do something like

local orbs = table.concat(prog.orbs, ", ")
text "magical orbs: $(orbs)"

yeah that’s what i’ve been doing so far, adding a global status string var and making sure it’s updated whenever state it describes is touched.

I can see how that's limiting, yeah. We'll earmark this for a future version; it shouldn't be too hard to allow more flexible varstrings.