Verbs with Brackets and Punctuation

Hey all, is there any way to create a verb on an object that includes brackets/punctuation?

For example if I want to have two versions of accelerate
Accelerate (slow)
Accelerate (fast)

Attempting to add a verb with brackets to the verb list simply returns an invalid attribute name error. I could work around this using libraries and generating custom menus, but I'm trying to figure out if there's a simpler solution.


Show me what you are doing, and I may have an answer...
Not everything, just the problem line...


On the desktop version you can add the verb as "accelerateslow" (which will be the name of the attribute), and then edit the verb object (under the game object) to change the pattern. Command patterns cannot cope with brackets, so you will need to change it to a regular expression:

^accelerate \(slow\) (?<object>.*)$

Thanks Pixie, that did exactly what I needed it to.


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

Support

Forums