Howdy, Stranger!

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

Can I make interface similar like choice-script wuth twine?

Hi all! Sry for my bad english btw.

I've seen many games which was made on twine. And now I have a question - can I make my game on twine in style "Choice of games" games (like this - http://nlbproject.com/static/aldarkose/mygame/index.html this is my game that I wish remake on twine)? Just text at top and options + one button from below?

And if I can make similar gui In twine - how I can make this exactly?

Comments

  • edited January 2016
    The SugarCube (both 1 and 2) story format has a built-in radiobutton macro (v1 docs) which you could use to make an interface similar to that of ChoiceScript.

    note: Name the passages whatever you like, in this example they are First Passage and Second Passage.

    1. First Passage
    <<set $choise to 0>>
    
    The text the reader is meant to read
    
    <ul>\
    <li><<radiobutton "$choice" 1 checked>>Option 1</li>\
    <li><<radiobutton "$choice" 2>>Option 2</li>\
    <li><<radiobutton "$choice" 3>>Option 3</li>\
    </ul>\
    
    <<button "Next" "Second Passage">><</button>>
    
    2. Second Passage
    You chose option $choice
    
    3. Place the following CSS in the Story Stylesheet area
    .passage ul {
    	list-style-type: none;
    	padding-left: 0;
    	margin-left: 0;
    }
    .passage ul li {
    	border: white 1px solid;
    	padding: 0.5em;
    }
    .passage button {
    	width: 100%;
    }
    

    note: You could make a similar interface using either Harlowe or Snowman but it would require more effort and the use of Javascript to handle the radiobutton selection because neither of those two story formats have that feature/functionality built-in like SugarCube has.
  • edit: I made a spelling mistake in First Passage, the first line should be
    <<set $choice to 0>>
    
Sign In or Register to comment.