- Posts: 172
- Thank you received: 14
Please Log in or Create an account to join the conversation.
Halenbane wrote: I have seen this on a few MUDs before , but I do not recall which codebase. I'm tossing around an idea to implement custom character appearance. The questions is the best way to go about it.
You could either write it so the values are temporarily stored and then written into the players description that they would normally type in themselves.
Or the more interesting way I think, is to store the values like you store a stat, able to change , and also able to display in other areas.
Example.
After Pick your race , pick your class...
----
What is your eye color?
What is your body type?
What is your height?
What is your hair color?
Now, once a player makes their choice it is stored in their pfile just as a str stat or their name, or anything else about them. This way it can also be modified with the wizard set command, or changed by a player with a scripted mob/obj/room.
Also doing it this way, you can incorporate it into their score card.
Score
Name: Halenbane
Title: the Pimplementor
Class: Paladin
Race: Elf
Eye Color: Blue
Hair Color: White
Skin Color: White
Body Type: Athletic
Also a person could go a step further, and make the creation process even more advanced and make calls against their race type.
So if you were a pixie race type, you may receive an additional question during creation ,
What is your primary wing color, what is your secondary wing color.
Basically this would result in everything being stored in score, being settable by an admin, and also possibly generate a desc for the character when looked at, based on the data received.
You see Halenbane the Pimplementor. He appears to be an Elf. He stands at 73 inches tall with an athletic build. His hair is long and blonde.
Of course this could be written much more creatively but the above is just to get the idea across.
Also implementing this you could do even more with scripts.
Write a mob script after this is implemented to where an npc might look at you, and then say "My what beautiful blue eyes you have" or "Your hair sure is blonde!" just by reading player.haircolor or player.eyecolor etc.
I know this is jumbled and all over the place, but its just how my brainstorms go I'll be working on trying to figure out the most efficient way to write this. But responses are welcome.
Please Log in or Create an account to join the conversation.
+1Liko wrote: I believe height is programmed already just unused. I think your best bet for hair color, hair style, and eye color would be to make a menu like the class menu. If you let them type then you have no idea what they would enter and would have to implement a system to check what they enter or constantly have your staff checking what they put for hair color, hair style, and eye color. What if someone said they their hair color was bitch? I agree with you on race affecting creation options. It can be easily done. You could make it check to see if the player is a certain race it would send them to that option if not send them somewhere else.
I hope this helps.
Please Log in or Create an account to join the conversation.
Yup, dynamic descriptions are one of my favourite topics, and I handle them much like you've described here - players select options for attractiveness, skin colour, eye colour, etc, and the mud uses those attributes (along with other factors) to generate a description on the fly.Halenbane wrote: Basically this would result in everything being stored in score, being settable by an admin, and also possibly generate a desc for the character when looked at, based on the data received.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The whole idea with ASCII playerfiles is that adding new stuff doesn't mess with the old. You decide what your default value should be (that's the PFDEF_) and make sure you save the value if it's not the default.Halenbane wrote: It is to my understanding that If I define new PFDEF's such as PFDEF_EYECOLOR, PFDEF_BODYTYPE, it will corrupt my ascii pfiles. Is there a way to avoid it doing this, and have it just default for existing players?
Please Log in or Create an account to join the conversation.
tbaMUD © 2024