GithubHelp home page GithubHelp logo

pfadfinder's Introduction

Pfadfinder

Charactersheet for Pathfinder 1st edition.

Under development, no guarantees of stability and data-safety.

Macros

You can use macros in many fields to automatically calculate values.

Example: You have an ability that allows you to add your wisdom modifier to your initiative. You can enter the following into the misc-field: @wis.mod

Macros also work in most text-fields (descriptions etc.). Wrap a macro in double curly braces (i.e. {{ macro }}). Optionally add formatting options.

Take the spell 'Cure Light Wounds' as an example.

When laying your hand upon a living creature, you channel positive energy that cures 1d8{{:+ min(@classes.levels, 5) }} points of damage.

Functionality

Macros currently support the following things:

Function Usage
Arithmetic <a> + <b>, <a> - <b>, <a> * <b>, <a> / <b>,
Parentheses Parentheses will be evaluated in the correct order. 4 / ( 2 + 2 ) = 1
Modulo <a> % <b> (Wikipedia)
Absolute abs(<value>)
Rounding round(<value>), ceil(<value>), floor(<value>)
Min/Max max(<a>, <b>, ...), min(<a>, <b>, ...) Takes any number of arguments, calculates the minimum/maximum
Clamp clamp(<value>, <min>, <max>) Clamps value between min and max
Step step(<value>, <threshold>) Is 0 if value < threshold and 1 otherwise

Character Data

Using the @-symbol you can reference values of your character. Everything after it will directly index the internal character-structure (see src/lib/data/character/character.ts).

Examples:

Target Path
Strength modifier @str.mod
Maximum HP @hp.max
Character level @classes.levels
Level of first class @classes.list.0.level

Formatting options

Macros inside text fields can be optionally formatted. The syntax needs to follow {{:<flags> <macro>}}

Flag Result
+ Will always display the sign, even if the number is positive
z Don't display anything, if the result is zero

pfadfinder's People

Contributors

niphram avatar

Watchers

 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.