April 20, 2010
By amaranth on Apr 20, 2010 | In News, Alliance of Heroes, General, Gaming, Character Manager | Send feedback »
I’m clearly not very good at updating blogs after 2 years of silence!![]()
Yes, I’m still working on the Character Manager project but I feel I’m making progress again at last. Here’s the issues that have been holding it up:
- Race determines potential age ranges, height ranges, and in fact almost all player feature options.
- Age determines weight based on race and height.
- Height (along with race and age) determines weight based on physique.
- Physique simply determines weight which is based on race, age, and height.
Problems arise when say a player is 4 years old (the minimum) and changes their race from human to giant. A giant’s minimum age is older than 4 years old so I need to adjust the age as a percentage of the range of youngest to oldest possible ages in order to maintain consistency. I also have to alter their height as a percentage of their original height of course. And since their age and height changes I also need to adjust their weight.
To add to the confusion, I also have to validate all the new values to make sure they are allowed for the given race. So I set the new race, validate the new age or height which calls the race value to establish valid ranges which calls the age or height routines to get valid ranges which goes around in a circle until the system regurgitates in a dizzying infinite loop!
The good news is that I believe I have a solution which involves smoother code flow and more logical subroutine progression. Keep your fingers crossed!
No feedback yet
Leave a comment
| « April 27, 2010 | November 8, 2008 » |

