Comments on Hypertext doesn’t get much easier



It would be great to give to Ramus a scrolling effect like on Undum.

For integrating Ramus to textallion, I just replaced the href= by rel=

The output is less clean that what it was at first, because my regex was removing sometimes some relevant informations, so I had to adapt it after that.

It’s also not supporting text anchors at the moment (only numbers) but I’m working on it!

-- farvardin 2017-10-20 07:07 UTC

A scrolling effect is the next item on my to do list. As for the Ramus/textallion integration, let me know if you need any support.

-- Felix 2017-10-20 07:07 UTC

Hi I’ve been looking for something like Ramus for a long time. Easily distributable cyoa stories could be a lot of fun, and I hope that since all the script is visible in the page source, websites might be willing to host them.

While I’m okay with html and css, I know zip about javascript – please would you add some examples of how to remember a choice, set a flag, turn off one particular link (so that a player can do only this, or that, not both) and display conditional text?

Is it possible for a player to click on a link which shows a fragment, and then that fragment automatically displays another fragment? (For merging story branches.)

Wow, lot of requests all at once. Blame the excitement. Okay, and the gin. 🙂

(2nd attempt) I don’t care what calculators say: seven times nine IS forty two.

-- John 2017-10-20 07:08 UTC

Hello John, and thank you for the kind words. You have a practical example in the demo document. [?do distance = 0; ?] sets a flag; [?do distance++; ?] increments it and [?if distance < 10 ?] ... [?else?] ... [?if.?] displays different things depending on whether a threshold was reached. But you're right, I ought to write a proper manual someday. Can't promise anything, though. As for your second question, you can make a link point to two different fragments at once (or several). I didn't add an easy way to render a template inside another, but that's possible as well. Again, can't promise anything. Again, thanks for the kind words. You might just have given me motivation to work on Ramus again.

-- Felix 2017-10-20 07:08 UTC

No no no — please don’t think you have to write a comprehensive multi-volume manual to explain every single possibility that Ramus could cover. That’s far too much work — and much too inefficient, too.

I was hoping you’d add commented examples to the Ramus page and let it become its own mini “how-to.” Then people like me who want to write stories can use them boiler-plate style without ever having to learn the byways of javascript. (The term is “picking your brains” I think 😉 )

(Does Ramus use vanilla javascript, or is it some sort of dialect?)

You said I can make a fragment point at two or more others, but exactly how, please? What’s the syntax?

By the way, last night I thought of a natural use for the “hide text” function — for separating the actual story from instructions on how Ramus works and how readers can create their own stories.

Anyway, thanks for replying, I shall now go and see if I can implement state in my test project!


-- John 2017-10-20 07:09 UTC

John, Ramus already is its own mini-howto, but you need to look at the source code and see how it’s done. Admittedly, I didn’t add examples for everything. To point at two fragments at once, you simply list all the IDs with spaces between them in the link’s rel attribute. As for the template language, it is provided by a library called Mold, which ultimately uses vanilla Javascript for expressions and such. E.g. in [?do distance = 0; ?], the [?do … ?] part is the template language, while distance = 0; is perfectly normal JS.

-- Felix 2017-10-20 07:10 UTC