0 votes
Zora by Zora (140 points)

I would like to use the Rulebook to execute when using certain items. Examples might include:

  • Getting naked when using a shower
  • Putting on nightwear when getting into bed
  • Putting on a random outfit based on a tag when using some kind of changing room
I see no way to assign a rule to a particular object. It seems like it should be possible to execute on a 'sit' action and to specify an object's uuid.
I tried coming at this by using local chat messages - like when I use a shower, it says 'cleanup started for Zora', so I tried matching on that message. But that didn't work either, maybe because I did something wrong or because the message is coming from an object.

Is there some other way to do this? 

1 Answer

0 votes
Carlyle Theas by Carlyle Theas (11.5k points)

You can use an RLV command to do this. You'll have to create one rule to execute the RLV command, and for each object you want to test you'll add a separate rule:

Explanation:

The RLV command "getsitid" is executed when you're sitting on something. This will get the UUID of the object you're sitting on and chat it on channel 1111 (in this example, change as you see fit).

Then you listen on channel 1111 for the specific object UUID and execute the actions you want when sitting on that object.

To get the object's UUID, you could use Wardrobe's "Send RLV Command" tool from the "Tools" menu, again using the "getsitid" RLV command:

Zora by Zora (140 points)
Thank you for the quick and helpful response!

I can see how this would be useful, but I'm having a hard time getting commands to work via chat.

Earlier today, I was trying to listen for 'cleanup started for Zora' and could not get the rule to fire using any combination of message/message containing on local chat. However, I could just say 'cleanup started for Zora' and it would work.

Similarly, the rule does not fire when i sit on the object, but if I say `/1111 <object_id>`, it works.

So I think your suggestion will work, but I am stuck on the basics.
Zora asked Jan 13 by Zora (140 points) How do I get chat messages to trigger?
...