I am attempting to deleted headers from a spl file and stumbled across this
but weidu throws a parse error,saying the macro doesn't exist
what synthax is needed for this macro?
Jump to content
Posted 30 November 2016 - 05:51 PM
First make sure you are using the most recent version of WeiDU from http://www.weidu.org/~thebigg/ (not the one from www.weidu.org).
To invoke a macro you need to write LAUNCH_ACTION_MACRO ~macroname~ or LAUNCH_PATCH_MACRO ~macroname~ (depending on the type of macro). In this case, deleting a spell header is a patching activity.
You can abbreviate LAM for action macros and LPM for patch macros. So LPM ~DELETE_SPELL_HEADER~ (the ~~ are optional too). That is a complete command, with no END following it, unlike functions where you BEGIN and END (because you give a function a list of parameters, but you do not give any parameters to a macro).
Latest version: https://bitbucket.or.../get/master.zip