what you describe could be implemented using a state machine.
Here is a small introduction to the topic: Yet another Finite State Machine introduction
curious to know more about how this is wired up exactly
what you describe could be implemented using a state machine.
Here is a small introduction to the topic: Yet another Finite State Machine introduction
curious to know more about how this is wired up exactly