Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url http://localhost:3917/rule/create \ --header 'Content-Type: application/json' \ --data ' { "actions": [ "<string>" ], "filter": "<string>", "when": "<string>" } '
{ "ok": true, "rule_id": 0, "when": "health-below:50" }
create a game rule
Request body for POST /rule/create.
POST /rule/create
Actions to run when the condition fires.
Entity selector the rule applies to, e.g. "any" or "team:1".
"any"
"team:1"
Trigger condition, e.g. "health-below:50".
"health-below:50"
Rule registered.