This script adds "progressive state" functionality to your project.
A progressive state is one that automatically changes to another state after a certain amount of actions or turns have passed if the state is not removed before then.
For some state ID x. When the state is automatically removed due to timing (turn count, action count, steps taken, ...), the new state will be applied and the old state removed.