This is exactly what I was looking for. I knew I had seen this example before but when i was googling my question, I couldn't find it again.
Just a quick follow up though on the replace macro you used. Could the code also be used like this?
<<replace "#intelligenceStat">> $intelligence <</replace>>
Also, i noticed that in the replace you have #intelligenceStat. I'm very new to using twine so I dont understand when you would choose to use #.
So I'm wondering if for my specific code, would I have to write it like this?
<<replace "#player.strStat">><<print $player.str>><</replace>>
I noticed that at the bottom of the example, <span> is used.
Intelligence: <span id="intelligenceStat">10</span>
Is this what would set up, in my case, the #player.strStat? And is <span> HTML? I have a beginnner understanding of coding laguages so sorry if these are basic questions.