this'll go without custom scripting:
ah, ... and you may be able to fiddle a solution using timelines as kind of statemachine: