I'm making anti-theft triggers, and looking at Lua I thought, why make ten or twenty triggers, one for each piece of clothing, when I can make a single trigger for all my clothing.
However, I'm stuck on how to do this, and I feel I'm not even close to a solution.
So far I have:
^You remove (list of clothing each separated by a | )/.$
Which for obvious reasons I don't think will work. But what I need is for the script to identify which object in the list was removed and replace the wildcard in the following response with a variable appropriate to the clothing removed because the clothing descriptions and keywords are different.
wear *
I'm not entirely new to this, but I only recently opened an XML, took a good look, and realized this is simple if I can just understand things like this.
However, I'm stuck on how to do this, and I feel I'm not even close to a solution.
So far I have:
^You remove (list of clothing each separated by a | )/.$
Which for obvious reasons I don't think will work. But what I need is for the script to identify which object in the list was removed and replace the wildcard in the following response with a variable appropriate to the clothing removed because the clothing descriptions and keywords are different.
wear *
I'm not entirely new to this, but I only recently opened an XML, took a good look, and realized this is simple if I can just understand things like this.