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 .
×

Here's a fun question about layers and tokens...

Is there a way to macro-send a token to the GM layer (effectively making it disappear before the PCs' eyes)? Why? Because with a macro command to do that, you can also accompany it with a special effect (if you have the Pro subscription, of course). For example, I have a wizard NPC in our campaign that is higher level and loves to teleport in and out of the area when appropriate for the story. It would be neat to trigger a macro to both send the token to the GM layer and  a proper special + sound effect. :) Not sure if it's possible, but would be cool if  the layer function can be commanded. If not, oh well, but a possible great idea for the Devs!
1499958643

Edited 1499958667
The Aaron
Pro
API Scripter
Bump is an API script that does that. (and provides invisible manipulation tokens on the object layer, and facilities for moving back and forth, etc) TokenMod can do this also: !token-mod --set layer|gmlayer
As always, you're the man. Thank you so much. You guys are awesome, seriously.
1499959139
The Aaron
Pro
API Scripter
No worries!  Happy Rolling!
1499960048
The Aaron
Pro
API Scripter
One fun thing you can do with TokenMod is specifying the list of token_ids explicitly for a fun effect: !token-mod --set layer|map --ids -Jrqs1234af -Jk123ads -J234as412 !token-mod --set layer|gmlayer --ids -Jrqs1234af -Jk123ads -J234as412 Those would let you move those three graphics back and forth easily.   I once ran a game where I setup trails of footprints for the ranger to see when he made his survival check.  I had them appear in much the same way as the ranger tracking in Lord of the Rings: War in the North -- glowing footprints on the ground. You can further refine that by having a character that represents them: !token-mod --set layer|map --ids @{FootPrints|character_id} !token-mod --set layer|gmlayer --ids @{FootPrints|character_id} Then any tokens that represent FootPrints will be toggled. Might also add: !token-mod --order top --set layer|map --ids @{FootPrints|character_id} So they don't end up under the map.
I actually am testing stuff now. I basically have this macro and it's awesome! !token-mod --set layer|gmlayer !sfx song:Teleport /fx nova-magic @{selected|npc_name} disappears before your very eyes! The output is awesome! The token moves to GM layer - disappears; the teleport Jukebox effect plays; a nova magic splash occurs right at the square; and the chat window outputs the correct text. :) So cool!!
1499960282
The Aaron
Pro
API Scripter
Awesome!
And for items I've created, I just add the npc_name in the attribute list, and it works. For a chest I use, I named it "The chest," that way whatever I want to make - "The chest was trapped!" for an acid trapped chest, for example, it works perfect. Makes an acid splash and plays a trapped effect. Anyway, this is probably elementary for you but it's new and fantastic for me!
1499960889
The Aaron
Pro
API Scripter
Nah, that's great info.  I love to see scripts working together in new and awesome ways. =D