---
url: https://docs.kxtools.xyz/client/acr/reference.md
---
# Reference

Professions, specializations, weapons, resources and attitudes, then common buff ids and named buff and agent groups.

## 21. Reference tables {#s21}

### Professions (Lua: `acr.NAME`; inside expressions compare `profession()` with the number)

| Guardian | Warrior | Engineer | Ranger | Thief | Elementalist | Mesmer | Necromancer | Revenant |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |

### Elite specialization ids (`spec()` returns one, 0 for core)

| Profession | Elite specializations |
| --- | --- |
| Guardian | Dragonhunter 27, Firebrand 62, Willbender 65, Luminary 81 |
| Warrior | Berserker 18, Spellbreaker 61, Bladesworn 68, Paragon 74 |
| Engineer | Scrapper 43, Holosmith 57, Mechanist 70, Amalgam 75 |
| Ranger | Druid 5, Soulbeast 55, Untamed 72, Galeshot 78 |
| Thief | Daredevil 7, Deadeye 58, Specter 71, Antiquary 77 |
| Elementalist | Tempest 48, Weaver 56, Catalyst 67, Evoker 80 |
| Mesmer | Chronomancer 40, Mirage 59, Virtuoso 66, Troubadour 73 |
| Necromancer | Reaper 34, Scourge 60, Harbinger 64, Ritualist 76 |
| Revenant | Herald 52, Renegade 63, Vindicator 69, Conduit 79 |

Core specialization and trait ids: `https://api.guildwars2.com/v2/professions/<Profession>` (`specializations`), then `https://api.guildwars2.com/v2/specializations/<id>` (`major_traits`, `minor_traits`).

### Weapons (Lua: `acr.NAME`; in expressions: bare `NAME`)

| Name | Value | Name | Value | Name | Value |
| --- | --- | --- | --- | --- | --- |
| `SWORD` | 0 | `MACE` | 7 | `TORCH` | 14 |
| `HAMMER` | 1 | `PISTOL` | 8 | `WARHORN` | 15 |
| `LONGBOW` | 2 | `POLEARM` | 9 | `SHIELD` | 16 |
| `SHORTBOW` | 3 | `RIFLE` | 10 | `SMALL_BUNDLE` | 17 |
| `AXE` | 4 | `SCEPTER` | 11 | `LARGE_BUNDLE` | 18 |
| `DAGGER` | 5 | `STAFF` | 12 | `SPEAR` | 19 |
| `GREATSWORD` | 6 | `FOCUS` | 13 | `HARPOON_GUN` | 20 |
| `NONE` (no off-hand, in expressions) | -1 | `TRIDENT` | 21 | `TOY` | 22 |

### Resources (`res(...)`, `res_max(...)`, `has_res(...)`; in each resource's own units)

| Name | Name | Name |
| --- | --- | --- |
| `FIREBRAND_PAGES` | `ADRENALINE` | `CLONES` |
| `ASTRAL_FORCE` | `LIFE_FORCE` | `INITIATIVE` |
| `GALESHOT_ARROWS` | `SHADES` | `MALICE` |
| `REVENANT_ENERGY` | `CATALYST_ENERGY` | `SHADOW_FORCE` |
| `HOLOSMITH_HEAT` | `EVOKER_CHARGE` | |

Every resource is in the game's own units, not a percentage. Some maximums change with traits. Compare against `res_max(...)` unless you know the scale: "life force above 25%" is `res(LIFE_FORCE) > 0.25 * res_max(LIFE_FORCE)`.

### Attitudes and targets

* `a_attitude(e)`: `FRIENDLY` 0, `HOSTILE` 1, `NEUTRAL` 2, `UNATTACKABLE` 3.
* `:target_with(...)`: `TARGET_DEFAULT` 0, `TARGET_AGENT` 1, `GROUND_TARGET` 2, `GROUND_CENTER` 3, `GROUND_SELF` 4, `GROUND_MINIMIZE` 5, `GROUND_MAXIMIZE` 6, `GROUND_MOUSE` 7, `GROUND_BOON` 8, `GROUND_HEAL` 9.

## 23. Buff and agent names {#s23}

### Common boon and condition ids

