pazindorb / dc20rpg

MIT License
29 stars 2 forks source link

[REQUEST] Moving during combat consumes AP #38

Open Riv3nOne opened 6 days ago

Riv3nOne commented 6 days ago

Description

Moving a token during an active combat encounter consumes an AP for every increment of an actor's allowable speed.

Function

Example

Fay slides her token 3 spaces away from her target, she automatically consumes 1 AP. She then attacks a target with her bow giving herself advantage, expending an additional 2 AP. She then moves her target 7 more spaces to increase her room, using the remaining 2 spaces from her first move and consuming an additional AP to move the extra 5 spaces.

Implementation/coding [a recommendation]

  1. trigger event on token movement
  2. validate/create a movement pool
  3. evaluate movement pool value
  4. if empty, evaluate AP remaining, if >0, consume 1 AP to add spaces to pool
  5. subtract the # of spaces moved from the pool
  6. if more spaces remain, repeat steps 3-5
  7. if spaces remain beyond movement pool and total AP, warn player movement exceeds their AP & speed [optional: return token to origin point]