To elaborate, developers often use "flags" as a way to check if certain conditions are met.
You might have seen the terms "route flags" or "event flags" used when discussing visual novels or dating sims. Imagine a game where in Act 1, you meet all the possible romance interests and have the...