Adding enum with peep state "triggers"

Created an enum with peep state "triggers" that cause certain things to happen, renamed `var_c8` to `flags`.