Is it possible to show/hide verbs from an object's display tab?

I really don't want to create duplicate rooms if I have to so I've been using a lot of flag scripts and the like but it seems there's no way to hide a verb that would only make sense in one of the paths in my game. Is there any way to fix this issue?


The verbs on an object's 'Object' tab are in two lists; displayverbs and inventoryverbs.
You can edit either of these lists during the game, using a script like:

list add (bucket.displayverbs, "Fill")
list remove (bucket.displayverbs, "Drop")

If you want to remove a verb that is shown on the object's "Verbs" tab, then you will need to untick "Disable automatically generated display verb list for this object", and add all the verbs that you want to display to the list manually.


Thank you so much! Yeah in one scene, a character is present and in the other, they're not so this info is sure to save me a load of time in all my later scenes! Thank you and I'll respond back with code if it doesn't work still!


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

Support

Forums