-
Notifications
You must be signed in to change notification settings - Fork 181
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
lua minigame for micrometeorites point defense #1886
base: master
Are you sure you want to change the base?
Conversation
As I successfully tested that the language tags do work indeed, I added a german .po file as well |
Some changes:
|
This is really cool, is it possible to have this as an add-on? How would one add this to EE? |
@DansDesigns given that this PR did not get merged, the first step would be to download the utils_micrometeorites.lua file and save it into your scripts folder. That file is only needed on your server, not on the clients.
I also thought about preparing this library for usage with the Script() object, so you would only need a single line to include and activate it, but as daid does not like Script(), I hesitated to include something like that in this PR. But as this PR has been pending for more than 1 1/2 years now, it probably won't matter much anyways :-) |
@aBlueShadow aha that's exactly what i'm looking for! thank you so much! |
This is some plugin style lua script that provides an extremly simple "minigame" for the weapons console.
It is basically an attempt to keep weapons on their toes outside of combat or scripted events.
Every now and then, a micrometeorite is detected, and weapons has a short time windows to shoot it down by pressing the right button.
In can be en- and disabled per player ship. With shields on, it is always inactive, as this is a rough indicator of being in combat. In game, this could be explained by stating that micrometeorites are just absorbed by the shield.
It is also inactive when no weapons officer is present, as tactical and single pilot are busy enough.
I am not quite sure about the actual utility of this, but I figured publishing I might be useful anyways, at the very least as an example of modularization for scenario writers, so one might be encouraged to outsource systems so that they can be reused in other scenarios.
Shoutout to @hemmond, looking into the custom elements wrapper helped me a lot with OOP-izing the minigame.
I also added translation tags, although I am not sure if utility scripts are translatable at all. But as those tags did no harm either, I added them anyway