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

[macro] @{character_name} is giving some funky return values

I am not sure if I am doing this right but I am using the @{character_name} macro in my sheets and sometimes it returns the proper value and other times it just gives wierdness, I'm wondering if there is something that I am missing, it broken or well genrally what the heck is going on. I am not very technically minded and macros are about as programmy as I can get without getting lost. /em @{character_name}'s (Weapon) Returns this, in chat (AAA Monster Blank is the name of the sheet I'm testing): GM (GM) AAA Monster Blank|character_name's (Weapon) But if I use "@{selected|.." or "@{target|..." It works just fine and returns: GM (GM) AAA Monster Blank 's (Weapon) What am I doing wrong/what is the server doing wrong?
/em just tell it that what you are saying is supposed to be in character. the character you /em as is picked using the box under the chat input area. in all of the examples above you are emoting as GM(GM). As a GM, you have access to /emas and /as to define who you want to emote as. more info on the wiki. <a href="https://wiki.roll20.net/Text_Chat" rel="nofollow">https://wiki.roll20.net/Text_Chat</a>
1400309046

Edited 1400309081
Toby
Pro
That would be very helpful if my problem was chat commands. It is not, it is the @{character_name}.
You're using it on a sheet button/roll? Or in a sheet auto-calc field?
Not exactly sure, I'm using it on the Journal to create a "Blank" monster template so I dont need to spend 2hours creating each monster. This is on the normal server not the Dev server. So.. each individual button macro?
1401963141

Edited 1401964279
G.
Sheet Author
@{character_name} points to the name of the sheet itself @{selected|character_name} points to the linked sheet character_name value of the token currently selected and will return an error if used on a token not linked to any sheet. @{selected|token_name} points to the token_name value of the token currently selected (which can be different than the character_name value of the linked sheet if any) EDITED: Just in case I didn't understand correctly... I tested your macro making a blank AAA Monster Blank sheet and it works just fine. The only way I could reproduce your problem is by putting this into the macro itself: "/em @{character_name}|character_name's (Weapon)" (which is an error obviously). In doubt, delete the macro and type it in manually again. Sometimes there are errors so obvious you completely skip them even when double checking.
This issue has resolved itself with the release of the update. Sorry for the delay and thank you for your assistance all of you.