Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

Variable as widget argument? (Sugarcube 2)

$
0
0
So I don't know if this can be done: I'd like to make a widget that sets a variable to a particular value, and lets me choose which variable every time I use it. But I can't do:
<<widget mywidget>><<set $args[0] to "something complicated">><<endwidget>>
and then
<<mywidget $specificvar>>
Because that would just pass the current value of $specificvar to the widget, which obviously wouldn't do anything. Is there some way to work around this?

Viewing all articles
Browse latest Browse all 3830

Trending Articles