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

[tokenmod][shaped][5e] Dose anyone know how how to set up New NPC Token?

hi I startreed to play aroudn wiht token mod and I very saticfied wiht the set up funktion for PC tokens but I still have truble with NPC tokens, there HP in particual dose anyone has a working makro for token mod to set up there HP?
1551077780
Pat S.
Forum Champion
Sheet Author
What are you attempting to do? Unlink the HP attribute for multiple tokens at the same time?
I look for a Makro to et up the HP for new NPC Tokens when I creat new npcs or change the token of existing one
1551146664
The Aaron
Roll20 Production Team
API Scripter
What bar do you use for hp?
bar1 try to imtate the tokes form the bought modlues to compair this is what I use for player charkater Tokens !token-mod --set bar1_link| bar2_link| bar3_link| bar1| bar2| bar3| !token-mod {{ --set bar1_link|hp --set bar2_link|ac --set bar3_link|Hp_temp --set name|@{selected|character_name} --on showname --off showplayers_name --off showplayers_bar1 --off showplayers_bar2 --on showplayers_aura1 --on showplayers_aura2 --on light_hassight }} !token-mod --set ?{Vision|Torch, light_radius#40 light_dimradius#20 light_hassight#yes light_angle#360 light_otherplayers#yes|Hooded Lantern, light_radius#60 light_dimradius#30 light_hassight#yes light_angle#360 light_otherplayers#yes|Bullseye Lantern, light_radius#120 light_dimradius#60 light_angle#60 light_hassight#yes light_otherplayers#yes|Lamp, light_radius#30 light_dimradius#15 light_hassight#yes light_angle#360 light_otherplayers#yes|Candle, light_radius#5 light_dimradius#=0 light_hassight#yes light_angle#360 light_otherplayers#yes|Darkvision, light_radius#60 light_dimradius#=0 light_hassight#yes light_angle#360 light_otherplayers#no| Darkvision 120, light_radius#120 light_dimradius#=0 light_hassight#yes light_angle#360 light_otherplayers#no |Darkvision (90'), light_radius#90 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Warlock Devil's Sight, light_radius#120 light_dimradius#=120 light_hassight#yes light_angle#360 light_otherplayers#no|No light source(Dusk), light_radius#120 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Fog, light_radius#200 light_dimradius#=5 light_hassight#yes light_angle#360 light_otherplayers#no|No light source, light_radius#5 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Blinded, light_hassight#no light_angle#360 light_otherplayers#no}
1551183475
The Aaron
Roll20 Production Team
API Scripter
Should be just a matter of taking out the ‘ --set bar3_link|Hp_temp ’ line and replacing the ‘ --set bar1_link|hp ’ one with ‘ --set bar1|[[SOME FORMULA]] ’.
1551185346

Edited 1551185442
no that one works that ist for PC tokens I stuggle with the one for npcs since I can't find a way to add there HP as a bar  the thing is too that it should set up the Hp but not link it permanently since that would effete multiple tokens I mages it to create one that roles the HP once but this it not what I want !token-mod --set bar1_link| bar2_link| bar3_link| bar1| bar2| bar3| !token-mod {{ --set bar1_link| --set bar2_link|npc_ac --set name|@{selected|npc_name} --on showname --off showplayers_name --off showplayers_bar1 --off showplayers_bar2 --on showplayers_aura1 --on showplayers_aura2 --on light_hassight }} I don't know what ot lik to create creat a permanet HP bar for npc tokens that use the 5e npc sheet  the thing is I want the value to be the Avrage HP from the NPC sheet as a bar not shure how to put it any other way
this is the clostest I got --set bar1|[[@{selected|npc_hpformula}]] but it is just suing the HP formuala on the sheet not creating a bra from the avrage value set there
I think I figured out my problem but still need a solution Iwant to set up the bar one with a value and a max to the with hp_max but hp_max is not recoginced  !token-mod --set bar1_value|hp_max !token-mod --set bar1_max|hp_max  sicne the NPC HP is listed under HP (Hp_max)
1551317850

Edited 1551317909
Try: !token-mod --set bar1_value|hp|max !token-mod --set bar1_max|hp|max
1551319411
The Aaron
Roll20 Production Team
API Scripter
You can set the pseudo attribute bar1 ave it will set both the current and max j !token-mod --set bar1|[[1d6]] you can’t use the attribute directly, it must be as an @{ } reference. 
Rabulias said: Try: !token-mod --set bar1_value|hp|max !token-mod --set bar1_max|hp|max some problem it just adds the text HP The Aaron said: You can set the pseudo attribute bar1 ave it will set both the current and max j !token-mod --set bar1|[[1d6]] you can’t use the attribute directly, it must be as an @{ } reference.  this is as good as it gets It set up most stuff but it roles the HP based of the HP equation/fomula on the sheet  !token-mod --set bar1_link| bar2_link| bar3_link| bar1| bar2| bar3| !token-mod {{ --set bar1|[[@{selected|npc_hpformula}]] --set bar2_link|npc_ac --on showname --off showplayers_name --off showplayers_bar1 --off showplayers_bar2 --on showplayers_aura1 --on showplayers_aura2 --on light_hassight }} my goal is it to reate the token set up from the compendium her is a text copie from the campaign setting default for that BAR 1 VALUE: On Default Tokens created by doing a Compendium drop onto the virtual table top, set the Bar 1's value to this attribute. BAR 1 MAX: On Default Tokens created by doing a Compendium drop onto the virtual table top, set the Bar 1's max to this attribute.