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

token-mod How to Show NPC Nameplate to All Players?

Hello I have a pro account, API scripts, and token-mode installed.  All I'm trying to achieve is enabling the nameplate of all NPC tokens on the board for players to be able to see.  I've done some testing and the following: !token-mod --on showname (works only if I have a PLAYER token selected because thats the default by design) !token-mod --on showname --current-page (or --active-pages doesn't work) Basically if I select a group of player tokens and run the command it will toggle the nameplate visibility for player tokens only.  If I select all the tokens on the board (players + NPC) it doesnt make the NPC tokens nameplates visible. How can I achieve this so all tokens on a page (players and NPC) have their nameplates visible to GM and Players alike?
1701877614

Edited 1701877737
Well more trial and error (and polling more forum posts) I found another variable name:  showplayers_name !token-mod --off showplayers_name !token-mod --on showplayers_name This seems to work now as long as I select all tokens on the board.  I still can't seem to get the --current-page or --active-pages scope params to work.
1701878277
The Aaron
Roll20 Production Team
API Scripter
--current_page and --active-pages are mainly for using a character id with --ids.  For example, you could put a red dot on all goblins on active pages (pages with players or the gm on them), but not any other goblin tokens using: !token-mod --set statusmarkers|+red --active-pages --ids @{Goblin|character_id} With regard to showing nameplates, you need to do both showname (so the name is displayed) and showplayers_name (so players can see the displayed name): !token-mod {{ --on showname showplayers_name }} And you'll need to do that for all selected tokens, or you'll need to specify ids of either tokens or characters with --ids.
If you are using the Aura/Tint Healthcolors script, make sure that you adjust the nameplate visibility settings there as they will override changes made manually or by other scripts. 
Many thanks, got all this working now!