Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Talents

const Talents: object

Defined in: client/api.d.ts:5930

Local talent (perk) tree state — UPerksTree.

abilityTags(): string[]

Every gameplay tag live on the player’s RPGAbilityComponent; empty before the pawn exists.

string[]

addAbility(abilityName): boolean

Pushes an RPGAbility onto the player directly; repair path when a purchased talent’s tag is missing.

string

The perk’s AbilityID, e.g. Talent_Core_DodgeFast.

boolean

addPoints(amount): boolean

Moves the unspent talent point pool.

number

Signed delta; negative spends.

boolean

available(): boolean

Whether the perk tree singleton exists yet; false before world entry.

boolean

getLevel(id): number

Current talent level (0 = not taken); -1 for an unknown id or before the tree exists.

string

number

getPoints(): number

Unspent talent points; -1 before the tree exists.

number

getState(id): string

‘unavailable’ | ‘available’ | ‘purchased’ | ‘upgradeUnavailable’, or null for an unknown id/unavailable tree.

string

string

grant(id): boolean

Force-grants the talent: free, ignores the level and lock gates, marks it purchased and applies its ability.

string

boolean

has(id): boolean

Whether the talent is purchased.

string

boolean

hasAbilityTag(tag): boolean

Whether the live RPGAbilityComponent carries the tag — the real test of whether a talent is doing anything.

string

e.g. RPGAbility.Talent.Core.Talent_Core_DodgeFast

boolean

list(category?): object[]

Talents with their live state, level and gates, or null before the tree exists.

string

Perk type (Core, Spells, DarkWizard, Infiltrator, SancWheel, …); omit to sweep every type.

object[]

purchase(id): boolean

Buys the talent the game’s own way: spends a point and honours the level, lock and prerequisite gates. Use activate() to force one.

string

boolean

refund(id): boolean

Removes a talent and returns its point to the pool.

string

boolean

remove(id): boolean

Removes a talent WITHOUT refunding its point, and resets its level to 0.

string

boolean

reset(category?): boolean

Refunds every talent, or every talent in one category.

string

boolean

setLevel(id, level?): boolean

Sets the UPGRADE TIER of a talent the player owns. Refused for one they don’t: the game would apply its ability without purchasing it.

string

number

Defaults to 1; 0 clears.

boolean

upgrade(id): boolean

Buys the next level of an already-purchased talent.

string

boolean