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

[SugarCube 2.14] Dynamic variables in textbox?

$
0
0
Hello, I am currently writing a widget for a trading system and have run into a bit of an issue passing variables to a textbox within the widget.

My integer variables in the passage are _NumGeneral, _NumSurgery and _NumPharma and the widget is called with "General", "Surgery" or "Pharma" as $args[0].

Is it possible to write a generalized case within the widget for something like <<textbox "'_Num'+$args[0]" _Num+$args[0]>>, or will I need 3 separate widgets instead?

Viewing all articles
Browse latest Browse all 1844

Trending Articles