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

Action Macros #627

Open
alexanderson1993 opened this issue Jul 8, 2024 · 0 comments
Open

Action Macros #627

alexanderson1993 opened this issue Jul 8, 2024 · 0 comments
Labels

Comments

@alexanderson1993
Copy link
Member

There needs to be some way to define multiple actions that run at the same time, to be reused across timelines and other places. You should be able to define inputs on the macro, and then use those inputs when you call the macro. For example, a Create Ship macro could have name, ship type, position, and tags as inputs, and then run these actions:

  • Spawn Ship (using ship type, position, and tags)
  • Set entity components {identity: {name}} to set the name of the ship

Other action macros could be even longer.

As we build out the first campaign, we'll likely find other action macros that would be valuable, and we can include them as defaults in the Thorium Default plugin for other mission writers to use.

Work for this has already begun in the server/src/classes/Plugins/Macro.ts file, but there's likely more work to be done:

  • Interface for defining the inputs and actions that an action macro will perform
  • Making it so you can specify inputs in the actions that a macro will call (basically connecting the user-provided inputs to the actions)
  • Making it so you can pick and configure action macros from the action dropdown.
  • Probably adding variables or other special things you can put into actions, like a random value that you can use as a tag when creating an object, and then use that same value when referencing the object later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant