Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Trigger a marco on token creation

Hi Im just wondering if its possible to have a macro trigger when a token to created in the world. Use case being if i create a asset in the journal for an npc enemy, and then i want to drag them into the world but add a bit of random to their stats (ie auto roll their hit points) is this possible? i can set it up so i can select the token and run the macro manually but would be great if there was a way to trigger this on placing a token. Could not find anything, but may just be missing something obvious, Thanks for any help
1649887095
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Not a macro, but there are several scripts that do this. If you are running 5e, Monster Hit Dice does exactly what you are talking about. Token Name Number automatically numbers tokens as they are dropped. Here is an intro to installing scripts: How to Install Roll20 API Scripts