Thorium-Sim / thorium-nova

Next-generation Spaceship Controls
https://thoriumsim.com
Apache License 2.0
342 stars 14 forks source link

Action Macros #627

Open alexanderson1993 opened 2 months ago

alexanderson1993 commented 2 months ago

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:

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: