Changing default unrecognized command response

MrFRZ
Hi, I have a quick question on something I would like to do to make my game more immersive. I am making a hacking game and I want to change what the game says when it doesn't recognize the entered command.
For example: If you type igfujg into the command bar (or any other text that has no attached command) the game will return "I don't understand your command"
I would instead like this to say:
[Error]: Command unrecognized.
[Error]: Unable to execute command.
This would make it feel more like a computer that a quest game.

I have been helped on this forum before on how to enter periods into #text# and I was taught about the Library Elements, basically Quest's code and how it runs. I figure the return variable is in here somewhere and I can just change what it prints, but I'm not sure where it is. I've looked around but the closest thing i can find to it is one called "unresolvedcommand", which doesn't seem to contain what I need. Hope you guys can help, but I'm in no rush. It's not stopping my coding and can be added in at anytime. Thanks in advance!

HegemonKhan
I think the 'HandleCommand' deals with it (you'll have to scour its scripting for the correct code lines within it to change), which can be found here in the GUI~Editor:

Filter (left side pane's 'tree of stuff' at the bottom: lower left corner of the GUI~Editor screen) -> Show Library Elements (this is a toggle button to show~hide the default core code stuff, now showing up in the left side pane's 'tree of stuff', as light greyed text~font, such as like 'take', look for the 'HandleCommand', click on it, so it is highlighted, then click on the right side pane's 'COPY' button to alter it.

http://docs.textadventures.co.uk/quest/

let me know if you need help

The Pixie
Quest uses templates to handle this, so that if you wanted your game in French, for example, you just add your own library of templates.

Templates:
http://docs.textadventures.co.uk/quest/ ... lates.html

Languages
http://docs.textadventures.co.uk/quest/ ... quest.html

I suggest you do the same, following the instructions for creating your own language, i.e., copying English.aslx, and then delete all the responses you do not want to change. There are a huge number in there, but probably only a few you care about.

jaynabonne
Actually, it's not in HandleCommand, so ignore that. But there is a template for it.

Show the library elements as HK described. Then open Advanced in the left pane and then Templates. Scan down for "UnrecognisedCommand". Select it and then click the Copy button in the top right corner of the window to move it into your project.

Then you can simply modify the text to what you want.

MrFRZ
Ok cool, thanks guys! I'll try it once I get some time to code.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums