my weekend was a bit slow on development. Had an issue in family so I didn't have much time to focus. But today I got to the point where my basic quest system is working. This needs a lot of work in the future, but the basics are there. Tested also different kind of quest triggers. First, trigger from UI button. This starts the quest chain.
Second Trigger was made when someone is killed. In this case when sheriff dies, the sheriff quest get 1/1 and stays there for 2 seconds and gives a new quest. This also triggers now an alerted state to the cowboys that are sheriffs men. They will start shooting in the same second sheriff dies.
now the triggers are on the doors as an item trigger which triggers when interaction button is used. After both doors are opened, next item in quest chain starts.
This is the last quest in the chain. in the prototype the prisoners doesn't follow, but in the future they should. Player is going to defend them until getting to the train.
Lastly, I made a triggerSpot where the area triggers something. in this case the level end, but can be used almost anything quest-wise.
At this point. "all" I need to do anymore is to handle the NPC AI better. so this is what I will be doing the rest of the time. And if I get it done sooner, I will be tweaking everything else.