Bot Data Buckets¶
- Bot data buckets allow Server Operators to limit the spells a Bot will cast based on different data bucket comparisons and the bucket name and value provided.
Using Bot Data Buckets¶
- To use a Bot Data Bucket you will need to set the
bucket_name
,bucket_value
, andbucket_comparison
fields in thebot_spells_entries
table for your intended spell.
How the Data Buckets are Used¶
- Data Buckets used by the Bot use a
bucket_key-bucket_name
format. - Meaning if your Bot ID is
7
and the bucket name istest
your Data Bucket Key will bebot-7
. -
If the Data Bucket's name is
test
the Bot will attempt to find a Data Bucket calledbot-7-test
. -
The Bot will also use it's Owners Data Buckets to provide additional flexability.
- Meaning if your Character ID is
9
and the bucket name istest
your Data Bucket Key will becharacter-9
. -
If the Data Bucket's name is
test
the Bot will attempt to find a Data Bucket calledcharacter-9-test
. -
The Bot grabs all of their Data Buckets, along with the owner's Data Buckets when spawned and then compares values to the field values noted above.
Comparison Types¶
- Bot Data Buckets have 10 different comparison types.
Standard Comparison Types¶
- There are six standard comparison types.
0 (==)
checks your value and the Bot value forequality
1 (!=)
checks your value and the Bot value forinequality
2 (>=)
checks if your value isgreater than or equal to
the Bot value3 (<=)
checks if your value islesser than or equal to
the Bot value4 (>)
checks if your value isgreater than
the Bot value5 (<)
checks if your value islesser than
the Bot value
Special Comparsion Types¶
- There are four special comparison types.
- These values are pipe
|
separated.6 (Any)
checks if your value isany
of the pipe-separated Bot values(Example: 1|2|3)
7 (Not Any)
checks if your value isnot any
of the pipe-separated Bot values(Example: 4|5|6)
8 (Between)
checks if your value isbetween
two pipe-separated Bot values(Example: 1|3)
9 (Not Between)
checks if your value isnot between
two pipe-separated Bot values(Example: 4|6)