changing Standard Messages

steve the gaming guy
I've studied the manual and scowered the forums and can't seem to find an answer...

If you go into the Standard Messages section when working on a game, you can change the messages received when the player does certain actions. For example, if the player tries to take an object that isn't there, the default message is something like "I can't see that here."

There are more advanced messages as well. If a player tries to give an object to an incorrect object, the default message is something like "#quest.error.pronoun# doesn't want #quest.error.article#"
And therein, lies my question. I want a default command for dropping an object that can't be dropped. I tried every version of this I could think of and I get nowhere. The main idea is if a player tries to drop an object, "You might be able to use #quest.object# somewhere else." I've also substituted #@object# and #quest.error.name# and several others.
Each time, when I try to drop an undroppable item, I get no response.

PLEASE HELP!!!!

paul_one
Well, if it's one object then you could change the drop action to simply "msg <You cann't drop #object#... Sorry>"
Or maybe you could make a type, with:
"msg <Sorry, but you can not drop $displayname(#quest.lastobject#)$ .> "
Or something like that.

There seems to be no information on standard messages in the help file at all - must be an oversight on Alex's part... I'll have to look into this...

EDIT::
Oh, it's right there... Says:
"player tries to drop an undroppable object"
You mean there... But you want a custom #@object# thingy eh!?
try either #@quest.lastobject# or $displayname(#quest.lastobject#)$ ... I would try but my QDK won't save (pffttt, I upgraded a few weeks ago - not a whole year ao :P ).

Ahhhh well, I didn't use QDK that often anyway - although it' a second reason to buy...

Alex
This is happening because QDK writes the "drop" tag for the object as


drop nowhere <>


which specifies a blank message. In order to get the "cantdrop" message to print, which is what you specify in the Standard Messages window, you would need to use


drop nowhere


However, there isn't a way to get QDK to write this to the ASL file. I'd suggest you put the message in manually for each object that can't be dropped. Alternatively you could put a script in to run a procedure to print the message, which would mean you could easily change the message later.

I've logged this as a bug to fix in the next version of QDK - thanks for letting me know.

steve the gaming guy
Thank you Alex and Computer Whizz,

I have fixed it using your help. First, mark your items in QDK as "drop nowhere", then go into the ASL file and take out the "<>" that appear after "drop nowhere"
Finally, go into the standard messages in QDK and enter whatever you like for your default drop message. Mine was this:

You can't go and drop your #@quest.lastobject# just anywhere!!

(which works like a charm)

Thanks to Computer Whizz who gave me the idea to use "#@quest.lastobject#"

Anonymous
Steve wrote:

Thanks to Computer Whizz who gave me the idea to use "#@quest.lastobject#"



See Alex, I told you that this string would prove useful to others (not just me) when I asked for it to be implemented way back when... :lol:

Al (MaDbRiT)

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

Support

Forums