I’m currently making a game that involves player customized warrior NPC’s, I want the player to be able to customize these npc’s but I don’t know the best way to setup a ‘system’ where I can have a folder of items in replicated storage and if the player owns and has a certain item equipped it will add that to their warrior’s as their spawned. Currently I have Booleans for every item at the start of the game.
A for loop will get everything in a folder from replicated storage and setup bools in the player for each item, then those are collected when creating a warrior and added based on which ones are true. The shop just sets bools to true.
Each item has a folder called info with a bunch of info like the body part the item attaches to, the offset from that part, health buffs and damage buffs, and harder to explain variable I added to fix problems that arose trying to workout the system. Is there a better way to setup a system like this??
1 post - 1 participant