> For the complete documentation index, see [llms.txt](https://changelog.matrixemulator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.matrixemulator.com/welcome/server/muserver/data/monster/monsterai/monsterairule.md).

# MonsterAIRule

<mark style="color:green;">Temporarily switches the AI profile of a monster class when a time- or event-based condition is met (e.g., a monster becomes more aggressive only during a specific date/time window, or while the Crywolf event is active). The default file is empty—no rules are configured.</mark>

<table data-search="false"><thead><tr><th>Column</th><th>Accepted Values</th><th>Description</th></tr></thead><tbody><tr><td>Index</td><td>Number, one per rule</td><td>Identifies the rule.</td></tr><tr><td>Monster</td><td>Monster class number</td><td>Specifies which monsters the rule applies to.</td></tr><tr><td>Name</td><td>Text enclosed in quotes</td><td>Rule description, used for identification only.</td></tr><tr><td>AIUnit</td><td>Number corresponding to an <code>Index</code> in <code>MonsterAIUnit.txt</code></td><td>AI profile that becomes active while the rule is in effect.</td></tr><tr><td>RuleCondition</td><td><code>1</code>, <code>71</code>, or <code>72</code></td><td>Condition that activates the rule: <code>1</code> = specific date/time (uses <code>Month</code>/<code>Day</code>/<code>Week</code>/<code>Hour</code>/<code>Minute</code>), <code>71</code> = while Crywolf is starting, <code>72</code> = while Crywolf is ending.</td></tr><tr><td>WaitTime</td><td>Number</td><td>Delay before the rule is applied.</td></tr><tr><td>ContinuanceTime</td><td>Number</td><td>Duration for which the rule remains active after being triggered.</td></tr><tr><td>Month / Day / Week / Hour / Minute</td><td>Number, or <code>*</code></td><td>Specific date/time values, used only when <code>RuleCondition = 1</code>. <code>*</code> = any value.</td></tr></tbody></table>

### <mark style="color:yellow;">Notes</mark>

* Only three conditions are supported (`1`, `71`, and `72`)—it is not possible to create a new condition simply by editing this file.
