This script adds "permanent states" (perma-states) to your game. A perma-state is just a state, except they are not removed upon death (or other state-clearing conditions).
A permastate is useful for managing features on your actors, since you can control which features will be applied to your actors using event commands and you can remove them when needed.