Quest System help!

I have a quest system that store completed quest in a bool array. The problem I’m having is that the player can start Quest 2 without completing Quest 1 and so on. I do however have it to where you cannot activate the Quest end trigger without starting the Quest first.

So how can I prevent players from starting the next quest without completing the first one yet?

heres some pseudo code of what I’m trying to do

public GameObject NextQuestTrigger;

if(!questComplete[0]) {
NextQuestTrigger.SetActive(false);
}
else if (questComplete[0] {
NextQuestTrigger.SetActive(true);
}

Also my triggers are in different scenes. How can I work around that?

Have you tried using a linked list?

Traverse nodes until you find the quest that is incomplete, ignoring the completed ones.

However, I would aim to persuade you from moving away from that sort of an implementation.

From the psuedo code it’s somewhat difficult to see what the problem might be. If starting quest 2 requires you finish quest 1, then once you finish whatever is needed for Quest one, you should set your bool then.
If they go to Quest 2 via a trigger, just check the value at that time, and don’t activate the next Quest or however it works.