User Tools

Site Tools


builders:repainter

Region Repainter

This is a special device that can repaint some or all objects in a room.

Create an object of type 31, "Use" or "Activated Knicknack" (depending on the tool you use.)

Set action_type to 3.
action_menu can be any suitable value to get the menu prompt you want. The default of 0 gives “Use”.

Set colorMap to the colors you wish to apply.

Set action_type to 4.
action_menu can be any suitable value to get the menu prompt you want. The default of 0 gives “Use”.

The user must be holding a spray can of the color they want to apply to all objects.

Objects
Within the locale, you can place items as normal.

Set common_flags on the item to the usual values, plus 4096. The “Paintable” flag.

When the active object is Used:

  1. Any objects, with the appropriate flags, in vendos will be repainted.
  2. If the vendo it is in has the same imageURL/choreState, i.e. it's a self-vendo, that will be repainted too. Normal vendos (unless they have the flags set) will be unaffected.
  3. Any other objects with the appropriate flags that are glued down/immovable will be repainted. (immovable doesn't work for non powered users - Clyde 2024/12/20)

This allows you to change colors of things available to buy, and objects glued in the room, but not items being held or dropped on the floor.

Bought items will have the paintable flag retained, so they can be placed in a turf and repainted there.

You can also create a loose object with a 'charges' value set to however many times you want this to be used. After this point the object will be deleted. Unpowered avatars can only use this within their own turf. This would allow rapid color changing of a scene for normal avatars bent on decorating. See also spray cans with a can_type of 5.

builders/repainter.txt · Last modified: 2024/12/20 21:32 by clyde