- Sep 10, 2017
- 50
- 51
hey guys! there is something I have been trying to implement in my game but I just cant figure it out.
basically what is going on: the game starts of static as hell, but after the player has gone through that he gets to the free roam section. this is filled to the brim with sidequests. the status of those is saved by $ quest_weeknumber_location_active = "True"/"false" and $ quest_weeknumber_location_completed = "True"/"False". I know using strings isnt necesary but had some issues bla bla bla.
to end the free roam section and continue the game the player goes to sleep, but the way the game is built means that after going to the next week (sleeping) the quests in the previous week are unaccusable. aka a quest in progress breaks the game when u go to bed.
I have a way to combat this, by adding a script to the sleeping that checks all the quest statuses and if any of them are active or not completed, the player gets a warning that he either didnt complete a quest or hasnt done all of them. but the problem with that is that that would mean writing down all possible quest variables in that script. is there another way to go about this? maybe have the script check every variable that starts with $quest_weeknumber or something like that?
basically what is going on: the game starts of static as hell, but after the player has gone through that he gets to the free roam section. this is filled to the brim with sidequests. the status of those is saved by $ quest_weeknumber_location_active = "True"/"false" and $ quest_weeknumber_location_completed = "True"/"False". I know using strings isnt necesary but had some issues bla bla bla.
to end the free roam section and continue the game the player goes to sleep, but the way the game is built means that after going to the next week (sleeping) the quests in the previous week are unaccusable. aka a quest in progress breaks the game when u go to bed.
I have a way to combat this, by adding a script to the sleeping that checks all the quest statuses and if any of them are active or not completed, the player gets a warning that he either didnt complete a quest or hasnt done all of them. but the problem with that is that that would mean writing down all possible quest variables in that script. is there another way to go about this? maybe have the script check every variable that starts with $quest_weeknumber or something like that?