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 .
×
May your rolls be chill this holiday season!
Create a free account

ChatSetAttr D&D 5e Sheet Macro Help

I have been trying to figure this out. I have a macro that does this for players. !token-mod {{   --set     bright_vision|on     night_vision|on  night_vision_distance|5  bar1_link|hp  bar2_link|ac  bar3_link|passive_wisdom     defaulttoken }} !setattr --sel --strength_base|4 --dexterity_base|4 --constitution_base|4 --wisdom_base|4 --intelligence_base|4 --charisma_base|4 I would like one for monsters that sets the following but I can't quite figure it out. Monster Type NPC AC NPC HP Attack and Damage All Base Stats to 20. !token-mod {{   --set     bright_vision|on     night_vision|on  night_vision_distance|120  bar1_link|hp  bar2_link|ac  bar3_link|passive_wisdom     defaulttoken }} !setattr --sel --strength_base|20 --dexterity_base|20 --constitution_base|20 --wisdom_base|20 --intelligence_base|20 --charisma_base|20 --$0_attack_tohit|5 --$0_attack_target|One Target --$0_attack_damage|1d8+5 --$0_attack_damagetype|bludgeoning Tried this and it didn't work.
1691009908

Edited 1698070914
!setattr --sel --npc_type|MONSTERTYPEHERE --ac|ACVALUEHERE --hp|HPVALUEHERE --strength|20 --constitution|20 --dexterity|20 --intelligence|20 --wisdom|20 --charisma|20 --repeating_npcaction_$0_attack_tohit|5 --repeating_npcaction_$0_attack_target|One Target --repeating_npcaction_$0_attack_damage|1d8+5 --repeating_npcaction_$0_attack_damagetype|bludgeoning What is the end result that you are looking for? I'm trying to understand a situation where this kind of macro to set a NPCs stats to some static values is useful. It will permanently change that character (and any linked tokens to that character) so it would only be useful for a 'one-way' transformation. I'm guessing that you have something where a monster will transform into another creature (like lycanthropy, or some kind of 'curse' that converts a creature into another creature).  If that's the case, then it would make a lot more sense to have a character sheet for the Transformed Monster, and simply change the token to represent that character instead or modifying the main character's entire sheet..  But maybe I'm way off. :)
1691026222

