r/howdidtheycodeit • • Dec 02 '23

Question Dialogue Systems

I've been watching a playthrough of The Last of Us and it amazes me how big games like this are able to manage all their dialogue, including ones that can trigger if certain conditions have or haven't been met as well as in general. How could I go about this? Thank you in advance.

15 Upvotes

5 comments sorted by

View all comments

Show parent comment

6

u/ptgauth Dec 03 '23

I've created a dialogue system and this is how I did it. I would like to add that for that last part, I use a tag based system. The dialogue is only potentially triggered if all active tags are true. Tags can be from players (hasAxe) or from other sources (isRaining).

4

u/hoomanneedsdata Dec 05 '23

Ah, yes, the Gimili bool: hasAxe = true;