Your character
Progression
Wallet, specializations, story, rewards, Wizard's Vault and more.
Your character's currencies, build, story and rewards. Functions return nil (or false) when the game has nothing to give, for example at character select.
wallet
wallet.currencies()table[]?
Every currency:
{id, name, quantity}.wallet.quantity(id_or_name)integer?
How much of one currency you have.
Currency ids, as wallet.COIN and so on
COINKARMALAURELGEMSPIRIT_SHARDTRANSMUTATION_CHARGEFRACTAL_RELICPRISTINE_FRACTAL_RELICBADGE_OF_HONORGUILD_COMMENDATIONUNBOUND_MAGICVOLATILE_MAGICASTRAL_ACCLAIMRESEARCH_NOTEUNUSUAL_COINIMPERIAL_FAVORJADE_SILVERLEGENDARY_INSIGHTWAR_SUPPLIESWVW_SKIRMISH_CLAIM_TICKETPVP_LEAGUE_TICKETPROOF_OF_HEROICSASCENDED_SHARDS_OF_GLORYMAGNETITE_SHARDGAETING_CRYSTALTRADE_CONTRACTELEGY_MOSAICTESTIMONY_OF_DESERT_HEROICSTESTIMONY_OF_JADE_HEROICSTALES_OF_DUNGEON_DELVINGMISTBORN_KEYFESTIVAL_TOKENCACHE_KEYTYRIAN_DEFENSE_SEALCANACH_COINSUNSTABLE_FRACTAL_ESSENCEAIRSHIP_PARTLEY_LINE_CRYSTALLUMP_OF_AURILLIUMGEODEBANDIT_CRESTPROVISIONER_TOKENEXALTED_KEYMACHETEBANDIT_SKELETON_KEYPACT_CROWBARVIAL_OF_CHAK_ACIDZEPHYRITE_LOCKPICKTRADERS_KEYPVP_TOURNAMENT_VOUCHERRACING_MEDALLIONRED_PROPHET_SHARDGREEN_PROPHET_SHARDBLUE_PROPHET_SHARDRED_PROPHET_CRYSTALGREEN_PROPHET_CRYSTALBLUE_PROPHET_CRYSTALJADE_MINERS_KEYCARDspecs
Your specializations and traits. Another player's are on agent:specs().
specs.selected()Spec[]?
Your three specializations and their selected traits. See Spec.
specs.elite_spec_id()integer?
Your elite specialization, if one is selected.
specs.has_trait(trait_id)boolean
Whether a trait is selected.
Puts a specialization in slot
index.Selects a trait.
builds and gear
Build templates (builds) and equipment templates (gear) work the same way.
builds.names()string[]?
The templates' names.
builds.current()integer?
The template in use.
builds.count()integer?
How many templates you have.
Switches to another template.
quests
quests.active_story()table?
Your personal story:
{id, name, quest = {id, name, completed, step = {uid, name}}}.Selects a story quest.
Claims a story reward.
rewards
rewards.list()table[]?
Rewards waiting to be claimed:
{idx, reward_type, experience, items}, where items is a list of {count, item}.Claims a reward, picking
item_id where there's a choice.rewards.popup()table?
The reward popup on screen:
{uid, id, name}.Claims it.
rewards.forge(items)boolean
Puts a list of
Items in the Mystic Forge.Whether the forge holds these items.
progress
progress.achievement(id)table?
An achievement's progress:
{id, state, completed_state, completed}.progress.find(id)table?
Any progress entry, by its id.
vault
The Wizard's Vault. Objectives are {guid, id, name, points, completed, claimed}.
vault.daily()table[]?
Daily objectives.
vault.weekly()table[]?
Weekly objectives.
vault.special()table[]?
Special objectives.
vault.claim(objective_id)boolean
Claims a completed objective.
vault.claimed_daily_chest()boolean
Whether the daily chest is claimed.
vault.claimed_weekly_chest()boolean
Whether the weekly chest is claimed.
Claims the daily chest.
Claims the weekly chest.
Asks the game to load the vault's rewards.
vault.rewards()table[]?
The rewards:
{idx, item_id, item_name, price, current_stock, maximum_stock, out_of_stock}.vault.buy_reward(idx)boolean
Buys a reward.
Which game modes your objectives come from.
Sets them, from
vault.PVE, vault.PVP and vault.WVW.collection
Material storage.
collection.max_storage()integer?
How many of each material fit.
collection.quantity(item_id)integer?
How many of a material are stored.
Deposits an
Item.Takes a material out into a slot.
fishing
fishing.state()integer?
The fishing state.
Equips the fishing rod.
fishing.cast(skill_id)boolean
Casts with a fishing skill.
fishing.completion()number?
How far the catch is.
Sets it.
fishing.fish_bar_position()number?
Where the fish is on the bar.
Where your marker is on the bar.
Moves your marker.
"left" or "right".wardrobe
wardrobe.has_toy(id)boolean
Whether a toy is unlocked.
wardrobe.has_mount(id)boolean
Whether a mount is unlocked.
wardrobe.has_dye(id)boolean
Whether a dye is unlocked.
Shows or hides an equipment slot.
Applies a transformation (see
content.transformations()).Dyes an equipped
Item.