Hello, I'm working on making a daily event system where a player can have say 6 things done in one day via events (for a text based game) so I'm wondering if this sort of event processing branch would work for it.
Skip to the last section of this post to answer my main question unless you want to help me figure out a better way to do this than I came up with.
So max of 6 events/day and after those 6 it'll trigger something that forces the player to end the day:
So for this approach to make it simple on myself I'll give the player a custom key item (which does nothing alone) and after they recieve 6 of these key items I'll have a (parallel running event?) on the map that activates if they have 6 of the specific item, then it first removes those 6 items, teleports them to their bedroom map, fades out screen, waits for a few seconds, fades in screen, then the next day begins..
So to make the above work properly I would also need a system to keep track of days which I guess could be via another key item that does nothing on its own? then another parallel running event will continuously check their inventory for X amount of these and when they have that X amount the final event of the game will play.
Pretty much I just figured most of it out by myself actually but what I'm wondering still is if parallel would work for these events because it should constantly run in the background to keep checking for that X amount of items without interfering with the gameplay then when they have X amount of items it'll stop them from doing things and execute the event processing correct?
Skip to the last section of this post to answer my main question unless you want to help me figure out a better way to do this than I came up with.
So max of 6 events/day and after those 6 it'll trigger something that forces the player to end the day:
So for this approach to make it simple on myself I'll give the player a custom key item (which does nothing alone) and after they recieve 6 of these key items I'll have a (parallel running event?) on the map that activates if they have 6 of the specific item, then it first removes those 6 items, teleports them to their bedroom map, fades out screen, waits for a few seconds, fades in screen, then the next day begins..
So to make the above work properly I would also need a system to keep track of days which I guess could be via another key item that does nothing on its own? then another parallel running event will continuously check their inventory for X amount of these and when they have that X amount the final event of the game will play.
Pretty much I just figured most of it out by myself actually but what I'm wondering still is if parallel would work for these events because it should constantly run in the background to keep checking for that X amount of items without interfering with the gameplay then when they have X amount of items it'll stop them from doing things and execute the event processing correct?