Skip to content

RuleFunction_Tooltip

arkayenro edited this page Jul 14, 2018 · 4 revisions

Rule Functions > Tooltip

tooltip( arg1, ..., argN )

Checks if any of the supplied arguments are contained within an items tooltip text

Alias

  • tt

Arguments

  • arg1...N (string)

Remarks

  • does not search within the item name, use name( ) if required

  • can only search the standard WoW item tooltip text, cannot search the enhanced text provided by other addons unless those addons modify all item tooltips and not just the game one, also does not check tooltip text from created items (eg recipes) that is normally added on updates

  • Lua string patterns are usable

  • no argument will generate an error

Examples

simple text matching

tt( "spell damage" )

tt( "right click to open" )

type( "consumable" ) and tt( "battle elixir" )

slightly more complex

tt( "gain %d+ stamina" )

the %d+ just means look for digits (the %d bit) where there are at least one or more (the + bit) of them in a row

Clone this wiki locally