Talos Mud Development Blog

One mans quest to blog about Mud Development

Archive for the ‘Player’ Category

Physical.c (cont…)

leave a comment »

Okay so so far here’s the prototypes’s for physical.c, I won’t go into the code but a listing of the calls is a good thing too:

int SetEyeColor(string color);
int SetOrigHairColor(string color);
int SetHairColor(string color);
int SetOrigBuild(int build);
int SetHeight(int height);
int SetWeight(int weight);
int IncreaseHeight(int height);
int DecreaseHeight(int height);
int IncreaseWeight(int weight);
int DecreaseWeight(int weight);
string GetEyeColor();
string GetHairColor();
string GetOrigHairColor();
int GetHeight();
int GetWeight();
string GetDescBuild(int build);
string GetDescOrigBuild(int build);


Written by Troy

February 6, 2010 at 8:38 am

Character Physical Stats

leave a comment »

I’ve put aside the Weather System for a couple of days as I try to figure out all the intricacies in actually displaying the information. And Have begun working on physical.c which will be included in base.c (maybe player.c, I’ll have to check the inheritance tree!). My aim here is to allow players and wizards to set the ht, wt, hair color, build, eye color, and other physical non-combat/skill related stats that I want available.

I’ve built it specifically so that we can open up such fun things as food having nutirional values so that you can get fat or thin, you can have potions or magic that increases or decreases your size, areas that only allow certain heights to walk through with out being hampered. You will also be able to dye your hair, or shave your hair, etc….

I have hardcoded some intial ht/wt limits which won’t let a certain race start off as beyond a certain range, but I’ll have to take a look at the RACES_D and see if I can integrate it there, but that would make it a compat busters, and I was the one who hacked the 2.1.13r RACES_D for Craty and busted everyones compat, but made it much more dynamic.

Of course with the physical descriptions set up we get a step closer to having dynamic Descriptions for our players and npc’s.

Written by Troy

February 5, 2010 at 8:43 am