Howdy, Stranger!

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

Sugarcube Dialog Box Abilities

Is it possible in Sugarcube 2.18 to use a <<link>> or <<click>> to open a dialogue box that then allows for further options? Such as clicking on a rock, which opens the dialog box and then having the options of examining the rock or placing it in your inventory? If so can that be placed within a script that then removes that option should a player return to that passage?


  • It is possible, but you would have to create a div-element and the toggle its visibility on and off.
    For what you want to do, maybe a dropbox would do the trick in a more simple manner. For that you'd have to put something like this into your Stylesheet:
    .hover {
        position: relative;
        display: inline-block;
    .hover .hoverblock {
        visibility: hidden;
        width: 120px;
        background-color: black;
        color: white;
      	border-color: white;
      	border-style: double;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
    .hover:hover .hoverblock {
        visibility: visible;

    Then you can accomplish what you want using something like:
    @color: CornflowerBlue;Stone@@
    	<span class="hoverblock">
    		[[Examine|Examine Stone]]
                    [[Take|Take Stone]]
  • Thanks for the tips @idling
  • Fascinating. I may have to try that - I have the CSS in my project now - now to figure out how to apply it ;)
Sign In or Register to comment.