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

Add global parses and actions #6

Open
jdalley opened this issue Sep 26, 2021 · 0 comments
Open

Add global parses and actions #6

jdalley opened this issue Sep 26, 2021 · 0 comments
Assignees

Comments

@jdalley
Copy link
Owner

jdalley commented Sep 26, 2021

It would be useful to be able to define, either by variables in the UI/settings or in the script itself, a way to have global (parse -> action)s defined.

For example:

  • Stop/pause script execution if someone walks into your area.
  • Stand if you are knocked down (without having to rely the function in combat scripts that will stand if you try an action that says you must be standing - this wastes time).

Notes

Types of action-on-parse scenarios:

  • Checking incoming Data for values, set state.commandOverride to new value.
  • Checking incoming Data and state.commandOverride for values, set state.commandOverride to new value.
  • Checking incoming Data and continuing the script by calling sendNextCommand
  • Checking incoming Data and state.extConfig setting value for values, use setTimeout with optional override delayInMs to send a new, custom, one-off command.
  • Checking incoming Data and current State variable(s) by name for values, using the State variable(s) by name to construct new commands to set state.X to new values, ie:
    state.commandOverride = `get ${state.weaponItemName}`;
    state.recoveringWeapon = true;
    
    • This will include the ability to push multiple commands in sequence with a delay between, or just one single command.
    • This will include the ability to set any state variable based on outcomes from the checks.
    • This will include the ability to call sendDelayedCommands
@jdalley jdalley self-assigned this Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant