Okay, Im stumped. I noticed the age wasnt being displayed in score. I looked at the code, played with it, but dont understand why it doesnt show. I believe it has to do with the second section of code that shows stats if youre above level 10, but Im not sure why. Any pointers for me? Here is the snippett from my do_score: ACMD(do_score) { struct time_info_data playing_time; struct time_info_data real_time_passed(time_t t2, time_t t1); sprintf(buf, "You are %d years old.", GET_AGE(ch)); <-------------- this doesnt print if ((age(ch).month == 0) && (age(ch).day == 0)) strcat(buf, " It's your birthday today.\r\n"); else strcat(buf, "\r\n"); /*added by firefox (displays stats)*/ <---------------- slightly modified code below if (GET_LEVEL(ch)>=10) sprintf(buf, "Str: [%d/%d] Int: [%d] Wis: [%d] " "Dex: [%d] Con: [%d] Cha: [%d]\r\n", GET_STR(ch), GET_ADD(ch), GET_INT(ch), GET_WIS(ch), GET_DEX(ch), GET_CON(ch), GET_CHA(ch)); /*end added by firefox */ sprintf(buf, "%sYou have %d(%d) hit, %d(%d) mana and %d(%d) movement points.\r\n", buf, GET_HIT(ch), GET_MAX_HIT(ch), GET_MANA(ch), GET_MAX_MANA(ch), GET_MOVE(ch), GET_MAX_MOVE(ch)); sprintf(buf, "%sYour armor class is %d/10, your alignment is %d, and your magic resistance is %d.\r\n", buf, GET_AC(ch), GET_ALIGNMENT(ch), GET_MAGIC_RES(ch)); ------end snippett-------- If I move the GET_AGE code below the modified show attributes code, the attributes dont print. If I move the GET_AGE code down into the middle of the function, anything above it doesnt print. Thanks for any help. Travis +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST