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

Dealer Macro Help

I am trying to use card decks and player hands as a buff window. Made a Deck called Buffs with cards like Bardic Inspiration. I want players to b able to apply their own buffs by drawing the appropriate card. So far i have  !deal --give --Buffs|?{Select Buff|Bardic Inspiration, Bardic Inspiration|Flying, Flying} When i use it i get a message that the card isn't in that deck. I am able to make it work just typing  !deal --give --Buffs|Bardic inspiration. I have the decks settings for infinite cards, not sure what i"m missing here.
I don't do scripts, but I reckon "Bardic Inspiration" isn't the same as " Bardic Inspiration". You have a space in front of the names - and if the option label is identical to the intended content, you can just drop the latter, for just  !deal --give --Buffs|?{Select Buff|Bardic Inspiration|Flying}
That was it. It's nice when its something simple. Thanks
1731079432
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks Tou! Good catch. I generally dislike looking back into that script. It was my first, and bad as my coding is, that was worse.