Use these ids directly (`acr.const { MIGHT = 740 }`, then `buff(MIGHT)`). Ids work on every game client and in every language.

| Boon | Id | Condition | Id |
| --- | --- | --- | --- |
| Protection | 717 | Blinded | 720 |
| Regeneration | 718 | Crippled | 721 |
| Swiftness | 719 | Chilled | 722 |
| Fury | 725 | Poisoned | 723 |
| Vigor | 726 | Immobilized | 727 |
| Might | 740 | Bleeding | 736 |
| Aegis | 743 | Burning | 737 |
| Resolution | 873 | Vulnerability | 738 |
| Stability | 1122 | Weakness | 742 |
| Quickness | 1187 | Fear | 791 |
| Superspeed | 5974 | Confusion | 861 |
| Resistance | 26980 | Stun | 872 |
| Alacrity | 30328 | Torment | 19426 |
| Stealth | 13017 | Slow | 26766 |
| Revealed | 890 | Taunt | 27705 |

### `acr.buff "Name"`: named buff groups

A name stands for every id listed with it, so `buff_named(acr.buff "Berserk")` catches every version of Berserk. **Only use names from this table:** they carry their ids, so they work on every client. KX also knows some encounter effects by name only. Those names match only on an English game client.

| Name | Ids |
| --- | --- |
| Aetherized Shielding | 21585 |
| Alacrity | 30328 |
| Berserk | 1941, 1942, 29502, 30185, 30435, 55862, 61643, 61821, 73517 |
| Bleeding | 559, 736 |
| Blinded | 720, 15334 |
| Burning | 737, 40549 |
| Chilled | 722, 53550 |
| Confusion | 861 |
| Crystalline Shield | 55558 |
| Determined | 762, 788, 31450, 40546, 41495, 60880 |
| Fear | 791, 4800, 6991, 10660, 12740, 15333, 15529, 24593, 31691, 44360, 49328 |
| Fury | 725, 16535, 77172 |
| Invulnerability | 757, 801, 24435, 56227 |
| Might | 740, 16536, 76834 |
| Overload | 1489, 16921, 17841 |
| Parry | 3596, 14441, 14442, 46443 |
| Peak Performance | 46853 |
| Protection | 717, 3573, 12742, 34672, 34674, 42717, 55117, 76980 |
| Protector's Defense | 35486 |
| Quickness | 1187 |
| Renewed Focus | 9154, 9255, 68666 |
| Resolution | 873, 24529, 75755 |
| Slick Skin | 26578 |
| Slow | 26766 |
| Stun | 872, 27012, 44852, 67893, 71734, 72528, 72860 |
| Taunt | 2807, 3483, 7356, 12068, 27399, 27705, 33212, 41471, 49748, 61631 |
| Time Anchored | 30136 |
| Torment | 19419, 19426, 20197, 21632 |
| Vulnerability | 738 |
| Weakness | 742, 36815 |

### `acr.agent "Name"`: NPCs by name

KX matches these by the NPC's English name. Known names: Captain Ashym, Cardinal Sabir, Clashing Champions, Conjured Amalgamate, Construct Core, Eastgate of Tarir, Ender's Echo, Ensolyss, Ensolyss of the Endless Torment, Exalted Explosive, Exquisite Conjunction, Fortified Wall, Hand of Erosion, Hand of Eruption, Icy Patch, Illusionary Swordsman, Illusionary Warden, Kenut, MAMA, Matthias Gabrel, Maw of Nourys, Modniir Ulgoth, Multiform Ambulatory Mobile Artillery, Nikare, Northgate of Tarir, Octovine \[East], Octovine \[North], Octovine \[South], Octovine \[West], Pylon, Pylon of Resilience, Pylon of Valor, Pylon of Vigilance, Reinforced Wall, Seeker, Solar Bloom, Soul Feast, Southgate of Tarir, Spirit of Anguish, Spirit of Preservation, Spirit of Wanderlust, Tower Lord, Triggerblossom, Wall, Westgate of Tarir.

Use them with `target_is(NAME)` and `a_is(e, NAME)`. For common raid phases there are ready-made builtins: `matthias_stacks()`, `largos_cc_phase()` and `sabir_cc_phase()`.
