Description Usage Arguments Value Examples
Perform a Melee Attack
1 2 3 4 |
warjack |
list warjack object with elements stats, range and melee |
which |
single integer or single character 'power' index of warjack weapon to use, or identify as a power attack |
target |
list target warjack object with elements stats and special stats has elements
|
charge |
single logical |
boost_hit |
single logical |
boost_damage |
single logical |
foc |
single numeric number of focus |
kd |
single logical is the target knocked down?
(default |
dist |
single numeric distance between bases (default 0) |
dice |
numeric vector (default |
pos |
single numeric (default 1) |
named vector with elements
damage amount of damage inflicted
focus remaining focus following attack
knocked down is the target knocked down? 0: No, 1: Yes
position which die to use next
hit was the target hit? 0: No, 1: Yes
1 2 3 4 5 6 7 8 | 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))))
attack(blueleader, which = 1, target = list(stats = c(DEF = 13, ARM = 13, BASE = 30)),
boost_hit = TRUE, boost_damage = TRUE, foc = 3,
dice = c(1, 5, 4, 1, 1, 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.