Edited 1691026954
Since we can't make compendiums this is a way to quickly set up monsters.&nbsp; <a href="https://www.crusadersttrpg.com/building-encounters" rel="nofollow">https://www.crusadersttrpg.com/building-encounters</a> &nbsp;As you can see we need it to populate the baseline, then people can just pick the abilities they want their monster to have. I am hoping to also allow for drop down options but I'll figure it out.
Ah, so you're playing Crusaders but using the D&amp;D 5E by Roll20 sheet? Cool. The two approaches I would suggest are: 1: Setting up an Excel or Google sheet that could be prepopulated with specific stats and then generate the ChatSetAttr code 2: Creating a macro that has queries for each stat (that can be prepopulated with the default stats): !setattr --sel --npc_type|?{Monster Type?|Humanoid} --ac|?{AC?|15} --hp|?{HP?|} --strength|?{Strength?|20} --constitution|?{Constitution?|20} --dexterity|?{Dexterity?|20} --intelligence|?{Intelligence?|20} --wisdom|?{Wisdom?|20} --charisma|?{Charisma?|20} --repeating_npcaction_$0_attack_tohit|?{Attack To Hit Value?|5} --repeating_npcaction_$0_attack_target|?{Attack target?|One person} --repeating_npcaction_$0_attack_damage|?{Attack Damage?|1d8} --repeating_npcaction_$0_attack_damagetype|?{Damage type?|bludgeoning} Good luck!
Jarren, You're awesome. This is better than what we were looking for you're a gentleman and a scholar. Not sure if you saw the post about dual option skill checks but would this be the same procedure?
So I thought this worked but it didn't create the attack, I modded another one and came up with this macro. It works great makes the attack but it doesn't fill in the stuff for the attack. !setattr --sel --silent --npc_type|?{Monster Type?|Humanoid} --npc_ac|?{AC?|15} --hp|?{HP?|} --strength|?{Strength?|20} --constitution|?{Constitution?|20} --dexterity|?{Dexterity?|20} --intelligence|?{Intelligence?|20} --wisdom|?{Wisdom?|20} --charisma|?{Charisma?|20} !setattr {{ --sel --silent --repeating_npcaction_-create_name|?{Attack Name?|Basic Attack} --repeating_npcaction_$0_attack_flag|{{attack=1}} --repeating_npcaction_$0_attack_type|?{Damage type?|melee} --repeating_npcaction_$0_attack_range|?{Attack Range?|5 ft.} --repeating_npcaction_$0_attack_tohit|?{Attack To Hit Value?|5} --repeating_npcaction_$0_attack_target|?{Attack target?|One person} --repeating_npcaction_$0_attack_damage|?{Attack Damage?|1d8} --repeating_npcaction_$0_attack_damagetype|?{Damage type?|bludgeoning} }}&nbsp; Jarren said: Ah, so you're playing Crusaders but using the D&amp;D 5E by Roll20 sheet? Cool. The two approaches I would suggest are: 1: Setting up an Excel or Google sheet that could be prepopulated with specific stats and then generate the ChatSetAttr code 2: Creating a macro that has queries for each stat (that can be prepopulated with the default stats): !setattr --sel --npc_type|?{Monster Type?|Humanoid} --ac|?{AC?|15} --hp|?{HP?|} --strength|?{Strength?|20} --constitution|?{Constitution?|20} --dexterity|?{Dexterity?|20} --intelligence|?{Intelligence?|20} --wisdom|?{Wisdom?|20} --charisma|?{Charisma?|20} --repeating_npcaction_$0_attack_tohit|?{Attack To Hit Value?|5} --repeating_npcaction_$0_attack_target|?{Attack target?|One person} --repeating_npcaction_$0_attack_damage|?{Attack Damage?|1d8} --repeating_npcaction_$0_attack_damagetype|?{Damage type?|bludgeoning} Good luck!
Guest DM said: Jarren, You're awesome. This is better than what we were looking for you're a gentleman and a scholar. Not sure if you saw the post about dual option skill checks but would this be the same procedure? Do you mean this post ? I think the best way to run the variant skill checks in D&amp;D 5E is to simply create a custom skill with a query for the modifier, but if you really want to modify all of the skills, you can update the skill bonus using ChatSetAttr. Here's an example for Athletics to set the bonus as a query: !setattr {{ &nbsp;--sel &nbsp;--silent &nbsp;--replace &nbsp;--athletics_bonus|\ques{Athletics Skill\ques\|Strength,\at{strength_mod}[STR]\|Dexterity,\at{dexterity_mod}[DEX]\|Constitution,\at{constitution_mod}[CON]\|Intelligence,\at{intelligence_mod}[INT]\|Wisdom,\at{wisdom_mod}[WIS]\|Charisma,\at{charisma_mod}[CHA]} }}&nbsp; &nbsp; The big caveat is I have no idea how/when the sheetworkers (javascript code built into the character sheet) will overwrite the '_bonus' fields.&nbsp; It could happen at each level up, or whenever a stat is modified, etc. If that happens, then you'd need to rerun the ChatSetAttr macro again.
Guest DM said: So I thought this worked but it didn't create the attack, I modded another one and came up with this macro. It works great makes the attack but it doesn't fill in the stuff for the attack. Yeah if there's no attack already listed on the sheet then you'll have to use the ChatSetAttr CREATE function (as well as fill in the rest of the attack information).
--repeating_npcaction_-create_name|?{Attack Name?|Basic Attack} Is this not it? Jarren said: Guest DM said: So I thought this worked but it didn't create the attack, I modded another one and came up with this macro. It works great makes the attack but it doesn't fill in the stuff for the attack. Yeah if there's no attack already listed on the sheet then you'll have to use the ChatSetAttr CREATE function (as well as fill in the rest of the attack information).
Yes, So basically do a Create skill then do options and create the skill?
I’m on mobile but if my memory serves me the ‘CREATE’ portion is case-sensitive.&nbsp;
I will give it a try after this game.