Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API CombatLogSetCurrentEntry

Last wiki revision 2023-05-27

Sets the currently selected combat log entry to the given value, to be retrieved using. CombatLogSetCurrentEntry(index [, ignoreFilter])

  • index: - see details below
  • ignoreFilter: - set to true to ignore combat log filters
  • isValidIndex: - will return false if the index does not exist in the combat log, but will still set the entry. Otherwise, returns true for valid indices.

Combat log indexing works a bit differently than standard Lua indexing. You can treat the combat log like a big table, with the oldest entries being placed at the beginning, and the newest entries at the end.

Unlike standard Lua tables, however, an index of 0 will set the entry to the most recent combat log entry. Additionally, you are also able to index the combat log backwards using negative values. For example, an index of -1 will return the second to last, or second most recent entry in the combat log.

See for details on traversing the combat log.

  • Combat log indexing

Source

https://warcraft.wiki.gg/wiki/API_CombatLogSetCurrentEntry · 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.