Skip to content

[FR] Enhance Command Execution Configuration to Allow for Finite Repeats #239

Open

Description

@Dearliet

Old:

{
    "commands": "/say hi",
    "execute_condition": "",
    "repeat": false,
    "repeat_frequency": 1
}

New:

{
    "commands": "/say hi",
    "execute_condition": "",
    "total_cycles": 5,
    "frames_per_cycle": 10
}
  • With total_cycles, you can specify exactly how many times the command should repeat. For instance, setting total_cycles to 5 will repeat the command five times
  • The frames_per_cycle parameter controls the timing between repetitions
  • Setting total_cycles to -1 will still allow for endless repetition, but with added flexibility for finite repeats

Note: The parameter is frames_per_cycle rather than ticks_per_cycle, allowing commands to align with the animation speed. For example, if the animation is running at 0.5x speed, the command execution will adjust proportionally to maintain synchronization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

✨ EnhancementNew feature or request❓ Needs More InfoThis Issue Needs More Info to be considered valid

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions