script to disallow duplicate character names
I have made a script that will not allow duplicate character names.
Unfortunately, the call to my code must be placed in a very unintuitive spot.
I tried placing checking code in many places in CharacterCreation.cs, but when I placed it above the WelcomeTimer call, I either got a NullReferenceException or the prompt never showed to the player at all.
I have placed the reference to my code in WelcomeTimer.cs.
If someone can get it to work in a sensible place, I would appreciate letting me know where and how it works.
The archive contains a copy of my script (which has instructions in the header) and a sample WelcomeTimer.cs.
I have made a script that will not allow duplicate character names.
Unfortunately, the call to my code must be placed in a very unintuitive spot.
I tried placing checking code in many places in CharacterCreation.cs, but when I placed it above the WelcomeTimer call, I either got a NullReferenceException or the prompt never showed to the player at all.
I have placed the reference to my code in WelcomeTimer.cs.
If someone can get it to work in a sensible place, I would appreciate letting me know where and how it works.
The archive contains a copy of my script (which has instructions in the header) and a sample WelcomeTimer.cs.