Anchors. Jumping. Skipping.
Last updated
Last updated
Introduced in BMFD v4.11 Pack 2
They're the equivalent of calling groups (groups = commands/events), but in action form. An anchor is a reference to a specific action list, that will run all actions after it once it gets called.
Anchor Example:
Now, Imagine I added my "create anchor" action before a "send message" action. If I call the anchor, every action after it will run. In our case, "Send Message"
Now, how do I reference running that anchor? Simple! Just use "Call Anchor" and insert the anchor ID.
In my case, the ID is 1702304559852. Your ID will be auto generated when the action gets selected, but you can always choose an ID yourself.
Now, I have two commands; I named them "anchorcreator" and "anchorcaller"
If I run the "anchorcaller" action, a "Hello World!" message will be sent to the command channel.
See the command above? If the command is ran, "Hello World" won't be sent as the bot will jump to action #3, meaning the send message with the content "Goodbye World!"
See the command above? If the command is ran, "Hello World!" and "Goodbye World" won't be sent as the bot will ommit the 2 actions after "Skip Actions"