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

New to API // getting an error with !init-assist

So, I'm relatively new to using API (uhhh like today new) and I installed the initiative assistant through the one click feature. I have three players that roll their initiative through roll20 and two that roll manually, so I was hoping to use this macro I found in the forum to make adding them easier: !init-assist {{ --Lupin|?{Lupin's Init?|0} --Luka|?{Luka's Init?|0} }} The problem is, for whatever reason it's not recognizing Luka's icon on the map. It suggests that I put his icon on the map so I know the name is right, but no matter what I do, it's not recognizing it. I'm not sure if I just have a bad macro or what I'm doing wrong. Any help would be greatly appreciated. Thanks!
1603912465
The Aaron
Roll20 Production Team
API Scripter
The icon (graphic, token) must be set to represent Luka's character.  Double click it and verify that the Represents dropdown has Luka selected.  If it doesn't (which would cause this issue), you'll also want to update Luka's Character's Default Token to the version that has Represents set.
1603913013

Edited 1603913238
Yeah, already checked that and it does represent him. I even tried deleting it from his character sheet and readding to see if that would fix the problem, and it's not.  ETA: For reference...
Never mind!! I figured out the problem. The problem is that while I was building an encounter and practicing with the APIs/Macros, I had my players on a different map than I was on and that other map didn't have Luka's icon on it. As soon as I moved my players to the map I was working on, it worked properly. 
1603915139
The Aaron
Roll20 Production Team
API Scripter
Ah!!  Excellent. I should probably update that script to find the current player's page. Back when I wrote it, that wasn't completely possible.