I’m curious whether Glulx (and its interpreters) allows clickable text links to be used issue commands – in an I6 game, not I7. This is a standard feature in T3, for instance. You can make the descriptions of the room’s exits (“A path leads north.”) into hyperlinks that, when clicked, will issue a relevant command (‘go north’).
There’s an I6 extension called Markup.h, but I can’t quite tell whether it allows this functionality. The documentation on it says:
! By itself, this tag [the a href= tag] is not terribly useful. It becomes useful only when
! the game has code in it to listen for hyperlink events, in order to attach
! actions to the links.
That seems clear. But I can’t find a word in Markup.h about how one would add code to listen for hyperlink events and attach actions to them. So I’m left pretty much in the dark.
I do understand that not all interpreters will support links as a way to enter commands with the mouse. I also understand that Markup.h inconveniently forces one to number the href entities in the anchor tag. That’s all okay with me. I’m just wondering, how would I handle the mouse button event?
Or is there another I6/glulx extension that does this, perhaps in a more straightforward way?