Noob question

TlCKY
19 Apr 2012, 16:11
Before I even start, I'm using the browser version because I am using a Mac.

Ok, so here's my problem. I have a scenario where you need to use a screwdriver to unscrew a vent grate on the ceiling. Now at the moment, you have to type "use screwdriver with vent/grate/vent grate" and I want versatility so that the player can type other things to do the same task. For example, if he/she types "unscrew vent" It want it to open as well. I can't seem to get this to work.

I guess my question is what's the easiest way to assign multiple words for the same command? I have tried making the verb "unscrew" (and this is on the vent object itself, is that right?) and then saying run a script: If player is carrying object screwdriver unlock exit vents, print message "you unscrew..." Then when I go into the game and type that, it doesn't work.

Here's a pic of the current verb script:


Can anyone help me??

sgreig
19 Apr 2012, 18:31
If I'm not mistaken, the reason this is happening is that the game doesn't understand unscrew because it's not a command. I think you need to create the unscrew command first, and then add it as a verb to the object.

Pertex
19 Apr 2012, 18:33
The script looks good. What exactly does not work? Does it display the message?

sgreig
19 Apr 2012, 21:04
Pertex> I think what he's saying (if my testing is correct) that he gets an "I don't understand your command." error when he types unscrew vent. Would he not have to create an unscrew command first and then add it as a verb to the vent object?

TlCKY
19 Apr 2012, 21:56
sgreig wrote:If I'm not mistaken, the reason this is happening is that the game doesn't understand unscrew because it's not a command. I think you need to create the unscrew command first, and then add it as a verb to the object.


Ok how would I go about doing that? Sorry I am kind of new to this stuff...

EDIT: Ok I was messing around with commands and I got it to work but only when you type "unscrew" and nothing else. I want it to be versatile, as in you can say unscrew vent, or unscrew grate, or unscrew vents, etc. What should I do?

Pertex
20 Apr 2012, 06:41
sgreig wrote:Pertex> I think what he's saying (if my testing is correct) that he gets an "I don't understand your command." error when he types unscrew vent. Would he not have to create an unscrew command first and then add it as a verb to the vent object?


no, a verb do not need a command. I tested it (except the exitunlocking) and I don't have a problem with it. TlCKY, could you release your game as an unlisted game? Then you can send the url of your game per PM and I could have a look

Hmmm, there is no way to support user if they use the webeditor. You can't get the code of the game. Alex, do you have an idea how to handle this?

Alex
20 Apr 2012, 09:52
Ticky, that screenshot looks correct to me.

Sgreig, you don't need to add a command separately. Adding a verb to an object is all you need to do.

Ticky, what exactly happens when you type "unscrew vent" in the game? It would help if you publish it as "unlisted" as Pertex suggests, so we can take a look.

TlCKY
20 Apr 2012, 13:23
Alex wrote:Ticky, that screenshot looks correct to me.

Sgreig, you don't need to add a command separately. Adding a verb to an object is all you need to do.

Ticky, what exactly happens when you type "unscrew vent" in the game? It would help if you publish it as "unlisted" as Pertex suggests, so we can take a look.


It says "I don't understand your command."