RPG attributes generator: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
(Added 11l)
m (→‎{{header|R}}: Syntax highlighting.)
Line 3,115:
=={{header|R}}==
The base library already has an attributes function, so we avoid using that name. Otherwise, this is R's bread and butter.
<lang Rrsplus>genStats <- function()
{
stats <- c(STR = 0, DEX = 0, CON = 0, INT = 0, WIS = 0, CHA = 0)
331

edits