pazindorb / dc20rpg

MIT License
29 stars 2 forks source link

[Request] Automate Battle movement actions during active encounters #35

Open WThunderspirit opened 1 week ago

WThunderspirit commented 1 week ago

/ Alot of this would be based from D&D 5e versions of Terrain Ruler or Elevation Ruler, using routinglib Which could be used, but doesn't spend or check against action points available, so really wouldn't do much for DC20 /

// Check if Encounter is Active, if not, do nothing (Measure only during active combat) // Check If Token has started moving on the canvas // Check if they have an available movement speed > 0 // If no action points available, notify on screen and stop token movement // During drag, show a colored line, avoid obstacles, and allow right clicks to set waypoints // Measure each speed amount of spaces (including those reduced by conditions) as an action point // Spend the action points on the sheet and have the Token follow the route selected on canvas when the mousedown is lifted (Drag is done) // Finish