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

Lua hooks for the comm board #6450

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

MjnMixael
Copy link
Contributor

This adds a few useful features to get full access to the comm board and enhance or entirely replace its functionality.

  • mn.CommItems grants access to the current menu items. This is not just 0-9 visible items but also any items that could be paged to using PgUp or PgDn. CommItems come with Name, Active (whether the item can be selected or not), getMenuTitle() to get the current title of the menu, selectItem() which selects it and either moves to the next menu or activates the order, and isValid().
  • On HUD Comm Order Issued overridable hook that runs when an AI order is issued via the comm board. It comes with hook variables for the Sender, the Recipient, the Target, the target Subsystem, the Order enumeration, and the visible Name of the order as it appears on the comm board.
  • mn.sendBuiltinMessage() which works exactly like the send-builtin-message SEXP

@MjnMixael MjnMixael added enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels Dec 6, 2024
@MjnMixael MjnMixael added this to the Release 25.0 milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or upgrade of an existing feature to add additional functionality. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. scripting A feature or issue related to LUA scripting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant