WheelMUD icon indicating copy to clipboard operation
WheelMUD copied to clipboard

After character creation the context is unclear

Open JeremyTHolland opened this issue 4 years ago • 2 comments

Once the character creation process is finished and the player enters the world, providing the results of a Look command or priming the player input buffer with LOOK might help alleviate the uncertainty.

JeremyTHolland avatar Dec 14 '20 05:12 JeremyTHolland

I'm preparing the AppConfigInfo.Instance.AutomaticLoginCommand property now which will have a default value of "look". I think we can finish implementing this feature by registering a global login event handler when that property !IsNullOrWhiteSpace, which will process that command on behalf of every freshly logged in player. (Trying to process the command during PlayingState's constructor is too early as the command would be processed by the previous, still-registered state.)

(Search for WheelMUD/issues/56 in code for related adjustment sites.)

DavidRieman avatar Feb 22 '21 03:02 DavidRieman

It occurred to me that PlayerBehavior should probably register to Movement Events of the Player Thing it is attached to, to automatically trigger a look on behalf of the player any time they are attached to a room for any reason. E.G. after the player uses "east" they should probably also see the new room. Same result if they walked through a portal or got moved by fleeing or other transport code or teleported by an admin, etc.

Maybe that would be sufficient to cover the login case: If they are freshly loaded, maybe we (do or should) generate a movement event for attaching that player to the room they're loading into, and if they're reconnecting from a network issue and haven't yet been unloaded from link-death, they probably don't need a fresh "look" at the room they're in anyways.

DavidRieman avatar Mar 03 '21 08:03 DavidRieman