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

fx macro help for multiple tokens

Hey, looking to give my map's more environmental flare / hazards i currently have 4 tokens hidden in GM layer all called same name = "TowerFire"  i am clicking each token use a token macro to run /fx explode-fire @{selected|token_id} which currently works as intended  ---------------------------------------------------- but i would like to progress from this in either 2 ways, i know the below code is not at all syntax okay but trying to explain my self as much as possible. 1) a macro that doesn't need to select the actual "TowerFire" token but will still do the effect when i press the macro /fx explode-fire @{"TowerFire"} --------------------------------------- 2) similar macro as above but works one multiple targets at the same time /fx explode-fire @{"TowerFire1"} @{"TowerFire2"}@{"TowerFire3"}@{"TowerFire4"}
1524776440
The Aaron
Pro
API Scripter
So, you'll need to get the token_id from each of the towers by selecting them and running something like: /w gm @{selected|token_id} which will give you something like: -Jk1d13ad3212 Take that value for each tower and setup something like this: /fx explode-fire -Jk1d13ad3212 You can then group all 4 of those lines together in a single macro to trigger.
Thank you, i was almost there myself just as you messaged that i was doing this below, but pulling my hair out so close but miles away lol /fx explode-fire @{selected|-Jk1d13ad3212} Thank you Again The Aaron
1524777189
The Aaron
Pro
API Scripter
No problem! =D
is there away to change the size of that fx? i was hopeing it increased with the size of the token but it didnt
1524777841
The Aaron
Pro
API Scripter
You'd need to create a new FX that's larger.  It will be based on the number of particles, lifetime of the particles and possible speed of the particles. Try something like this: {   "startColour": [220, 35, 0, 1],   "startColourRandom": [62, 0, 0, 0.25],   "endColour": [220, 35, 0, 0],   "endColourRandom": [60, 60, 60, 0],   "maxParticles": 600,   "size": 35,   "sizeRandom": 10,   "duration": 35,   "lifeSpan": 30,   "lifeSpanRandom": 5,   "speed": 9,   "speedRandom": 1,   "angle": 0,   "angleRandom": 360,   "emissionRate": 300 }
ah i guess that's the pro feature? i seen a page talking about this, i had pro a few years ago but stopped d&d for a while
1524778325
The Aaron
Pro
API Scripter
Ah, right. Sorry.  Yeah, it's a pro feature.  I was thinking /fx were pro too, but possibly not...
think there is a few basic ones i can use, i just mass place tokens in an area and blurr the fire attacks
can i convert this to also use the token ID? %{selected|repeating_npcaction_$0_NPC_action} maybe something like this %{-LB2sm9sNTqdhZswK2WJ|repeating_npcaction_$0_NPC_action} last question for the day ;-) honest xx
1524837184
The Aaron
Pro
API Scripter
No, but you can use the character name: %{Bob the Builder|repeating_npcaction_$0_NPC_action} =D
You Sir are like a Raised eyebrow fountain of knowledge! i approve! its like i need to done token id when i'm trying token name then vice versa lol i have a track called "FireRing" in a playlist called "FXelemental" can i some how get this to play using the same marco, or do i need to be pro again because i say a lot about a API script in other forums pages,
1524838350
The Aaron
Pro
API Scripter
Wait, I thought the last one was the last question... =D You'd need to use an API script to kick off the music track, there isn't an interface for macros to do it. 
okay thank you x