I’m tryna figure out how to make a pet system. My idea is to give each pet a unique code, like “a” for a basic pet or “b2” for an evolved one. I’d store these codes in a string, like “a,c,b2,” and update the string whenever a pet is added or removed. For example, if I deleted “a,” the string would change to “c,b2.” Then, another script would split this string by commas and load the pets, so “c” would load a dog and “b2” would load a level 2 cat. Does this sound good or is there a more advanced/better way of doing it?
I’m wondering if there’s a reason for it to be stored as a string? A dictionary or an array would probably be better suited for storing information about different types of pets and/or a pet inventory system.
1 Like
Thanks thats just what i was looking for
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.