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

Combine token mod and change token image

1472407006

Edited 1472407134
Wasn't sure if this belonged here, but thought as it was about api scripts it was a good place. I currently run the following macro to change our druid to a panther (was the only animal he had seen) !token-mod --set represents|@{Panther|character_id} bar1_link|npc_AC bar2_link|speed bar3_link|HP !change-token-img --set 1 Is there a way to use a dropdown in this macro and the information to both parts of the macro? so in this case, panther for the represents and 1 for the change token. and then Ape and 2 for the next wild shape etc? or even better is there a way to create a buttons in chat for him that will pass both values to the correct api? Thanks in advance
1472410189
The Aaron
Pro
API Scripter
Something like this might work: !token-mod --set ?{Choose Form|Panther,1 represents#@{Panther|character_id}|Panther,2 represents#@{Ape|character_id} } bar1_link|npc_AC bar2_link|speed bar3_link|HP !change-token-img --set ?{Choose Form} Choosing Panther would result in: !token-mod --set 1 represents#-Jas23ad1234 bar1_link|npc_AC bar2_link|speed bar3_link|HP !change-token-img --set 1 represents#-Jas23ad1234 The 1 argument for --set on token mod will get discarded and the represents should get ignored for !change-token-img. 
1472413264

Edited 1472413278
Works perfectly. Thank you as ever
1472414150
The Aaron
Pro
API Scripter
Sweet!  No worries. Happy Rolling!