Previous versions of Quest used a “rich text” control to display text. This is quite an old Windows control, which is fine for basic formatting but ultimately lacks flexibility. Quest 5.0 replaces this with an embedded web browser, which opens up a lot of new capabilities.
At a basic level, it makes it very easy to add something I have wanted to add to Quest for a long time – hyperlinks:
By default, objects and exits in a room description are hyperlinked, so the player can look at objects and move around the game by clicking the game text. I may add the option to display a short menu of verbs instead, so that the hyperlinks could potentially be used as a complete replacement for the object panes.
Of course, some game authors may not like this, just as some authors don’t like Quest’s default panes – but you will be able to turn these off. The links are put there as part of the room description code in Core.aslx, so you can override it, and there will be an option to turn it off.
You can see an example of this in the YouTube example included with the Quest 5.0 samples. In the example we use the following code:
request (RunScript, "AddYouTube; ZXZWepU7zC8")
This calls the AddYouTube function defined in YouTube.js, and passes in the parameter “ZXZWepU7zC8” which is just the YouTube id of a particular video.
The AddYouTube function simply creates the relevant HTML to embed the video and adds it to document.body.innerHTML. The video then appears in the Quest window.