GetCampaignName
ESO Lua API function — used by 39 of the 3,030 addons we indexed (combined 9,032,636 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetCampaignName(integer campaignId)Returns: string campaignName
Real usage — from Votan's Minimap
if campaignId ~= 0 then
local campaignName = GetCampaignName(campaignId)
zoneName = ZO_CachedStrFormat(SI_WINDOW_TITLE_WORLD_MAP_WITH_CAMPAIGN_NAME, zoneName, campaignName)Short excerpt from the shipping addon Votan's Minimap — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Votan's Minimap | 4,211,718 |
| LibHistoire - Guild History | 1,505,233 |
| WPamA (What Pledges at my Alts) | 735,283 |
| Kill Counter | 577,202 |
| Faster Travel (Wayshrines menu & Teleporter) | 369,697 |
| Miat's PVP Alerts | 326,979 |