Howdy, Stranger!

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

Linking Passages in Snowman

Hi, everyone.

I just started learning how to use this engine tonight and have a ridiculously noob-ish question about linking passages... I would like to use Snowman so that I can use a lot of Javascript in my game. Anyway, the usual linking method for passages does not work for me in this format for me even though nobody else seems to have a problem. I can get these links to work in the other default formats but not this one. I would very much appreciate it if someone knew of a good way to link passages in this story format.

Thanks so much in advance for any info anyone can give me.

Comments

  • It appears you may of found a bug.

    The follow works in 1.0 of the Snowman 2 story format but not in 1.0.2
    :: first
    first passage.
    [[second]]
    
    :: second
    second passage.
    
    Error given is: There is no passage with the ID or name
  • edited June 2015
    Hi, Greyelf...

    Thanks for your response... Do you know if there is a way around this, or if I should just look into Sugarcube? I guess I could use Snowman 1.0 also, but I like using the most up-do-date versions of things, lol.
  • I looked into this some more and decided to just use javascript to go between passages, display passages within passages, etc., and not concern myself with this so much hahaha. Thanks again!
  • :( Would you mind opening a bug?
  • Sure thing!

    Thank you for making such a great platform, it was just what I have been looking for (for art projects)!
  • can i ask how you managed to traverse passages with only JS? I'm having an issue where I want to do it by clicking on an image but I can't work it out..
  • edited August 2015
    Haelu786 wrote: »
    can i ask how you managed to traverse passages with only JS? I'm having an issue where I want to do it by clicking on an image but I can't work it out..

    Hi Haelu.

    Something like this should work
    <img src="" onclick="window.story.show('Passage Name');">
    

    If you want to make it appearant that your image is clickable, I recommend this CSS snippet:
    img[onclick] { cursor: pointer; }
    
  • thanks. would that show the next passage underneath or traverse to the next passage like a normal link?
  • Haelu786 wrote: »
    thanks. would that show the next passage underneath or traverse to the next passage like a normal link?
    It should traverse to the next passage.

Sign In or Register to comment.