Hi there, I'd like to add menu functionality into gamebook mode if possible. I'm already using this piece of code that was helpfully provided to me for the ShowMenu function, which is slightly modified since I don't want it to display the numbers:
<function name="ShowMenu" parameters="caption, options, allowCancel, callback"><![CDATA[
outputsection = StartNewOutputSection()
msg (caption)
count = 0
game.menuoptionskeys = NewStringList()
foreach (option, options) {
list add (game.menuoptionskeys, option)
count = count + 1
if (TypeOf(options) = "stringlist") {
optionText = option
}
else {
optionText = StringDictionaryItem(options, option)
}
msg ("<a class=\"cmdlink\" style=\"" + GetCurrentLinkTextFormat() + "\" onclick=\"ASLEvent('ShowMenuResponse','" + option + "')\">" + optionText + "</a>")
}
EndOutputSection (outputsection)
game.menuoptions = options
game.menuallowcancel = allowCancel
game.menucallback = callback
game.menuoutputsection = outputsection
]]></function>
However, I'm missing the helper functions (the one it complains at is ShowMenuResponse), and can't seem to open the Core file in Quest like I thought you could to find them myself to copy over into my gamebook file. Anyone able to help?