Here is how I fixed it, just going to show you how I fixed INT.
#DB.C#
In load_char add the following to the initilizations....
GET_RINT(ch) = PFDEF_INT;
Add to case 'I':
else if(!strcmp(tag, "Int "))
GET_RINT(ch) = num;
In save_char with the rest of the defines add:
if(GET_RINT(ch) != PFDEF_INT)
fprintf(fl, "Int : %d\n", GET_RINT(ch));
Make sure you have ch->aff_abils = ch->real_abils; above:
if(GET_NAME(ch))
fprintf(fl, "Name: %s\n", GET_NAME(ch));
And lastly search for /* take care of setting up affections properly */
and put the following simple line below it.......... (There should be a line
already below it, but I just removed that.)
affect_total(ch);
#UTILS.H#
#define GET_RINT(ch) ((ch)->real_abils.intel)
With this example I am sure you can figure out how to get the things like
STR to save......
-----------------------------------------------------------------------
Mark W. Vanness Jr.
Artifact Newsletter - Project Coordinator
TrekWars Administration - Project Coordinator
-----------------------------------------------------------------------
Artifact - http://artifact-vpx.hypermart.net
TrekWars MUD - telnet://funcity.org:9321
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST