I'm new to custom tokens, but I've been looking through the tutorial:
https://adventurecreator.org/tutorials/creating-custom-tokens and I'm having a little trouble figuring this out. I assume the custom token script needs to be on a gameobject in scene, but I'm not sure how to reference the inventory item I'm looking at, or if I should just hard code it for a specific item ID (in this case, money).
So, if looking at the money inventory item, I want to write something like "I have [count] coins" for greater than 0, and "I have no coins" for 0; should the grammar )coin/coins) be a branch in the action list that counts the item amount and displays the grammatically correct line? I'm really looking forward to learning about writing custom tokens as I love dynamic dialogue possibilities, but I just need to make sure I'm on the right track with this!
Comments
As for speech, I'm not sure if its possible to dynamically retrieve sounds; if I had an actionlist: