Howdy, Stranger!

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

From Sugarcane to Sugarcube

Converting a story from Sugarcane with 1.4.2 to SugarCube 2, also with 1.4.2.

Other than a macro, my only issue at the moment is that in the original StoryMenu I had:
<<print "Sanity: " + $ghost_sanity>>
[[Endings|Endings]]

The Endings link displays, but I'm not seeing the Sanity point tally. Any ideas?

I've set updateStoryElements to true. Doesn't seem to make a difference.

Comments

  • The StoryMenu special passage in SugarCube 2 is only for menu items, you need to move the printing of your $ghost_sanity variable to a StoryCaption special passage.
  • Thanks, works a treat.
  • Got a formatting inconsistency you might want to look at -
    [[<h2>Continue</h2>|next]]
    
    considers the h2 tags to be literals, while
    <h2>[[Continue|next]]</h2>
    
    works fine (producing a nice, bold link).
  • mykael wrote: »
    Got a formatting inconsistency you might want to look at
    The SugarCube (1 and 2) documentation on Links clearly states what the Text part can be:
    The Link and Text components may be either plain text or any valid TwineScript expression
Sign In or Register to comment.