Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Like countless other video games, I'd like to have scripted sequences in my game. Character 1 says something, the player replies, then a rock falls, that sorta stuff. I could find a way to do it, but I would like to use a common method, assuming there is one.

My current thought is to have a separate file for each level of the game that contains all the possible scripted actions for that level. When the corresponding trigger is activated, the function is called. I think early Call of Duty games (up to CoD4) used something similar, but I'm not entirely sure.

share|improve this question

closed as too broad by Jari Komppa, bummzack, ktodisco, Noctrine Jun 12 '14 at 16:13

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs. If this question can be reworded to fit the rules in the help center, please edit the question.

    
As it stands, this question is rather broad. A design for a system like this will depend on many factors, such as its requirements, and the architecture of the engine in which it is being developed. Try narrowing the scope of the question a bit. –  ktodisco Jun 11 '14 at 15:29

Browse other questions tagged or ask your own question.