Getting a command to run a verb?

Someone mentioned this a while ago, I have an object that the character enters into like a room. I want the object to say when the player enters, you can do option1 or Option2
I want those options to be verbs, but I don't know how to hyperlink them in to the script message, then someone said use commands that activate the verbs. is this possible? And if not can I hyper link verbs?


Does this help?

//CODE REMOVED

No not really? is that just all the information on a game file?


Yeah, it's pretty much everything you might need (maybe more).

Here's a link to download it:

LINK REMOVED

You can unzip that, then open booth.aslx. Once you have it opened in the editor, you will probably see what I've got going on.

(It all works together. That's why I'm dropping an entire example game on you. I use every thing you see in this code to make the magic happen.)

Open her up in Quest, then post whatever questions you have. We'll get you up and running.


I want those options to be verbs, but I don't know how to hyperlink them in to the script message, then someone said use commands that activate the verbs. is this possible? And if not can I hyper link verbs?

Yes, you can. Behind the scenes, verbs are scripts, so you just have the command run the verb script. If you have a "smash" verb, the script for the command will be:

do(object, "smash")

Sometimes the script name is not obvious, for example it is "speak" for TALK TO, but for new, one-word verbs it is the obvious.

For hyperlinks, the text is processed as though the player typed it, so verbs work just the same as commands.


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

Support

Forums