emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: c4droid <c4droid@foxmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Playing RPG game with org-mode
Date: Mon, 09 Sep 2024 11:07:36 +0200	[thread overview]
Message-ID: <87ed5tw5yf.fsf@web.de> (raw)
In-Reply-To: <tencent_3AAC33C3BAD77948092B03F4D30E4D45EF08@qq.com> (c4droid@foxmail.com's message of "Mon, 09 Sep 2024 11:53:13 +0800")

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

c4droid <c4droid@foxmail.com> writes:
> and Ironsworn. I want some guidence for playing RPG game in org-mode,
> like creating character sheet, roll dice, creating module, etc. Have any
> idea?

Do you mean using org-mode to help playing RPG games or to actually play
computer RPGs inside org-mode?

I use org-mode to create random characters and export to LaTeX.
Embedding die rolling is really simple with org-babel source blocks.

The simplest way could be something like


#+name: roll
#+begin_src bash :var diesize=6
echo $((1 + ($RANDOM % $diesize)))
#+end_src

#+call: roll(20)

#+RESULTS:
: 0

# Local Variables:
# org-confirm-babel-evaluate: nil
# End:


(but using a program like https://github.com/sstrickl/rolldice instead
 of simple modulo of $RANDOM)

What do you meant by "creating module"?

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

  reply	other threads:[~2024-09-09  9:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2a5ghxz2u.fsf@foxmail.com>
2024-09-09  3:53 ` Playing RPG game with org-mode c4droid
2024-09-09  9:07   ` Dr. Arne Babenhauserheide [this message]
2024-09-09  9:29     ` Pedro
2024-09-11 15:29       ` Pedro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ed5tw5yf.fsf@web.de \
    --to=arne_bab@web.de \
    --cc=c4droid@foxmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).