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 .
×
Create a free account

Looking for Macro Assistance

I've been working on designing a village setup for repeated adventures and there is one thing I want above all others. Enterable buildings. To do this I'm using a script to control token movement for a door and a couple others that can manage things like moving the roof object to the gm layer so the player that entered can see inside while at the same time moving the dynamic lighting walls from the gm layer to the lighting layer. I have the moment down pact and I've set up a couple macros to manage the roof and walls. My question relates to automatic macro triggers based on token position. This is so I can have a smooth, automated process that doesn't need micro managed once I've set it up.
1537455818
GiGs
Pro
Sheet Author
API Scripter
I am pretty sure I've seen a script which removes building roof objects when you move a token within range. I cant remember what it's called unfortunately, but it's out there.
G G said: I am pretty sure I've seen a script which removes building roof objects when you move a token within range. I cant remember what it's called unfortunately, but it's out there. I've already got a script for managing that. What I need is something that can call a macro when a token reaches a certain point.
1537457129
Ziechael
Forum Champion
Sheet Author
API Scripter
It's a Trap! has a token collisions element and ability to call other API scripts on those collisions I believe... might be worth a look?
Ziechael said: It's a Trap! has a token collisions element and ability to call other API scripts on those collisions I believe... might be worth a look? I've tinkered with It's a Trap! a bit but it's actually a bit heavy for what I need. (Mind you I LOVE that script) What I had hoped for was to integrate it with FinalFrog's MapTeleporter script to create the above mentioned buildings. While the first use of it would be for making those it also has a number of other applications when it comes to executing a series of calls when conditions are met. Ideally I want the trigger to be a token (with an assigned character in the journal) coming in contact with an object on the GM layer. It's the simplest (and most adjustable) method of control for such a thing. I suppose my main question is "Can an API script call on a macro?" and as I think of that I'm struck with the realization that a script can utalize the chat field and can thus make the #macro call.