maptool
maptool copied to clipboard
[Feature]: thisMacroIndex, thisMacroGroup, etc.
Feature Request
I cannot obtain the index of the macro being run if it is not the macro clicked and its name is not unique. I want a macro/UDF to be able to access these details in context of scope.
getMacroButtonIndex() & getMacroContext() only work for the macro clicked, not for subsequent calls (I'm trying to use macro groups as classes so they have common macro method names) Example macro groups:
- Class
- add
- remove
- Attack
- get
- set
- new
- Defence
- get
- set
- new
The Solution you'd like
I would like to be able to access the macro properties of the macro being run. In this specific case, the group name, but generally other things as well. For a UDF either take scope as an argument or utilise the UDF's own scope. So a UDF with no new scope would return details of the macro invoking the UDF.
Alternatives that you've considered.
No response
Additional Context
No response