REGoth-project / REGoth

OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
631 stars 62 forks source link

Overlay daily routines are not handled #212

Open nicodex opened 7 years ago

nicodex commented 7 years ago

The two game externals TA_BeginOverlay and TA_EndOverlay start and end the overlay mode for daily routines and change the behavior of the game externals TA and TA_Min.

In overlay mode the start and end times passed to TA and TA_Min are relative to the world time when the overlay mode has been started. The overlay daily routine is enabled and activated with TA_EndOverlay and the overlay daily routine entries are only executed ones. After the overlay daily routine is finished, the next regular daily routine will be used.

Currently the overlay mode is not handled at all. This results in permanent (regular) daily routine entries, that are very likely overlapping with existing regular daily routine entries (not allowed in the original engine).

Overlay daily routines are used in G1 for Stone (exit dialog after "Can you reinforce this ore armor for me?") and Lester ("Who are you?", "How can I find my way around here in the Camp?", "Show me the way...", ...).

The related game external TA_RemoveOverlay is neither used in G1 nor G2 (but might be used by fan-made modifications/patches).

A first workaround could be to ignore TA and TA_Min calls in overlay mode to avoid overlapping daily routine entries. This would only break Lester's camp guide dialog in G1.