So, another question now, you see, when the GRID lab research is completed, it is pushed to the company.researchCompleted array. So, I’m making an event with the trigger which searches in that array that specific lab research, so it checks if it’s there to execute the rest. The problem is, that the array is randomized, thanks to the user’s choices, he may research something else first. I tried to make a for loop, which keeps checking until the i is equal to company.researchCompleted.length . But as I see, normal researches go there as well. So, any other ways?
What I’m trying to do: Make an event’s trigger to check if the Codename: GRID has been researched.
It’s a html5 game, that uses node.js, based on the chronium webkit that runs html 5 and nodejs without the use of a normal browser, so yeah technically it’s an offline website.