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

question/Macros/how to call character ability using a variable.

i'm trying to make macro that calls character's ability or attribute by a variable. for short example. ----macro start ?{ability_name} @{character | ?{ability_name} } ----macro end but, apparently it seems roll queries only accept numbers - not strings. and variable inside a function also does not working as i intended. is there any way to make this macro without api?
ability are typed %{ability} or %{selected|ability} or %{target|ability}
thanks for the reply, but the problem is not about confusion between % and @. i think the problem is how to apply variable by roll query inside an attribute or ability calling
Unfortunately you cannot use a Query to pull in the name of an Ability or Macro and have it run. It will only pull in the text of the player's response. The system won't parse that inputted text into running a macro/ability. You need the API (Mentor level) to do true user input and have it used to specify other macro/abilities to run.
ok.. i got it. thanks for the reply!