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

[5e OGL] @{selected|charname_output} returns output

1504977828

Edited 1504977870
i am using a macro that rolls initiative for a selected token and adds it to the tracker. the name is always correct in the initiative tracker: that is not the concern. the issue is the chat pod: all but one of my characters adds the character name after the roll. this one never includes the name. this is a bit of a problem when i find myself rolling initiative for several characters in rapid succession. what am i missing and what can i do to remedy this? @{selected|wtype}&{template:simple} {{rname=^{init-u}}} {{mod=+[[@{selected|initiative_bonus}[INIT]]]}} {{r1=[[1d20@{selected|halflingluck}+[[@{selected|initiative_bonus}]]&{tracker}]]}} {{normal=1}} @{selected|charname_output}
1504978729
The Aaron
Pro
API Scripter
Usually you would use @{selected|character_name}
1504980319

Edited 1504980549
I would first try %{selected|initiative} in place of that macro. This calls the initiative roll button on the selected Character's sheet. If that fails, what does the Text Chat return when you enter @{selected|character_name}?
1504980889

Edited 1504980898
thanks for pointing me in the right direction: i replaced @{selected|charname_output} with {{charname=@{selected|character_name}}} and that seems to have fixed the inconsitancy.
Silvyre said: I would first try %{selected|initiative} in place of that macro. This calls the initiative roll button on the selected Character's sheet. If that fails, what does the Text Chat return when you enter @{selected|character_name}? %{selected|initiative} has the same inconsistency. i took my macro right from the character sheet initiative roles, and replaced the specific name with "selected." @{selected|character_name} returns the correct name.
1504981776

Edited 1504981789
Ah, I just realized that in the newest version of the sheet there's a new  General Option called "ADD CHARACTER NAME TO TEMPLATES": This option is toggled off by default.