UI_get_attack_mode
![[SI, Exult]](images/siexultsm.png)
int UI_get_attack_mode(actor npc)
int npc->get_attack_mode()
Gets the NPC's attack mode.
Parameters
| Parameter / value | Description |
|---|---|
npc |
The NPC whose attack mode is desired. |
Return
A numeric value specifying how the NPC behaves in combat. Possible values are:
| NEAREST | = 0 | WEAKEST | = 1 | STRONGEST | = 2 | BERSERK | = 3 |
|---|---|---|---|---|---|---|---|
| PROTECT | = 4 | DEFEND | = 5 | FLANK | = 6 | FLEE | = 7 |
| RANDOM | = 8 | MANUAL | = 9 |