OMFG Twine, Why?

Okay, so I’ve jumped onto a different game and I’m attempting to make it with Twine. Except every attempt fails and attempts to use video tutorials are just driving me up the wall and making my head hurt.

In as simple terms as possible, can anyone explain to me how to:

Create a text box for people to put their name down as.

Maje a series of checkboxes on a page where a player can only pick one from each row.

These are what I need most right now, but I’ll almost definitely have more later.

5 Likes

I’m not experienced with Twine, but these pages look like they might help.
https://twinery.org/wiki/textinput
https://twinery.org/wiki/radio

1 Like

I know I had a problem finding radio buttons before (ended up making my own which is a little janky, but working). The links that @cocoacaesar are helpful for Twine 1, but the links I provide below are usable and solutions to Harlowe that I’ve tried/looked into, perhaps they can help if you’re using Harlowe. If you still have trouble I can provide my solution to radio buttons/check boxes if you’d like.

Text Input

Radio Buttons

1 Like

Hey, don’t know if you still need this, but to make a popup dialog box with text input you can do this:
(set: $variable_name to (prompt: "Prompt text", "Optional default value"))
As for making a text field that stays on the page, I don’t know.

I also recently figured out dropdown menus:
(dropdown: 2bind $variable_name, ...$array_name)
Just put the options you want into an array, e.g:
(set $array_name to (array: "Option 1", "Option 2", "Option 3"))
It may not be actual radio buttons, but it performs the same function of only letting you select one from a list of items.

@Kanto_Ruki Thanks for posting your suggestions. I’ve just stumbled across them and they are really helpful. I’ve just tried to recreate the example you linked on creating radio buttons. The buttons have been created fine, but for reasons I can’t explain, I’m getting “0” values in the output passage. I’m new to this and certainly doing something wrong, but I can’t work out what. Any ideas please?

1 Like