Re: Player edit.

From: George (greerga@CIRCLEMUD.ORG)
Date: 04/24/98


On Fri, 24 Apr 1998, James Turner wrote:

>Heck, go one step further.  Re-do set a bit and have it a slight bit
>more abstracted.  Make the menu editor call these abstract
>functions... which would load a player if not in the game, set the
>value, and save them.

do_set(ch, "file person str 30", 0, 0);

Complete with level and error checking. :)

>If the player's stats change while editing, then perhaps there could
>be an alert to the editor (*cough* easy to do if all stats were
>accessed by setBlah methods)... or at least alert to the big things.
>Then redisplaying the menu would reflect the new stats (ie make the
>menu live).

Save a copy of the character before you edit, when a change it made, see if
that particular stat is the same.  If so, overwrite it.  Then re-read the
character.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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