Quote:
Originally Posted by imported_silkroad
..... I am going to log these moves into the database and make it so when someone rejoins the game , the log of prior moves is displayed in the game chat.
|
The first half was easy, just added a new db field
move to table
gameroom_board_game_log and added the move to the log update dB query.
The next part is a lot more tricky

I think, off hand, the best approach is to create a new type sysMsg function that writes the moves to the chat window on demand. "On demand" means that the system will look at the chat messages in the gameroom, and if the chat "GETMOVES" (or something like that) when that will be interpreted as a command and it will read the
moves out of the dB and then post then to the game chat area.
Maybe even an optional number of moves, like GETMOVES 10 (that defaults to ALL when an optional number argument is not present).
The more I think about it, I think adding a simple chat-system-command interpreter is maybe the best way to go......