How do I assign a player a random color when they log in and noone else could get that color unless the person who has the color leaves?
The colors are: ("Red","Yellow","Green","Blue","Cyan","Purple","Orange","Gray")
ID:268937
![]() Dec 30 2004, 5:39 pm
|
|
Try this(Untested)
mob/var/Color I'm not sure if it'll work but it's worth a try. |
Well errm this is what I have done myself, Would it work?
mob |
NO.
First, if GetColor fails, it returns nothing, and you get a blank entry in the list. If GetColor() gets spawn'd(), it has no one to return to. Second, I don't like "if("[Color]" in Colors)". I doubt that will work. Try if(Colors.Find("[Color]")) I'd change Login() to merely call GetColor, and move the Colors+= and world << lines to GetColor. |
[EDIT]
You would do it like this