ocangelo / roll20 Goto Github PK
View Code? Open in Web Editor NEWroll20 api scripts
roll20 api scripts
I copied the NPC (Air Elemental) to WS - Air Elemental (Naomi). Saved the image, removed the original and reloaded the saved one.
Made sure the token was the correct size and set the sheet to use that token. Verified this by deleting it from the mapping and dragging it back on again.
Used Add NPC to add the WS - Air Elemental (Naomi) to the druid.
When I wildshape the token changes but does not resize.
Repeated this process multiple times with no success.
Title should explain, but to replicate:
Suggested solution:
Check if an NPC is not in its natural form, and give a warning when trying to toggle.
Unfortunately, I haven't really coded for many years, so I can't propose a fix myself.
First off, thanks for making this script - it has removed a lot of the hassle of dealing with a high level moon druid on roll20.
I don't see any options to change the format of the rolls (toggle advantage, roll damage, etc). I had to modify the script to change those universally.
Also, do you have any plans on updating this to use the new dynamic lighting features of roll20?
Any time I try to change the size of either the PC or NPC, the script errors out with:
TypeError: Cannot read property 'id' of undefined
TypeError: Cannot read property 'id' of undefined
at handleGraphicMovement (apiscript.js:9500:28)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:70:8)
at TrackedObj.set (/home/node/d20-api-server/api.js:1048:14)
at updateLocalCache (/home/node/d20-api-server/api.js:1346:18)
at /home/node/d20-api-server/api.js:1530:11
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)
I've modified your WildShapes and WildHelpers to work with the UDL, however, I didn't want to pull request and push it as a fork because I didn't bother with backwards compatibility. My changes are NOT friendly to existing shapes, but you can do a "run once" kind of thing to force the new settings into the state object.
If you are interested in my changes, please see Roll20-WildShapesUDL
I realize you're not actively updating your script anymore, so I don't expect you to do anything. This is just an FYI. If there is enough interest in my changes, perhaps you or I can integrate them properly.
After installing and importing the creatures from a folder I received the following error when trying to perform wild shape through the !ws
command.
(From WildShape): (GM) ERROR: Cannot find wildshape resource = wild shape
Script works great on a grid enabled page! But I first tested it on a non-grid page and the token disappears when using the script. Looks like it has nothing to measure size to and so makes it essentially 0 width x height.
May not be anything you can do about this, and not a huge issue since I plan to always use grid maps. But it is something to be aware of.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.