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

Weird returns from script

So I have been going over script I created about 4 years ago that were, at the time, working properly. Basically, instead of getting the name of the character for the emote, it returns the token id. var whoName = selectedToken.get('name') should return what is listed as name correct? and not the token id? sendChat(who.id, '/emas ' + whoName + ' attacks ' + whoTargName + ' and scores a hit!') is the line that is doing the actual emoting. Whole script is  here . Is it because in my emotion call I am using who.id? Should it be who.name?
1505133770
The Aaron
Pro
API Scripter
The issue is the who.id in the first parameter to sendChat().  That should be whoName.