Page 1 of 1

Added checks for new player races

PostPosted: Sun Nov 14, 2010 10:07 pm
by morovir
I need to update a PCRace-like global variable, but I want to avoid using the RaceCheck script - since other mods probably dink with it.

I am thinking the easiest way, since I'm already dependent on Bloodmoon, is to add a start script that waits for character generation to complete, and then updates the variable. In order to guarantee I don't tinkle in someone else's cornflakes, I had planned on using a different global (PCisHybrid).

The question is, how can I know for sure that the player has selected a race? I'm not necessarily interested in players who use the console to do this, but I do need to account for alternate character generation methods.

Thanks!

Re: Added checks for new player races

PostPosted: Mon Nov 15, 2010 9:08 am
by Jac
Just do a check for your races (if PCRace == "your race"). That way you'll know if your races don't match, the player has either picked a default race or hasn't picked a race. You can also keep checking until the player has picked a race and then stop the script.