Back to the Blackwood Interactive Map

gen_history (#4699)
Location: Morgue (#8976)
Description:
The Dollar Bay (was Geology explorer's) history record
Note: history for each player is recorded on a separate object;
that object is referenced from the player's .history property.

The following verbs, plus others, are defined for managing player history

time_goal_assigned: returns time of last goal assignment, zero if not found
time_room_entered: returns time of latest room entry, zero if not found
acts_this_goal: returns list of explorers actions since most recent goal assigned
acts_this_room: returns list of explorers actions since room entered
acts_this_session: returns list of explorers actions since logging on
initialize: set up player's new history object
connect_times: returns a list of connect times from player history
merge_lists: a utility that merges two history lists by timestamp and returns merged list;
useful, for example, to review a player's complete history (or parts of it)

Also note: history objects are ONLY modified by the $g.game_player:update_history verb

Notes on porting history to another MOO
1. create a $g.genhistory object
2. copy/modify/upload the @dump script in:
http://www.cs.ndsu.NoDak.edu/~slator/html/mooadmin/histobj.txt
3. add lines to $g.game_player:confunc() to create new history objects as needed
4. copy/modify/upload $g.game_player:update_history(...)
5. add calls to $g.game_player:update_history(...) in appropriate verbs
such as $g.play_room:enterfunc/exitfunc and other 'important' action verbs

Contents: