World
content
The game's definitions of items, skills, maps, traits and more.
content looks up what things are, by id, whether or not you have them. Every lookup returns nil for an id that doesn't exist.
local item = content.item(19721)
print(item.name, item.rarity)
for _, def in ipairs(content.search_items("mithril")) do
print(def.id, def.name)
endcontent.item(id)ItemDef?
An item. See ItemDef.
content.search_items(text [, max])ItemDef[]
Items whose name contains
text (not case-sensitive), up to max (50 by default, at most 1000).content.skill(id)SkillDef?
A skill. See SkillDef.
A skill palette:
{id, weapon_type, skills}, each skill {profession, slot, skill_id, weapon_type, req_buff_id}.The palettes that hold a skill.
content.map(id)MapDef?
A map.
content.skin(id)table?
A skin:
{id, name, icon}.content.dye(id)table?
A dye:
{id, name, color}.content.trait(id)table?
A trait:
{id, name, description, icon}.content.spec(id)table?
A specialization:
{id, name, minor_trait_ids, major_trait_ids}.content.currency(id)table?
A currency:
{id, name}.content.companion(id)table?
A companion:
{id, name}.content.quest(id)table?
A quest:
{id, name}.content.story(id)table?
A story:
{id, name}.content.achievement(id)table?
An achievement:
{id, name, progress_def_id}.content.progress(id)table?
A progress definition:
{id, progress_type, completed_state, state_idx_mask}.content.instance(id)table?
An instance:
{id, map}.content.sector(id)table?
A map sector:
{id, name, level}.content.task(id)table?
A renown heart:
{id, name, level, progress_id}.A Wizard's Vault objective:
{guid, id, name, points}.A transformation:
{id, name, icon}.content.transformations()table[]
Every transformation:
{id, name}.A WvW objective:
{id, name, objective_type, map, sector}.content.wvw_objectives()table[]
Every WvW objective.