Howdy, Stranger!

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

Jumping to an anchor in a passage?

I'm trying to suss out a stretchtext-y dialog system for something I'm working on, and I threw together a little demo to try and mock it up:

Maryland Jones and the Egregious Gaffe

The main problem is that the conversation gets cumbersome when it gets longer. One thought on a solution is to use something like an HTML anchor (e.g. <span style="color:green">&lt;a name=&quot;endofconversation&quot;&gt;</span>) to jump the browser to the appropriate place, but I'm not sure how to get twine to actually jump to it.

(Something like <span style="color:green">&lt;&lt;replace&gt;&gt;</span> seems like a better solution since it actually expands the text instead of going to a new page, but so far I haven't been able to wrap my brain around it in a way that makes this work.)

Comments

  • If you want it to stay within the 'stream' of the passage text, <<replace>> is probally the most viable option.

    Otherwise maybe a <<click>> link
    <<click "Inspect cot.">><<toggleclass "#cot" "collapse">><</click>><div id="cot" class="collapse">
    There is nothing of interest on the old cot.</div>
    That at least gives the option to rehide the expanded text.
Sign In or Register to comment.