v4.491 Reward States & Events Action
Fixes
Reward Toggling
If a reward is now in the main profiles or games profiles, it will not be overridden by a reward-per-game setting unless it is explicitly set. This has now changed twice.
- Original: Rewards-per-game overrode anything if it was set in either on/off list, would set the flipped state the game didn't match.
- Update to fix issue Doc had: Rewards-per-game only overrides profiles if the reward is in any of the lists, and only then.
- Final: A mix, we still override with rewards-per-game on a match, but if a profile has set a state, we don't override it with the flipped value.
Updates
RewardStates Action
The action for changing the state of rewards on Twitch has been updated. It can now take an optional state, if not included it will toggle, and a value for if the state should override things like the profiles used for games.
[Keys.EXAMPLE]: {
actionsEntries: {
rewardStates: {
[Keys.YOUR_REWARD]: {
state: true, // Leave this out to toggle the current state
override: true // Will store the state in the always on/off lists in the config
}
}
}
}
Commands Action renamed to Events Action
The ability to trigger other commands have been expanded to also be able to trigger other events on their key, as such the action has been renamed.
[Keys.EXAMPLE]: {
actionsEntries: {
events: {
commandEntries: ['one_command', 'another_command'],
keyEntries: [Keys.ONE_KEY, Keys.ANTHER_KEY],
interval: 20
}
}
}
Text Tags
These were added as I thought I needed them, but right now I'm not using them myself, so tell me if you find that they are not doing what you expect.
- userMessage - The message provided by the user regardless if it was a command or prompted reward.
- userInputWord1 - The first word from the user input
- userInputWord2 - The second word from the user input
- userInputWord3 - The third word from the user input
- userInputWord4 - The fourth word from the user input
- userInputWord5 - The fifth word from the user input