X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Fplayer.scm;h=3aa22873a257155d994c5aced4310f12738e3060;hp=63af65e77a8f84071f5780cfd486f6a5fb183717;hb=8c357c87019a70aabdfadb4c71e3b063251cff87;hpb=8a2341e98f75a5df295f49c08485eb6339dda19e diff --git a/mudsync/player.scm b/mudsync/player.scm index 63af65e..3aa2287 100644 --- a/mudsync/player.scm +++ b/mudsync/player.scm @@ -38,7 +38,8 @@ (define player-actions (build-actions (init (wrap-apply player-init!)) - (handle-input (wrap-apply player-handle-input)))) + (handle-input (wrap-apply player-handle-input)) + (tell (wrap-apply player-tell)))) (define player-actions* (append player-actions @@ -88,6 +89,10 @@ (<- player (gameobj-gm player) 'write-home #:text "Huh?\n")))) +(define-mhandler (player-tell player message text) + (<- player (gameobj-gm player) 'write-home + #:text text)) + ;;; player methods