Hello everyone!
You've always been helpful in the past, so I've come again, needing some help. I have a shop in which I want every 24 hours (for testing purposes this will be set to 5-10 minutes) to spawn 3 different items in the shop for each player to buy. Players shouldn't all get the exact same items spawned in the shop (if possible).
The players know what those 3 items are, and they have the option to buy any of them, if they want to.
(BrawlStars is a perfect reference, as that is exactly what I am trying to do. I don't want a loot crate system, I just want to offer them every day 3 random items in the shop which they can buy if they want to).
There are generation rules for each item spawned (items have rarities). I've set up 4 helper drop tables containing all my items for each rarity (common, rare, epic legendary). Then I've set up 3 drop tables, which will be used to get the items every day.
The questions are:
1. How do I implement the timer? I guess that by using Scheduled Tasks, but just wanting to be sure.
2. What cloudscript function do I call every 24 hours?
3. How do I display the item in the Unity game? I mean, I probably have to get the dropped items from the table, and then display the correct item based on the returned item ID.
4. How do I check, in Unity client, if the user already has that item (so that I disable the buy functionality on that item and display an "OWNED" label over it)?
Sorry if there are too many questions, but any help is greatly appreciated