I'm scratching my head on how an API of the shadowrun 5e initiative system would work. Here's the basic system INITIATIVE PASSES
How many times a character can act during a Combat
Turn is determined by the Initiative Test. Every charac-
ter starts out with a base Initiative die of 1D6. Some
characters may spend Edge or have magic or implants
that increase their Initiative dice total, allowing them
to roll more dice and potentially perform more actions
than their non-enhanced associates.
The Combat Turn is divided into Initiative Passes.
Everyone gets to act during the first Initiative Pass (in
order according to their Initiative Score). At the end of
each Initiative Pass the gamemaster subtracts 10 from all
characters Initiative Score. Characters with an Initiative Score higher than 0 get to go again during a second Ini-
tiative Pass. This process is repeated until all characters
have an Initiative Score of 0 or less, the Combat Turn
ends, or the combat ends. A character with an Initiative Score of 0 or less can
only take one Free Action during an Initiative Pass. How-
ever, a character with 0 or less Initiative is allowed one
Free Action. She can also respond to attacks by dodging
or defending herself. So, i need a macro for quick and easy calculating of the basic initiative and a way to subtract 10 from everyones initiative when the Ipass ends. Any thoughts/responses? Thanks in advance. Joel M