> 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/monsteraielement.md).

# MonsterAIElement

<mark style="color:green;">Concrete actions that a monster can perform (move, attack, heal, flee, summon, etc.), used by</mark> <mark style="color:green;"></mark><mark style="color:green;">`MonsterAIUnit.txt`</mark><mark style="color:green;">.</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 action</td><td>Identifies this action. Referenced by the <code>AIClass...</code> slots in <code>MonsterAIUnit.txt</code>.</td></tr><tr><td>Name</td><td>Text enclosed in quotes</td><td>Action name, used for identification only.</td></tr><tr><td>Class</td><td>Number</td><td>Action category (groups actions of the same type).</td></tr><tr><td>Type</td><td>Number (fixed code)</td><td>Defines what the action actually does—see the table below.</td></tr><tr><td>SuccessRate</td><td>Number (%)</td><td>Chance that the action is actually performed when it is selected.</td></tr><tr><td>DelayTime</td><td>Number, in milliseconds</td><td>Minimum interval between repetitions of this action.</td></tr><tr><td>TargetType</td><td>Number, or <code>*</code></td><td>Determines how the monster selects the target for this action.</td></tr><tr><td>X / Y</td><td>Coordinates, or <code>*</code></td><td>Position used by movement actions that move to a fixed point (<code>Type</code> = "move to target location"). <code>*</code> = no fixed position used.</td></tr></tbody></table>

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

<table data-search="false"><thead><tr><th>Type</th><th>Action</th></tr></thead><tbody><tr><td>1</td><td>Common/normal behavior</td></tr><tr><td>11</td><td>Move freely</td></tr><tr><td>12</td><td>Move to a fixed point (uses <code>X</code>/<code>Y</code>)</td></tr><tr><td>13</td><td>Move the entire group</td></tr><tr><td>14</td><td>Move the entire group to a fixed point</td></tr><tr><td>21</td><td>Perform a normal attack</td></tr><tr><td>22</td><td>Perform an area attack</td></tr><tr><td>23</td><td>Perform a piercing attack (hits targets behind the primary target)</td></tr><tr><td>31</td><td>Heal itself</td></tr><tr><td>32</td><td>Heal the group</td></tr><tr><td>41</td><td>Flee/avoid</td></tr><tr><td>51</td><td>Support the group by healing</td></tr><tr><td>52</td><td>Support the group with a buff</td></tr><tr><td>62</td><td>Summon other monsters</td></tr><tr><td>64</td><td>Become immune</td></tr><tr><td>65</td><td>Summon nightmare monsters</td></tr><tr><td>66</td><td>Teleport</td></tr><tr><td>67</td><td>Use an attack skill</td></tr><tr><td>68</td><td>Switch AI profile</td></tr><tr><td>71</td><td>Event action</td></tr></tbody></table>

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

* `Type` values come from a fixed server-defined list—it is not possible to create a new action type simply by editing this file.
