I’m trying to create a function that I can call from any text (most often, a room description) that will use the standard command hyperlink if the WebUI is not in use, and the <> method if the WebUI is in use. That way, I can decide later whether to make the game playable online.
It’s not easy for me to see how to set this up. Here’s what I have so far:
"<A HREF=str>"; say(str); "</a>";
The idea being that, in the room description, I can write things like, "A brick path leads away to the <<link(‘north’)>>. "
This doesn’t work. I haven’t tried it with the WebUI yet, but in normal adv3 mode, TADS thinks the command on the command line is “str”, not “north”. I’ve tried stuffing extra single-quotes around it – that doesn’t work. I looked through the article on Strings in the manual, and didn’t spot anything helpful.
Has anyone tried this yet? What do I need to do?