Howdy, Stranger!

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

SugarCube2: Dynamic images on sidebar

Greetings,

I'm a total noob here and I'm trying to make a small game to get my feet wet. What I'd like to know is how to insert an image in the sidebar that changes according to in-game variables or according to player choices.

Comments

  • edited August 2016
    You can do this with <<if>> statements in the StoryCaption special passage.
    <<if $variable is 1>>[img[yourimageinthetwinedirectory.png]]<<elseif $variable is 2>>[img[yourimageinthetwinedirectory2.png]]<</if>>
    
  • Thanks a lot!
Sign In or Register to comment.