On Sat, 4 Aug 2001, NeoStar wrote: > RESTORE ALL > How would I go about doing that? Setting everyone's stats to max? I presume you mean points (hp, mana, move) rather than stats. You need to add some code inside do_restore() which will loop through all descriptors on the mud and set each point of each char to maximum. pseudo-code: if (argument is "all") { for (each descriptor) { GET_HIT(d->character) = GET_MAX_HIT(d->character); ... update_pos(d->char); } } Have a look at the transfer all command to see an example of looping through each descriptor and performing an operation on them. I have not included real code because this is quite a simple piece of coding, and should not be done for you by someone else. Its a good learning experience :) -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST