Roll20 / Roll20/roll20-api-scripts

Some Randomization

Open
#1,702 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
407
Forks
602
Avg merge
7d 55m
Merged PRs (30d)
18

Description

This is not an issue. I just wanted to share this information. When I play Hero system I like there to be some randomization to when characters take actions, much like in other RPG games like D&D and such. Of course the speed chart is intricate and important to the game so the way I do this is by setting the initial segment that a character can react on to be based on the first action in the segment chart. For instance if the chart says that your first action is in the 6th segment because you have a speed of 6 then I like to roll a 6 sided die to set the first segment to sometime between the 1st and 6th round.

In the spirit of this I have taken your script and made a copy for myself. I added a randomizer function and another function that uses that randomizer to generate a random first segment based on the characters speed. I can share my code if you are interested.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is identified. First clarify whether this proposed randomization belongs in the project and request the referenced code; the scope and definition of done must be agreed before implementation can begin.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.