Multiple verbs

Joan
23 Jun 2013, 00:38
As I'm new to text adventures and know nothing about coding, I've been working with the online editor on and off for the past few months. I remember (perhaps incorrectly) being able to list multiple verbs for one response in the past, separated by semicolons, e.g. "knock; jostle; knock over; push". Now that I've started editing again after a hiatus, however, I'm finding that this doesn't work. It seems tedious to have to list multiple verbs for the same effect. Is this a bug?

jaynabonne
24 Jun 2013, 11:06
What you say should work: multiple, semi-separated strings. Can you post a small example that fails to work properly?

Liam315
24 Jun 2013, 22:19
If you have the same verb on multiple lists I believe it can cause a conflict.

e.g. you have two verb sets like
1 - knock; jostle; knock over; push
2 - press; push

Let's say there's a button you want to press. Typing "press button" is fine because press is only there once, but try using "push button" and Quest cannot tell which "push" the player means. It will find the first one it comes to (knock etc.) then stop looking, even though the button is not able to be "knocked." Therefore your script for "press" won't run.

If you have a word that can have more than one meaning, it is best to apply it by itself as separate verb. I find it is easier (in most but not all cases) to create a function, and have all verbs added separately but running that one function. This is because you never know what verbs you might want to use in a different sense for future objects, and makes adding synonymous verbs to the object if you think of some later on a lot simpler. It might be a little more tedious at first, but it makes editing and revising things down the line much easier. (Make sure you're using functions rather than trying to copy and paste the whole script each time, because that would be tedious.)

Joan
25 Jun 2013, 04:11
Thanks for your replies. Liam, I hadn't thought of the script confusion issue - or running a single function, for that matter. I clearly have a lot to learn.