Changing default responses

OurJud
27 Nov 2014, 20:52
Do we have access to Quest's default responses, such as "I don't understand that command', etc?

The one I'd like customise is the response to 'get all'. At the moment it lists the object, followed by your own response (if you've added one in the 'take' options) i.e:

>take all

gun: You grab the gun and slip into your trouser waist.
cellphone: You grab the phone and drop it into your pocket.

I would prefer:

>take all

You grab the gun and slip into your trouser waist. You grab the phone and drop it into your pocket.

Which is what it does if you take objects individually.

HegemonKhan
27 Nov 2014, 21:11
You're going to have to look into the internal coding:

GUI~Editor: Filter -> Show Element Library

I believe the 'verbALL' uses the 'multiple' Scripting, but I've no idea where to find it in the internal coding (presumably under the coding for Commands, but maybe not):

http://docs.textadventures.co.uk/quest/ ... mmand.html (scroll down to the 'multiple' Attribute~Script~Function category)

http://docs.textadventures.co.uk/quest/ ... /verb.html (Verb)

(wait for Jay or the other code pros: other site mods or users)

---------

actually, maybe you can just set the 'unresolved' Attribute for the Command~Verb (see the link above).

jaynabonne
27 Nov 2014, 22:09
Unfortunately, the usage of the object name and ":" is hard-coded in "DoTake" when "ismultiple" comes in as true. Keep in mind that the default message for an object is simply the string "Taken". So you'd generally see:

gun: Taken
cell phone: Taken

You happen to have overridden the responses in this case. If you do decide you want to change this behavior, you'll probably have to make sure that any object that can be taken has a special message put in. Otherwise, if you're in a room with three objects with default responses and you do "take all", you'd just see:

Taken
Taken
Taken

which is not very helpful. So... I can give you a library with a modified DoTake that doesn't show the object name. Just be sure it's what you want!

OurJud
27 Nov 2014, 23:05
Thanks, Jay. In that case I'll keep it how it is. It's just me being my usual picky self.