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

Pathfinder 1e game and "selected" issues

1676175426

Edited 1676175728
We are using Pathfinder 1e and the official Roll20 Pathfinder sheet.   I am trying to make a macro that will roll some skill checks.   I have my token selected, but it seems like it doesn't pay attention to the "selected" tag.   /me Basil examines it.  [[d20+@{selected|perception}]] It will roll a d20 but not add the perception bonus. If I just do this: [[10+@{selected|perception}]] It returns "10" But if I specify the character by name [[d20+@{Basil|perception}]] or [[10+@{Basil|perception}]] Then it adds the character's perception in correctly.   I want it to use "selected" though.   Am I using "selected" wrong?
1676177374
Gauss
Forum Champion
Where is the macro being stored? Abilities?
Gauss said: Where is the macro being stored? Abilities? In the Macros tab
1676178964

Edited 1676178988
Gauss
Forum Champion
No idea why but it isn't working in the Collection tab macros...it works correctly in the Abilities tab macros though. 
Gauss said: No idea why but it isn't working in the Collection tab macros...it works correctly in the Abilities tab macros though.  Where is the Abilities Tab?
1676179902
Gauss
Forum Champion
In your Character there is the Attributes and Abilities tab. 
1676186076
Kraynic
Pro
Sheet Author
You might have the GM check in the token permissions and make sure the "Represents" field is set correctly.  If that isn't set to "represent" the character sheet, then the @{selected| won't have a sheet to reference to retrieve the attribute.
1676186185
Gauss
Forum Champion
Kraynic said: You might have the GM check in the token permissions and make sure the "Represents" field is set correctly.  If that isn't set to "represent" the character sheet, then the @{selected| won't have a sheet to reference to retrieve the attribute. There appears to be a quirk with the PF1e sheet, not sure why but in my testing @{selected|Perception} will not work if the attribute is in the Collection tab macros. 
1676219631
Kraynic
Pro
Sheet Author
Gauss said: There appears to be a quirk with the PF1e sheet, not sure why but in my testing @{selected|Perception} will not work if the attribute is in the Collection tab macros.  I have tried this on 2 different machines, and can't reproduce that behavior.  I tried without the emote first, then put in the emote and even used another @{selected| to pull in character names.  These were all triggered from a token action button except for the last 2 rolls in my screenshot.  The last is rolling from the collection pane, while the next to last is rolling from the "Test Macro" button in the macro editing window.  It works for me from every button I know to use.
1676244970
Gauss
Forum Champion
Kraynic said: I have tried this on 2 different machines, and can't reproduce that behavior.  I tried without the emote first, then put in the emote and even used another @{selected| to pull in character names.  These were all triggered from a token action button except for the last 2 rolls in my screenshot.  The last is rolling from the collection pane, while the next to last is rolling from the "Test Macro" button in the macro editing window.  It works for me from every button I know to use. No idea, it works for me now too. Maybe I made an error earlier.
1676512053

Edited 1676512271
Found a possible cause.   It seems that the token for the character was uploaded and chosen in the sheet by the player.  Then saved.   Then the token was dragged from the Journal to the map by the player.   The token was not tagged to the character, even though it was from the character sheet.   Going into the character sheet on the DM/GM login, the current token was removed.   The token on the map was selected and the properties edited to make the token represent that character.  Then select that token on the map again.   Then, the character sheet, on the GM view, has to be opened and edited.  Then click the "Use Selected Token" button and save the sheet again.   Now the "selected" function works in the macro.     Tried it a few times and the macros don't work unless this procedure is followed.   Seems to stick afterwards though.