Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API C Traits.GenerateImportString

Last wiki revision 2023-09-16

Generate a talent loadout string for a given loadout importString = C_Traits.GenerateImportString(configID)

  • configID: a talent loadout, e.g. from.
  • importString: a talent loadout string, which can be used to import the loadout, can be sent to a friend, or used on external websites. An empty string is returned if the client can't find data for the loadout.

No data is available until the first. When reloading UI, data is available immediately.

This API works only for talent loadouts for the current character, but it does work for other specs. The returned string, can be used in the Talent Tree UI to import the loadout, and its format has been documented by Blizzard in Blizzard_ClassTalentImportExport.lua.

It's important to note, that if you use this API with a loadout outside your current spec, the Specialization ID in the header will be incorrect, since that will always reflect your current spec instead. So you may want to change the header with code like this:

Source

https://warcraft.wiki.gg/wiki/API_C_Traits.GenerateImportString · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.