symposion / roll20-shaped-scripts

Support script for 5e Shaped Character Sheet on Roll20.net
http://roll20.net/
7 stars 5 forks source link

Make apply-defaults async like update-character #473

Open romkansk opened 7 years ago

romkansk commented 7 years ago

When I open pre-existing module and try to set up tokens on the page I have to:

  1. Select all tokens on the layer
  2. Use !shaped-update-character command
  3. Select all tokens again
  4. Use !shaped-apply-defaults command to generate token actions, roll HP and apply configuration from !shaped-config

The last step usually fails with sandbox suspecting infinite loop and stopping.

I suggest making apply-default commad use same async logic as update-character. Moreover if it's possible it would be great if apply-defaults would check character sheet attributes and update it if necessary.