From 14f6524eecd0c6ca4031634c2a3d10553911dcaf Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 19 Sep 2023 20:54:43 -0700 Subject: [PATCH] Add any message to the standard kill-ring too. You know, the clipboard! --- rpgdm.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rpgdm.el b/rpgdm.el index 301d4ab..9d75c12 100644 --- a/rpgdm.el +++ b/rpgdm.el @@ -87,6 +87,7 @@ The FORMAT-STRING is a standard string for the `format' function, and ARGS are substitued values." (let ((message (apply 'format format-string args))) (ring-insert rpgdm-last-results message) + (kill-new message) (rpgdm-last-results))) (defun rpgdm-last-results () @@ -195,12 +196,12 @@ The formula is based on the NUMBER-OF-DICE. According to the Players Handbook in Dungeons and Dragons, we have this table to determine difficulty skill check levels: - - Very easy 5 - - Easy 10 - - Medium 15 - - Hard 20 - - Very hard 25 - - Nearly impossible 30 + - Very easy 5 + - Easy 10 + - Medium 15 + - Hard 20 + - Very hard 25 + - Nearly impossible 30 But I read somewhere that you could roll some 6 sided die to help add a bit of randomness to the leve setting. Essentially, roll