Removing verbs
Konrad
04 Sept 2013, 18:24Hello everyone.
This is my problem:
When I enter the room, a script runs telling you that the telephone starts ringing. The object "telephone" is displaying a verb called "Pick up". My question is how do I remove this verb after it is used? If impossible, how would I make this script work for only the first time?
Since "pick up" clashes with the take(Or whatever it was) verb, the script is under "Inventory" in the object.
Sorry if none of this makes sense.
This is my problem:
When I enter the room, a script runs telling you that the telephone starts ringing. The object "telephone" is displaying a verb called "Pick up". My question is how do I remove this verb after it is used? If impossible, how would I make this script work for only the first time?
Since "pick up" clashes with the take(Or whatever it was) verb, the script is under "Inventory" in the object.
Sorry if none of this makes sense.
sonic102
04 Sept 2013, 19:22In the pick up script, cut everything, add a "First time" script. Paste everything in the "First time:" menu, and add a message refusing to pick the telephone in the "Otherwise" menu.
There are other ways to do, but this is the easiest.
There are other ways to do, but this is the easiest.
Konrad
04 Sept 2013, 19:49sonic102 wrote:In the pick up script, cut everything, add a "First time" script. Paste everything in the "First time:" menu, and add a message refusing to pick the telephone in the "Otherwise" menu.
There are other ways to do, but this is the easiest.
I didn't even realize there was a first time script

Thanks, it worked perfectly.
HegemonKhan
04 Sept 2013, 21:54While the GUI~Editor 's scripts are set up a bit differently from their code equivalent, it can do all (or at least most) of these in-code scripts, here's two links to see what are the available scripts that you can use:
http://quest5.net/wiki/Category:All_Fun ... t_Commands (page 1, range: A-S)
http://quest5.net/w/index.php?title=Cat ... h#mw-pages (page 2, range: S-Z)
http://quest5.net/wiki/Category:All_Fun ... t_Commands (page 1, range: A-S)
http://quest5.net/w/index.php?title=Cat ... h#mw-pages (page 2, range: S-Z)

jaynabonne
05 Sept 2013, 09:10Just to go the other way: if you do want to actually remove the verb, you should be able to do something like this:
The exact spelling of the verb (including case) is critical.
I'm assuming the telephone is in the room, not in the player's inventory. (I didn't quite understand when you said, "Since "pick up" clashes with the take(Or whatever it was) verb, the script is under "Inventory" in the object.") If the verb shows up when in the inventory, use "inventoryverbs" instead of "displayverbs".
(Note: I haven't tested this code.)
list remove (telephone.displayverbs, "Pick up")
The exact spelling of the verb (including case) is critical.
I'm assuming the telephone is in the room, not in the player's inventory. (I didn't quite understand when you said, "Since "pick up" clashes with the take(Or whatever it was) verb, the script is under "Inventory" in the object.") If the verb shows up when in the inventory, use "inventoryverbs" instead of "displayverbs".
(Note: I haven't tested this code.)