A place holder macro replacement system inspired by MuchMoreMuch by lokyst
built in placeholders
<sf> -- stat food
<nf> -- non stat food
<d> -- drink
<b> -- bandage
<hp> -- health potion
<mp> -- mana potion
<alc> -- alcohol
<cus> -- custom
<port1> -- portal/hearth
<port2> -- portal/hearth
<itm> -- general item
Chat Frame commands /bfl or /bestfoodlite
resetglobals -- resets BFLGlobalSettings to defaults
resetlocals -- resets BFLLocalSettings to defaults
setmacrobody [key] [body] -- set a macro text, #showtooltip will automatically be included
setmacroname [key] [name] -- sets the name used by ingame macro system,internally identified by key
setph [<ph>] [value] -- sets place holder ph individually per character
showmacro [key] -- shows the macro identified by key as stored in the addon stored globally
showmacronames --shows all macro keys and names
showplaceholders -- shows all place holders for current character
update, updates all macros -- updates ingame macros associated with addon, note all set commands automatically call update
usage, command list -- a list of commands
Example
macro:: /use [mod:shift]<sf>;<nf> Use normal food except when shift key is depressed
in chat frame
name of macro Example
setup initial: /bfl setmacroname example Example
/bfl setmacrobody example /use [mod:shift]<sf>;<nf>
Food items: "Herb Baked Egg" (item 6888) and "Spice Bread" (item 30186)
setup per char: /bfl setph <nf> Spice Bread
/bfl setph <sf> Herb Baked Egg
*note shift click on items in bag
result macro in macro editor:
#showtooltip
/use [mod:shift]item:6888;item30816
if typing in names of items instead of using item links
#showtooltip
/use [mod:shift]Herb Baked Egg;Spice Bread