-
Notifications
You must be signed in to change notification settings - Fork 14
RuleFunction_Tooltip
arkayenro edited this page Jul 14, 2018
·
4 revisions
tooltip( arg1, ..., argN )
Checks if any of the supplied arguments are contained within an items tooltip text
tt
- arg1...N (string)
-
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
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