Configure a Behavior
Last updated
Last updated
By default, a character has no behavior and never interacts on your server.
CharacterWeaver allows you to create behaviors that are triggered automatically when certain events are called. For example, a message sent by a user or a new member who joins your server.
To create a new behavior, you must use the command:
/behavior create <behavior-name> <event-type>
behavior-name is never visible and only serves as an identifier. The identifier will be used when you change it, so choose something short like "auto-response".
event-type is the event type that triggers the behavior when called. You can find the list of available events .
To create a new action in a behavior, you must use the command:
/behavior action create <behavior-name> <action-name> <action-type>
behavior-name is the name of the behavior specified when it was created.
action-name is never visible and only serves as an identifier. The identifier will be used when you change it, so choose something short like "send-response".
action-type is the type of action that will be triggered, you can find the list .
To edit an action in a behavior, you can click on the "Configure Action" button or simply use the command:
/behavior action edit <behavior-name> <action-name>
behavior-name is the name of the behavior specified when it was created.
action-name is the name of the action specified when it was created.
To add a behavior to a character, you must use the command:
/character behavior add <character> <behavior-name>
To create a new filter in a behavior, you must use the command:
/behavior filter create <behavior-name> <filter-name> <filter-type>
behavior-name is the name of the behavior specified when it was created.
filter-name is never visible and only serves as an identifier. The identifier will be used when you change it, so choose something short like "contained".
To edit a new filter in a behavior, you can click on the "Configure Filter" button or simply use the command:
/behavior filter edit <behavior-name> <filter-name>
behavior-name is the name of the behavior specified when it was created.
filter-name is the name of the action specified when it was created.
filter-type is the type of filter that will be triggered, you can find the list .
To understand how placeholders work, refer to page.