How do you guys manage scripted scenes in your games? I mean in-game situations where movement is temporarily taken away from the player (or not) while certain events take place on screen (eg. a couple of npcs walk into frame, interact for a bit with themselves and the player, then walk off.)
I think the code for this sort of thing could get messy really fast, once you have to move NPC A to here then wait for 3 seconds then walk slowly to there, while NPC B must start off here, then ease in and out to there then wait for NPC A to arrive then play animation X then collide with object Y then pan camera left.... Etc.
How best to manage this process, in an unconfusing and easy to tweak way? List of parameters in an ini file? Timeline object? And would you organise the action by NPC? Or by 'story beats' of a central timeline?
I've had a preliminary go at this and am struggling to get my head around it. Help appreciated. Thanks!