Skip to content

RollCapture v1.0.0: Generic roll result extraction#2266

Merged
Alicekb merged 30 commits into
Roll20:masterfrom
KenanMillet:RollCapture
Jun 30, 2026
Merged

RollCapture v1.0.0: Generic roll result extraction#2266
Alicekb merged 30 commits into
Roll20:masterfrom
KenanMillet:RollCapture

Conversation

@KenanMillet

Copy link
Copy Markdown
Contributor

Summary

Generic roll result extraction for Roll20. Listens to roll template messages, extracts values per configurable rules stored in handouts, and fires character abilities with captured values.

Features

  • Capture rules via handouts tagged [RollCapture] or [RC]
  • Conditional extraction (when:/default: blocks)
  • Formulas: direct value, max(), min(), sum(), choose() (GM prompt)
  • Character ability firing: rc_any, rc_<rollname>, rc_default
  • onCapture API for programmatic consumers
  • Comment lines (#) in rules
  • !rollcapture rule <name> creates handouts with syntax guide

Tested

  • D&D 5E skill rolls (NPC + PC, normal/advantage)
  • choose() with equal values auto-resolves
  • Ability firing (rc_any, rc_stealth, rc_default)
  • Rule hot-reload via !rollcapture reload

…(), missing-field drop, clear syntax, no indentation
…g, field resolution, formula eval, choose(), onCapture API
@KenanMillet KenanMillet changed the title RollCapture v0.1.0: Generic roll result extraction RollCapture v1.0.0: Generic roll result extraction Jun 26, 2026
@Alicekb Alicekb merged commit bacb392 into Roll20:master Jun 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants