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

Setting variable names in a macro to call abilities from different sheets

Hi. I'm trying to set up a macro where I can type the name of the sheet from which a roll is to be made. I'm using the standard GURPS sheet for it, but I don't think it will matter too much. What I currently have is something like this: /w gm &{template:default}{{name=Wound}}{{[Unstun](~target|vsUnstun)[Death](~target|vsDeathCheck)}} Where vsUnstun and vsDeathCheck are standard sheet buttons. The problem is that this doesn't work for mooks because they have no sheets attached to them, so I want to add a pop-up window to check which character sheet this will be checked from. I know that I can simply set a name by using "?{name}". However, I couldn't find a way to make them work well together. I want the macro to ask me the name of the sheet from where it will draw, rather than using target, so if I want to roll Unstun from the "Wolf" sheet, there would be a window to type the name and I would type "Wolf" and it would do the equivalent of %{Wolf|vsUnstun}. I hope I made myself clear. P.S. Bonus if instead of doing buttons, this could be done as a roll query.
1604868080
GiGs
Pro
Sheet Author
API Scripter
You can assign mooks a character sheet, but dont set the bars to their stats. You can have many mook tokens attached to the same character that way, and then you can use selected or target to get their attribute values.
Oh! That works! Thanks!