Saul J. said: It's possible that there are multiple character sheets with the same name. I'm running Tomb of Annihilation. The module loads in a lot of creatures, some of which are also in the Monster Manual, VGtM, and MToF. I've been doing a lot over the last 3 days preparing stuff so I don't know right now if it was failing on monsters that have duplicates. Another potential possibility is that I've been creating new monsters and making duplicates of NPC sheets to use as basis for the new monsters. For example, tonight while I was working I made a copy of the basic skeleton sheet in order to create a new monster that had a lot of the same data but was slightly different. I'm fairly certain that when I was having problem with setting the hp points it was on the new monsters that I first noticed the problem, but then had problems with already existing monsters on other pages (including those that came with ToA) that I know worked in the past. Tonight though, unlike last night, I didn't have any problems with randomly setting the hp so it's possible it was either (a) a timing issue due to load since Saturday is a busy day on Roll20, (b) silent crashes of the api or (c) random unexplained weirdness. If this is the issue, then I can offer a suggestion of the approach I've taken. I have several duplicate monsters from different modules (especially low level monsters like Goblins, Zombies, etc.) so TheAaron was nice enough to whip up a couple scripts for me: The first one is what I use to append a tag onto monsters from different modules; e.g. Goblin LMoP, Goblin DoIP, etc. <a href="https://app.roll20.net/forum/post/9488944/script-to-change-character-name/?pageforid=9488944#post-9488944" rel="nofollow">https://app.roll20.net/forum/post/9488944/script-to-change-character-name/?pageforid=9488944#post-9488944</a> Here is the macro I use for 'mooks' (unnamed NPCs): !?{GM Notes Name?|@{selected|character_name}}
!?{Token Name?|@{selected|character_name}}
!?{Add Number?|Yes, %%NUM%%|No,""}
!?{Darkvision?|Yes,has_night_vision|No,}
!?{Darkvision Distance?|60}
!?{Size?|Medium/Small,1|Large,2|Tiny,0.5|Huge,3|Gargantuan,4}
!?{Passive Perception?|@{selected|passive_wisdom}}
!token-mod {{
--on
showname
showplayers_name
showplayers_aura1
?{Darkvision?}
--off
playersedit_name
playersedit_bar1
playersedit_bar2
playersedit_bar3
playersedit_aura1
playersedit_aura2
showplayers_bar1
showplayers_bar2
showplayers_bar3
showplayers_aura2
--set
name|"?{Token Name?}?{Add Number?}"
controlledby|=
bar1_link|
bar2_link|npc_ac
bar2_max|
bar3_link|passive_wisdom
bar3_max|
bar3_current|?{Passive Perception?}
aura2_color|#0000ff
night_vision_distance|?{Darkvision Distance?}
scale|?{Size?}u
bar_location|overlap_bottom
compact_bar|on
}}
!setattr {{
--silent
--sel
--replace
--hp|''
--advantagetoggle|'{{query=1}} {{normal=1}} {{r2=\lbrak\lbrak0d20'
--rtype|'\at{advantagetoggle}'
--wtype|\ques{Whisper\ques\|Public Roll,\|Whisper Roll,/w gm }|
--npc_name|\at{selected\|token_name}
}}
!delattr {{
--silent
--sel
--npc_name_flag
--dtype
}}
!set-gmnote Token Name: ?{GM Notes Name?}
!wself Mook Token Full Setup for @{selected|character_name} The second one I use to swap a token name with a name on the GM notes for a token. That way I can still use a 'generic' token name (Goblin 1, 2, 3, etc.) and if one of them actually has a name or some other identifier then I can quickly make that the token name as needed. <a href="https://app.roll20.net/forum/post/9438195/looking-for-script-to-swap-token-gm-notes-and-token-name/?pageforid=9438195#post-9438195" rel="nofollow">https://app.roll20.net/forum/post/9438195/looking-for-script-to-swap-token-gm-notes-and-token-name/?pageforid=9438195#post-9438195</a> And here is the macro I use to swap the token name and GM Notes name: !swap-token-name
!token-mod {{
--set
aura2_radius|!0.25
--off
showplayers_aura2
}}