Does "screw" equal "screwdriver"?

witch wyzwurd
22 Aug 2007, 01:31
A new problem that disappoints me:

I have two objects:

1. Hidden_Screw (alt: brass screw; screw)
2. Southeast_Screwdriver (alias: Screwdriver)

If Hidden_Screw is not in Southeast Room where Southeast_Screwdriver is and I'm in room where Southeast_Screwdriver is, why when I type "get screw" does Quest pick up the friggin "Screwdriver"?... The screwdriver isn't a screw.

I have not defined any "abbreviated object names," nor do I want to implement this lazy form of game-playing. I'm guessing this feature is ruining my objects' individuality in this example, since I've looked over all of my code and followed through each object take script for Hidden_Screw and Southeast_Screwdriver and found no code errors.

1. Can "abbreviated object names" be turned off, because I've never turned this option on? Will this cause menus to appear if it can't be turned off?

Alex
22 Aug 2007, 17:24
It should take "screw" to mean "screwdriver" if it's in the same room or the inventory - certainly not if it's somewhere else in the game.

If you send me your ASL code (you can remove the other rooms and anything else, as long as you can still reproduce the problem) I can take a look into this.

witch wyzwurd
22 Aug 2007, 23:01
Ok. Alex, before I send my ASL code, we might be able to clear this up here...

You've misunderstood my question.

I have an object with alt name "screw"
I have an object with alias "screwdriver"

If I'm in room with screwdriver and type "get screw", the screwdriver is picked up. What problems will this cause if the object alt name "screw" is in the same room as the "screwdriver" and I type "get screw"? Will a menu appear?

This abbreviated object name thing is going to get confusing when I test each possibility for objects in my game. I went to the room with the screwdriver to say "get screw" to test some script I had written for the real "screw", but kept getting the screwdriver picked up. In the future, I'm now going to have to consider more options for why odd errors are occurring. It seems to me that if someone wants to pick up a "screwdriver" they should have to type "get screwdriver" not get "s" or "sc". What, are they basically sleeping?

Can abbreviated object calling be turned off? (If not, could you make that an option in the next version?).

Alex
23 Aug 2007, 21:38
If "screw" is just an alt name, then it won't interfere with disambiguation, as abbreviations don't work with alt names.

If "screw" is an object name or alias, then if the player types "screw", it will always refer to that object. If the player types an abbreviation such as "sc", "scre", that could refer to either the screw or the screwdriver and so the disambiguation menu appears.

witch wyzwurd
23 Aug 2007, 22:44
Ok, but if the "screw" (alt name) is in the same room as the "screwdriver" (alias), and I type "get screw", which one will be picked up? Because I want the "screw" (alt name) picked up... not the "screwdriver"... "get screw" means "get screw". Can the feature be turned off?...

Ok, ok. I tried it out in a test game:

If I have two objects without alt names and Object 1 has alias "screw" and Object 2 has alias "screwdriver", I get disambiguation menu when I type "get screw"... this is no good - a screw is a screw, not a screwdriver.

If I have two objects. Object 1 has alt name "screw" while Object 2 has alias "screwdriver". If I type "get screw" the "screw" is picked up. While holding "screw", if I type "get screw" again then the "screwdriver" picks up... a-little better, but just plain confusing. Now, if I type "get scr", the "screwdriver is picked up, but what if I as the player meant to get the "screw". See, without knowing the rules of how the abbreviated object name-calling works, the player is just left up to confusion, and to ask the player to learn it is just asking too mich for a useless technique.

I don't like this feature. What can I do to eliminate it?