In this tutorial, in pretarget() they replace any <st> type target with <lastst>:
Code:
function pretarget(spell)
----makes it so script-based macros use <lastst>, rather than
----<stnpc>,<stpc>,etc. if this did not exist, then script-based
----macros will require user input to select the subtarget.
if spell.target.raw:contains('<st') then
target='<lastst>'
end
Wouldn't this cause problems the first time you tried to use <st>, since <lastst> at that point is undefined? Also, wouldn't that code make it impossible to change targets with <st>, since it would force <lastst> all the time?
Also, using Mote's includes, where would I put any self-commands I would want to run once when loading the lua?