Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a way for PGM
<action>
s to be exposed to trigger/untrigger via commands. This is somewhat equivalent to how staff can manage monument modes via/mode start
or/mode push
, but for actions.The commands to manage actions are
/action
or/actions
, and the 3 sub-commands are list, trigger and untrigger./action list
-> lists all exposed actions in the current match/action trigger [action]
-> triggers the action/action untrigger [action]
-> untriggers the action, keep in mind very few actions actually do anything when untriggering at all. However, it may be useful in combination with removable kits.In order to be available to trigger by commands, actions must:
expose="true"
attribute,If you try to use expose="true" without meeting the other requirements, you'll get an XML exception with a descriptive message.
Dummy example, send a message (to everyone in the match):
Full example, has 2 actions to start/end blitz mode. It utilizes a variable filter in blitz module, and changes the variable value in the actions, as well as broadcasting a message (could enhance it by sending a title in ).