Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How can I create an 'Enter text button' in Sugarcube2 T1?

OK, I'm pretty sure it's not called an 'Enter text button' but hopefully you'll know what I'm talking about.

I want the player to be able to enter a name of their choosing and for me to be able to recall that name with the <<print>> macro.

Please show me how!


  • The <<textbox>> macro does what you want and the first example in its documentation shows you how, except you may want to rename the $pie variable to $name in your code.
  • OMG, I can't tell you what an utter moron I was for the past hour - so I won't.

    All sorted now. Thanks Greyelf. :)
Sign In or Register to comment.