It took me a good bit of trial and error to figure out how to assign a random name to an individual ego item so that it looks like a randart. After a while, I finally got it to work, but now I can't save it in the savefile.
I have the random name saved as:
char o_ptr->randego_name
How can I save that in the savefile with the rest of the o_ptr stuff?
There's wr_byte and wr_s16b, etc. but no wr_char, and I don't know how to make one.
EDIT: If someone could do me a huge favor and write a wr_char function (and probably a rd_char function for load.c) for me, I'd be very grateful. All of the wr_xxxx functions are at the top of save.c.
I have the random name saved as:
char o_ptr->randego_name
How can I save that in the savefile with the rest of the o_ptr stuff?
There's wr_byte and wr_s16b, etc. but no wr_char, and I don't know how to make one.
EDIT: If someone could do me a huge favor and write a wr_char function (and probably a rd_char function for load.c) for me, I'd be very grateful. All of the wr_xxxx functions are at the top of save.c.
Comment