This package is a compilation of functions in R to make RStudio the optimal RPGing environment.
These are the products included, as well as the prefix of the functions that call their tables.
gme.gme.une.gma.iron.ìcons.inst.dmg.wyrd.perilous.toolbox.handbook.bloch.Some additional goodies:
- PC Options: backgrounds extracted from 5e and PF 2e: pc_background.
- Random monster generators: monster_osr for OSR D&D monsters and monster_path for monsters from Pathfinder 1e.
- Settlements stuff: settlement, to create size, name and government type of a place.
As this is not on CRAN and it won´t be for a lot of time, you best bet is to use "install_github" function from the "devtools" package:
install.packages("devtools")
library(devtools)
install_github("rpg-tips/RPGTips")
The different functions and generators are divided by preffixes:
gme for Mythic-related functions. Some examples:
gme_fate_check()
## [1] "Exceptional No"
gme_detail_check()
## [1] "Focus PC"
gme_actions_table()
## [1] "Attach Art"
gme_turning_point()
## theme point
## 1 tension Into the Unknown
## 2 tension (Meta) Character Steps Up
## 3 personal Conclusion
## 4 personal None
## 5 mystery The Hidden Hand
iron for Ironsworn-related functions. Some examples:
iron_dice()
## [1] "Miss"
iron_combat_actions()
## [1] "Attack with precision"
iron_npc_disposition()
## [1] "Helpful"
There are two additional auxiliar functions, roll and roll_table.
roll allows to emulate any typical dice roll:roll(n = 1, d = 6)
## [1] 3
roll(n = 4, d = 6, type = "drop_min")
## [1] 11
roll(n = 2, d = 20, type = "advantage")
## [1] 16
roll(n = 2, d = 20, type = "disadvantage")
## [1] 4
roll(type = "fate")
## [1] 2
roll_table is created to keep results consistent when they are written on an Rmarkdown file, as a workaround to setting a seed everytime we want to roll on a specific table. You just need to set your seed_counter variable to whatever you want at the start of your document, and then call roll_table to roll on a generator and it will handle everything.seed_counter <- 7777
roll_table(gme_actions_table)
## [1] "Fight Animals"
roll_table(gme_event_check)
## [1] "Move Away from a Thread"
roll_table(iron_npc_goal)
## [1] "Rebel against power"
roll_table(iron_dice)
## [1] "Miss"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.