Skip to content

[question/request] any way to pass arguments to external called macros like cmd/shell commands does? #91

Description

@atesin

hi... i imagine to write a generic macro to be used by other macros, to cast a spell on different target depending modifier keys pressed, something like:

macro: casttarget

/script if nil then CastSpellByName(%1); end -- to fix macro icon
/cast [mod:alt,@player] %1
/cast [mod:ctrl,@focus] %1
/cast %1
/cast Attack

then this macro being used by others like this

macro: castBlessKing

/cast {casttarget "Blessing of Kings"}

macro: castHolyLight

/cast {casttarget "Holy Light"}

something like this, do you catch the idea? :) ... passing arguments to other external macros will effectively turn them into some kind of reusable functions

(or does anybody know a way to to set global functions at wow startup?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions