Skip to content

CSJCampbell/WMTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WMTools

An R package to simulating activations in Warmachine(R). See analytical gaming for more information.

how to use this code

# install devtools for devtools::install_github
install.packages("devtools")
require(devtools)
# install visualTest
install_github("CSJCampbell/WMTools")

This package also includes tests in testthat format. From R run the call test_package("WMTools").

require(WMTools)
blueleader <- list(stats = c(SPD = 5, MAT = 7, RAT = 5),
        range = list(),
        melee = list('quake hammer' = list(stats = c(RNG = 2, PAS = 18),
                special = c("crit knockdown")),
            'open fist' = list(stats = c(RNG = 0.5, PAS = 14), special = character(0))))
# try to shoot with no gun
activation(blueleader, target = list(stats = c(DEF = 13, ARM = 13, BASE = 30)),
    strategy = "aim", boost_hit = TRUE, boost_damage = TRUE, foc = 3,
    dice = c(1, 5, 4, 1, 1, 2))
# charge in full tilt
activation(blueleader, target = list(stats = c(DEF = 13, ARM = 13, BASE = 30)),
    strategy = "charge", boost_hit = TRUE, boost_damage = TRUE, foc = 3,
    dice = c(1, 5, 4, 1, 1, 2, 5, 5, 2, 6, 3))

About

Tools for simulating activations in Warmachine(R)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages