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

[Help] API Command Button with Variable expression.

Is there any way to get a player input variable to fire after the button is pressed, not when the macro is launched? Ex. [Status](!shop_status) [Withdraw](!shop_withdraw ?{How Much Gold?|0}) [Invest](!shop_invest ?{How Much Gold?|0}) Now, when I shove that in a macro and click it, I immediately get a the popup. Is there any way to get it to throw after either the "Withdraw" or "Invest" button is clicked rather than when the macro is clicked?
1432868170
The Aaron
Pro
API Scripter
You can enter the ? as an html entity with ? : [test](!msg ?{which|1})
My friend, you make my life work so well. It works beautifully. Thank you oh-so much. This trick should get included in the entry for it. More people need to know about this as I can think of hundreds of ways to use it.
1432879228
The Aaron
Pro
API Scripter
No problem! And great idea! Done: <a href="https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat</a>