Functions

OurJud
10 Jan 2016, 18:39What do I need in order to create a function?
Take this one, for instance:
This allows the game designer to hide/show the command input at will (handy for intros and such).
Now, the relative part here is "Command", and I need to understand what this is. Is it simply the class name for the command input?
I ask because I wonder what other elements could be enabled/disabled at will.
Let's say I wanted to do the same with the game title or room title (I know these can be turned off in the UI, but this turns them off permanently)
Could I, for instance, find the 'keyword' for these elements and create a function. For instance:
Take this one, for instance:
<function name="HideCommandBar">
request (Hide, "Command")
</function>
<function name="ShowCommandBar">
request (Show, "Command")
</function>
This allows the game designer to hide/show the command input at will (handy for intros and such).
Now, the relative part here is "Command", and I need to understand what this is. Is it simply the class name for the command input?
I ask because I wonder what other elements could be enabled/disabled at will.
Let's say I wanted to do the same with the game title or room title (I know these can be turned off in the UI, but this turns them off permanently)
Could I, for instance, find the 'keyword' for these elements and create a function. For instance:
<function name="HideGameTitle">
request (Hide, "Title")
</function>
<function name="ShowGameTitle">
request (Show, "Title")
</function>

jaynabonne
10 Jan 2016, 21:12Here is the documentation for "request".
http://docs.textadventures.co.uk/quest/ ... quest.html
If you scroll down to "Hide" and "Show", you'll see:
Valid elements are "Panes", "Location" and "Command".
Other interesting "requests" are SetInterfaceString and SetPanelContents. (Though you might enjoy others as well.)
http://docs.textadventures.co.uk/quest/ ... quest.html
If you scroll down to "Hide" and "Show", you'll see:
Valid elements are "Panes", "Location" and "Command".
Other interesting "requests" are SetInterfaceString and SetPanelContents. (Though you might enjoy others as well.)

OurJud
10 Jan 2016, 21:31Thanks. I'll take a peek.
This is an interesting one:
Don't recall seeing this option in the game UI anywhere?
This is an interesting one:
Speak
(New in Quest 5.4) Output text to speech synthesizer if enabled
Don't recall seeing this option in the game UI anywhere?

jaynabonne
10 Jan 2016, 22:44I believe it's for text readers for the visually disabled. If you have one installed and running, it will output the text as speech. There is no UI option, as it just happens for any text output!

OurJud
10 Jan 2016, 22:58Oh, I see. Thanks.