GithubHelp home page GithubHelp logo

anthrax3 / gurps-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from celti/gurps-scripts

0.0 0.0 0.0 18 KB

A collection of scripts for use with the Generic Universal RolePlaying System.

License: MIT License

Perl 100.00%

gurps-scripts's Introduction

GURPS-scripts

A collection of scripts for use with the Generic Universal Role-Playing System.

gurps-aging-calculator.pl

Runs through a number of iterations of the GURPS aging rules using the specified collection of aging-related traits, returning the maximum, minimum, mean, median, and standard deviation.

$ ./gurps-aging-calculator.pl --help
Usage: ./gurps-aging-calculator.pl [OPTIONS]
  -?, --help            Display this help and exit.
  -v, --log[=?]         Log verbose output to age-calc.log. (Default: off)
  -h, --ht=?            The character's starting HT. (Default: 10)
  -t, --tl=?            The character's medical TL. (Default: 8)
  -a, --add=?           Additional modifiers to the aging roll. (Default: 0)
  -d, --death=?         The HT the character is considered dead at. (Default: 4)
  -x, --lifespan=?      The character's level of Extended Lifespan.
                        Negative values indicate levels of Short Lifespan. (Default: 0)
  -l, --longevity       The character has Longevity. (Default: off)
  -s, --self-destruct   The character has Self-Destruct. (Default: off)
  -i, --iterations      The number of iterations to calculate. (Default: 10,000)
  -p, --maxprocs        The number of threads to spawn. (Default: 4)

$ ./gurps-aging-calculator.pl
Median age of death is 77.5 (highest is 130.25, lowest is 54).
Mean: 78.694325; StdDev: 10.36245658829864531655

gurps-point-calculator.pl

Takes a GURPS character sheet in standard SJGames print format (as used for templates and sample characters in books) and prints out the total point value, disadvantage total, as well as the totals of all values within angle brackets (<0>), curly brackets ({0}), or pipes (|0|), plus the total weight and cost of all values listed on the page (in the format of: $1,000, 10 lbs., 8 oz., 2 kg., 100 g.). You can get a test run by feeding it to itself.

$ sed -n '5,13p' gurps-point-calculator.pl
## Testing:
# Wealth (Filthy Rich) [50]
# Greed (12) [-15]
# Template: Immortal [5]
#    Unaging <5>
# 
# $2, $400, $60K, $800M
# 10.5 lbs., 19 oz., 2 kg., 400 g.
# {10} |2| {20} |11| |0.5| |0.25| |0.125|
$ ./gurps-point-calculator.pl gurps-point-calculator.pl
40 points (-15 disadvantages)
Equipment: $800,060,402, 16.98 lbs. (7.7 kg.)
Other sums: <5> {30} |13.875|

gurps-scripts's People

Contributors

celti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.