Hello everyone,
I have some question to implement some features in Playfab. Small code examples would be great for some answers.
1) How can make an e-mail & password system? How can I store their password as encrypted? Also, how can I make "forgot password" system?
I am thinking of releasing my game on multiple platforms, so that I don't want the players to start the game from the beginning when they switch platform.
2) The players can buy and sell weapons in the game. Should I mark them as Durable or Consumable?
3) How can I limit the both stackable and unstackable items? Can I get how many instance of an item the player has in the script and write a basic if statement?
In the game, some weapons are dual wielded. For those weapons, the player can buy the same weapon up to 2 times. I marked those weapons as stackable since I can read it easily and show the player, and I am thinking of writing a basic if statement by checking the weapon's custom data to see if it is dual wielded. If so, I will cancel the purchase process if the stackable amount is 2.
Same thing for the other weapons too. I want the players buy the other weapons once. I didn't marked them as stackable, and I am thinking of writing an if statement in the script.
4) The players can buy weapons in the game. After buying a weapon, the player can buy ammo for the weapon. Is there a way to implement this feature?
Every weapon has different ammo prices. Defining a new item wouldn't help my situation. It doubles the amount of item in the catalog.
I am thinking of defining ammo price in the custom data and when the player presses the buy button, I will check if the player has the weapon. If so, I'll read the custom data of the item to check the ammo price. This leads me to another question. Can I read custom data of an item in the script?
5) Is there a way to organize catalog items by their types?
Since I define all the weapons and their attachment in the same catalog, items look disorganized.