Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Able to use a variable as a span ID?

$
0
0
Sorry, pretty new to this, but my combined google-fu and experimentation has been failing me for about an hour now.

In sugarcube, is it possible to use a variable as a span ID, or to otherwise provide a dynamic way to generate span IDs on the fly? (I also tried workarounds with using both Print and Replace, but that failed for reasons I can't quite understand.)

For reference, I was trying to work on this: <<widget nestdialogue>><span id= "bob"><<click $args[0]>><<replace "#bob">><i>$args[0]</i><br>$args[1]<br>$args[2]<</replace>></span><</click>><</widget>>

and while it works, I'd like to have the text remain after each iteration. So, for me, a workaround is just as good as an answer to the title question. Thanks.

Viewing all articles
Browse latest Browse all 1844

Trending Articles