Twine 2 , Sugarcube 2.21
Probably a really simple question. Now that TME has helped me develop a reasonably useful inventory system I am going back and trying to implement it in an old project and I realize I am not sure of the best way to use the macros I customized lol.
I would like to trigger macros when choices are made
i.e. something like combining
[[Buy the overalls | p2.1][$player.money -=20]]
<<addToContainer $player.inventory $Overalls>>
in one line.
Is there anyway to do this with setter links? or do I have to manually cobble it together using <<link>> and passage tags?
I feel like it's an obvious answer, but I would appreciate the feed back