Several objects in a single command
thierry_st_malo
11 Apr 2016, 10:08Hi, all!
Can I use several objects in a single command ?
For instance : fill #object1# with #object2#
Which leads me to another question: can I define a number of meaningless words that will just be ignored when the user's input will be parsed? For example, in the above command, the word "with" could be used or not. Of course, such a list would be at the game level.
Thanks in advance,
Thierry
Can I use several objects in a single command ?
For instance : fill #object1# with #object2#
Which leads me to another question: can I define a number of meaningless words that will just be ignored when the user's input will be parsed? For example, in the above command, the word "with" could be used or not. Of course, such a list would be at the game level.
Thanks in advance,
Thierry

Pertex
11 Apr 2016, 10:49sure, you can. Just click "Filter" in the left bottom corner of the Quest offline editor and activate "Show Library Elements". Then you can check the build-in commands like put or removefrom and see how regular expressions can be used to create multi object pattern
^put (?<object1>.*) (on|in) (?<object2>.*)$

XanMag
11 Apr 2016, 14:04I've found this discussion very helpful and have referred to it many times.
viewtopic.php?f=18&t=5862
viewtopic.php?f=18&t=5862
thierry_st_malo
11 Apr 2016, 17:35Many thanks 
Thierry

Thierry