Just thought I'd ask this, as I'm embarking on a project that is larger than I've previously attempted, and I'm wondering how people tackle this.
Say, for example, you have a location - for the sake of argument, we'll say this is a tavern. The player returns to this tavern many times throughout their adventure, and different things happen each time - sometimes a cutscene plays, sometimes not, but most of the time, at least, different NPCs are at the bar.
The journey in the game follows a linear story, so by doing things, the user is progressing through a series of states, numbered 1 when the user starts, and the very final state is number 128. So each time they come back to the tavern in a different state, 36, 45, 84 etc., you want the tavern to be a bit different.
There are two broad ways I can see that you would do this.
The first way is that you always have 1 tavern map. In this map, you have events with logic that show/hide their presence based on a series of switches and variables, as well as events that only fire off at certain states.
The second way is that you have multiple tavern maps, and when you enter/exit the tavern, a conditional-if decides if you go to Tavern-15, Tavern-85 or Tavern-125 etc. This way, you have more maps, but the logic in each map is simpler and less prone to error.
What do people prefer? I can see strengths in both approaches, but I'm wondering if there's a best-practices approach?
Say, for example, you have a location - for the sake of argument, we'll say this is a tavern. The player returns to this tavern many times throughout their adventure, and different things happen each time - sometimes a cutscene plays, sometimes not, but most of the time, at least, different NPCs are at the bar.
The journey in the game follows a linear story, so by doing things, the user is progressing through a series of states, numbered 1 when the user starts, and the very final state is number 128. So each time they come back to the tavern in a different state, 36, 45, 84 etc., you want the tavern to be a bit different.
There are two broad ways I can see that you would do this.
The first way is that you always have 1 tavern map. In this map, you have events with logic that show/hide their presence based on a series of switches and variables, as well as events that only fire off at certain states.
The second way is that you have multiple tavern maps, and when you enter/exit the tavern, a conditional-if decides if you go to Tavern-15, Tavern-85 or Tavern-125 etc. This way, you have more maps, but the logic in each map is simpler and less prone to error.
What do people prefer? I can see strengths in both approaches, but I'm wondering if there's a best-practices approach?