Using this code (as a widget):
<<set $ItemAdded = "args">>
<<set $TextMessage = "You already have the item $ItemAdded in your inventory.">>
<<set $TextMessage = "You have added the $ItemAdded to your inventory.">>
How can i then display/print out $TextMessage (i.e args) in a different passage at a later point, without getting something like this:
You have added the $args to your inventory.
I get you're supposed to use <<print>>, but i'm not entirely sure how to do it properly in practice. The widget itself on it's own works fine and displays/prints properly, but when i use $TextMessage somewhere else or outside the widget, i get the following above.