Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make macros non-static #7

Open
alphappy opened this issue Jul 20, 2024 · 0 comments
Open

Make macros non-static #7

alphappy opened this issue Jul 20, 2024 · 0 comments
Labels
priority: low Low priority type: enhancement New feature or request

Comments

@alphappy
Copy link
Owner

Currently, macros are static; if macro A executes itself (once, not endlessly), it resets its own state.
For example, the following macro only runs R~20 once, regardless of where Slugcat starts.
If non static, it would run R~20 once for every L~20.

/NAME: foo
L~20
>goto 1 if scug located left of 500
>execute foo
>label 1
R~20
@alphappy alphappy added the type: enhancement New feature or request label Jul 20, 2024
@alphappy alphappy added the priority: low Low priority label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Low priority type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant