Character Preferences.

my question is lets say i get a character level 1 mage and when its received it sets preferences to the mage for example playerpreference.setint(“power”,random.range(6,12)) right lets say we get the same character down the line but its going to look for the same script and set the preference which i’m assuming would set the first mages stats back to the same thing as the second mage regardless of level’s etc how can i make it so that this won’t happen? I can easily make it where duplicates are not possible but in my game duplicates have to be possible i’m afraid.

Any info you can give would be very appreciated.

Prefix “playerName” to playerprefs strings and enforce uniqueness. If not, please edit your question for clarity.