TecKnow / STADiceRoller

Dice roller and probability visualizer compatible with the Star Trek Adventures TTRPG.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add assists to modeling #15

Closed TecKnow closed 1 year ago

TecKnow commented 1 year ago

The last major factor that impacts the D20 pools is assists. Characters can be assisted by other characters, or by their ship. Assists differ from the other effects on D20 pools because each assist die can use different stats. Assist dice can use different attributes, skills, and focuses than the main pool and they use the assisting player or character's scores for those values.

Additionally, assists can only add successes if the lead character gets at least one success of their own.

The general dice pool calculation function already treats each die in the pool individually, STA specific functions just supply it with an array of dice that currently happen to be identical. If the dice only differed in their target numbers, this would be easy.

There isn't currently any way to handle requiring the lead character to get at least one success to benefit from success dice though.

As a firs step to implementing this, extend the iPython notebook model to include it.