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 .
×

Trying to force abilitys of the current character

hey there, i'm trying to call some abilitys within others i know the way %{Bugbear|Attack} but then i can only use it for this one character so i was doing some different stuff and got a really bad solution first of all %{Attack} does not work sadly %{@{character_name} | Attack} does not work either but after the errors it displays in chat "Bugbear|character_name | Attack" so i wrapped around some %{ ... } and i got the call i want ... but with some errors in the chat :-( so my question is: is it a bug ? maybe not even this should be possible or why can i do [label](~@{charachter_name}|Attack) and not %{@{character_name}|Attack} ? or is there a solution i have not found i also tryed with macros #start that just prints "%{" and then in the ability #start @{character_name} | Attack} but the macro prints a ' ' after the "%{" so the call is %{ Bugbear|Attack} what does only print errors Gery
%{@{character_name}|attack} should work fine. Make sure "character" is spelled correctly and that there are no spaces within the Ability call.
1465589608
Gold
Forum Champion
Is it a character that you would have Selected via clicking their token? If so, what I use is the "selected" in Roll20. Like,&nbsp; %{selected|attack} Wiki docs for this, <a href="https://wiki.roll20.net/Macros#Using_a_Selected_To" rel="nofollow">https://wiki.roll20.net/Macros#Using_a_Selected_To</a>...
1465592761

Edited 1465593124
first of all thanks for the reply @Silvyre yes it should be fine but %{@{character_name}|roll} gives me No ability was found for %{@{Ikiva|character_name} Paradox G. (GM): Ikiva if i change it to %{@{character_name} |roll} it gives me No ability was found for %{@{Ikiva|character_name} No attribute was found for @{Ikiva|character_name } Paradox G. (GM):Ikiva|character_name |roll and that thing wrapped in %{Ikiva|character_name |roll} gives a fine result but the errors you know... the characters name is Ikiva and the roll ability just rolls 1d20 its just for testing @Gold yes i know about the selected but thats what it is right now and i dont want my players to have a token selected I think the problem is that first the ability get executed then the attribute replaced but in this scenario it should be the other way around is there a way to force the @Attribute to get replaced with its value at first ?
That's really weird... Try %{@{character_id}|roll}
it gives me something like No ability was found for %{@{Ikiva|character_id} Paradox G. (GM): -JuazIETHMhkrFFRD33R
Try adapting your "start" = %{ idea to use an Attribute: @{start}@{character_name}|roll}
wow thanks, that does the trick still not a really good workaround but the best for now and i found a way to force the evaluation first with %{(@{character_name})|roll} but this gives me the error that there is no ability for (Ikiva)|roll xD is there something like [[]] but just for text ?
1465593973

Edited 1465593983
Great! ParadoxGery said: is there something like [[]] but just for text ? Unfortunately not. HTML entities can be useful in escaping characters, but they're not helpful in conjunction with Ability/Attribute calls.
damned xD well it works now and thats what matters... it did not work with the macro printing %{ because the macro need the space to be replaced with its content but the Attribute does not because its wrapped in {&nbsp;}&nbsp; thanks again gonna get my subscription soon I'm already building my own character sheet i really like what roll20 can do all i want in addition is a custom compendium :-)
1465594508

Edited 1465594906
Sounds great! Here's another possible workaround, taking advantage of the HTML sanitizing that Roll20 does: %{&lt;escape&gt;@{character_name}|roll} or %{@{character_name}&lt;escape&gt;|roll} or %{&lt;foo&gt;@{character_name}&lt;bar&gt;|roll} (Note that making changes to and saving an Ability with these "tags" within triggers the sanitization.)
okay NOW i'm confused
i pasted your examples .... did not work out of .. i don't know i just closed the ability and executed it afterwards.... worked opened it its like&nbsp; %{@{character_name}|roll} and works BUT only if it is closed/saved
Haha, all for the best; on further investigation, it's not a very good workaround. :)
it's just not working during editing ... :-S
well still thank you for the help .... gonna rewrite some macros now ..
1465595201

Edited 1465595208
You're very welcome! Happy coding!