Creating my own RPG system, ChatSetAttr is possibly my number one script in the Roll20 library. Absolutely love this script. Thanks, Jakob! And thanks, Nick, for sharing expertise with this amazing tool for more people.
Oh yeah I use this for using potions, lay on hands, I set token macros to show how much weight a character is carrying, to drink water, to eat food, to show how many charges are left on magic items. Very useful
Finally come around to seeing this video, bless your soul Nick! This has made it much easier for me to understand since I'm more of a visual learner. Cheers mate! Thanks for responding to my previous comment :D *Edit* I'm glad to be apart of the patreon crew now as well! I look forward to your videos in the future :)
These videos you are make are so helpful! Would be super interested if you made a video or maybe small series about the scripts and macros you use in your games with some links to macros/scripts. Would be super helpful to get ideas on what's even possible with these tools. Especially for non-coders just starting out on Roll20.
Thanks for watching! I've done a bunch of vids on macros - here are a few of them. ruclips.net/video/SlwAXIDFveo/видео.html and ruclips.net/video/jM9phzrOy-4/видео.html and ruclips.net/video/_TUrDnOYx78/видео.html and ruclips.net/video/UFJpcC4yOTw/видео.html Enjoy!
Would it be possible to use this API to add custom spells to a character sheet? I'm running a custom system and need to add many custom spells to many NPCs and was looking for a way to quicken the process a bit. I've messed around with ChatSetAttr, and gotten a good bit of use out of it but haven't been able to figure out the more complex applications of it, such as adding spells.
I don't think so. I think this can only add & modify resources, but you could post over on the Roll20 forums - someone there would know for sure - app.roll20.net/forum/category/46806 Good luck and happy gaming!
Hey Nick, thanks for all the fantastic videos. Wondering if you can help me. I'm running a Gumshoe game and want to use the ChatSetAttr to deduct points spent from values in the character sheet. E.g. the character has a Stability test and rolls 1d6, they opt to spend 2 Stability to increase their chances. Macro outputs the roll and then deducts the 2 Stability from that attribute. I've got the macro to do the roll - &{template:@{selected|sheetswitch}} @{selected|stability_dice} {{rname=^{stability-a}}} But can't work out how to use ChatSetAttr to then do the deduction. I assume it's something like &{template:@{selected|sheetswitch}} @{selected|stability_dice} {{rname=^{stability-a}}} !modbattr --charid @{selected|character_id} --silent --stability|$[[0]]!!! but it's not doing the deduction... Any help appreciated!
Hi there- I'm not familiar with this particular character sheet, but from what's above, it looks like the macro is calling an attribute or ability rather than making a die roll. I'm not sure if ChatSetAttr can handle that sort of situation. I'd say ask over on the Roll20 Mod Forums (app.roll20.net/forum/category/46806) and someone there might be able to help. Good luck, and happy gaming!
I've noticed that API's like this don't like to work with other API's this one for example dosn't work with the aura api that changes colors based on the players hp. So for example I used this to take an healing potion and it updated the sheet but not the aura color. Any thoughts on this?
Hmm. I'm not sure about that, to be honest. I'd say your best bet would be to post it over on the Roll20API forums and someone there might have some insight - app.roll20.net/forum/category/46806
Will this script work with other character sheets, like Pathfinder? Also, if I make a script for Rage or Beast Shape, I guess I would have to make two scripts; one to turn it on & one to turn it off?
I believe it will, but you may need to poke around on the forums for the exact Pathfinder syntax. As for Rage and Beast Shape, yes, you'd have one macro to enable it, and another to restore the values back to their original settings. Thanks for watching, and happy gaming!
Hello Mr. Olivo. I tried to implement "Second Wind" to my warrior with his tutorial. But he gives me a mistake and I don't understand why. If you could help me understand better I would be grateful. I copy below my macro and the error that the game gives me: !modbattr --charid @ {target | character_id} --silent --hp | $ [[1d10 + @ {level} Error: Attribute hp is not number-valued for character Silina. Attribute left unchanged. Thank you so much
Hi Gwegil - it looks like you have an extra space between the @ and target and {level}, and I think you're missing a pair of ]]'s as well. Try this: !modbattr --charid @{target | character_id} --silent --hp | $ [[1d10 + @{level}]]
Hi Tara - Roll20 has been making some changes that have impacted some of the APIs. The folks over on this forum might have some insight about this app.roll20.net/forum/category/46806
Not sure if you're still around, awesome work. I have kind of a unique idea that I think would use this feature. I have a feature in my game where healing spells heal for an additional 10% of missing life. Any ideas on how I could make this automated?
There are a couple of ways you could approach that, but to make sure I understand, how are you handling numbers less than 1? For example, let's say I'm a cleric with a +3 modifier for my Wisdom. I cast Healing Word for 1d8+3, and get a total of 5. That, plus 10% would be 5.5. Do you always round that 10% up? so 5.5 becomes 6? And if you healed 11 points, that 11 + 10% would be 12.1, which becomes 13?
@NickOlivo this is what I am trying to do. I am probably doing more work than needed, but it works for most things. As you see I need it for feature 4. Might make things faster I don't know. !setattr {{ --sel --repeating_traits_-create_name|Enchanted Wisdom --repeating_traits_-create_source|Racial --repeating_traits_-create_source_type|Glimmer - Feature 1 --repeating_traits_-create_description|You gain proficiency in Wisdom and Intelligence saving throws. }} !setattr --sel --intelligence_save_prof|1 --wisdom_save_prof|1 --charisma_save_prof|1 --mod --constitution_base|2 --intelligence_base|2 !setattr {{ --sel --repeating_traits_-create_name|Green Magic --repeating_traits_-create_source|Racial --repeating_traits_-create_source_type|Glimmer - Feature 2 --repeating_traits_-create_description|When you cast a spell or use a feature that restores hit points or grants temporary hit points, you can add an additional 5 to the spell. This extra healing represents the mystical energy of the feywild, which imbues your magic with additional power and potency. You can also remove one crowd control or non permanent curse effect from a creature as part of the spell. The feature’s healing increases by 5 when you reach 6th level (10), 10th level (15), 14th level (20), and 18th level (25). }} !setattr {{ --sel --repeating_traits_-create_name|Mystic Knowledge --repeating_traits_-create_source|Racial --repeating_traits_-create_source_type|Glimmer - Feature 3 --repeating_traits_-create_description|You are Fey and suffer no negative effects from charmed. In addition, you know one Cantrip and one 1st level spell from the support list. These don't count against your spells known. }} !setattr {{ --sel --repeating_traits_-create_name|Nature's Blessing --repeating_traits_-create_source|Racial --repeating_traits_-create_source_type|Glimmer - Feature 4 --repeating_traits_-create_description|You have powerful healing properties. When you heal a creature they regain an additional 5 percent of missing health. This extra 5 percent is calculated and applied before any other healing takes place. The feature increases by 5 percent when you reach 6th level (10 percent), 10th level (15 percent), 14th level (20 percent), and 18th level (25 percent). }}
This Healing Word macro adds an additional 10% of healing - to be more or less, you'd just change the 1.1 multiplier to 1.05, 1.2, or 1.25 &{template:dmg} {{rname=Healing Word}} {{range=60 feet}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ceil((1d4 + 3[CHA])*1.1)]]}} {{dmg1type=Healing}}{{hldmg=[[ceil(((1*?{Cast at what level?|Level 1,0|Level 2,1|Level 3,2|Level 4,3|Level 5,4|Level 6,5|Level 7,6|Level 8,7|Level 9,8})d4)*1.1)]]}} Best of luck, and happy gaming!
Hate to be the noob but, hey, I'm a noob. I’m having trouble getting a command to work. I wanted to combine some of the things in this vid and allow a fighter to invoke his Second Wind ability and have his HP updated as appropriate. But… I’ve tried a number of command variations and nothing is working right. I cannot get the command to find and use the character’s level in the computation… it’s not adding that into the 1d10 die roll. I’m sure I’m not understanding something about the command syntax, but can’t figure it out. Here’s is the simplest command I could get. Suggestions? !modbattra --name Tewfuel --hp|{{[[1d10]]+level}}!!!
Nick, you really need to convert some of these D&D ideas to Call of Cthulhu. THere is too much of a character sheet difference. You have good vids but most of it is one sided and worthless to everyone else.
Creating my own RPG system, ChatSetAttr is possibly my number one script in the Roll20 library. Absolutely love this script. Thanks, Jakob! And thanks, Nick, for sharing expertise with this amazing tool for more people.
Thanks for watching! Happy gaming!
Oh yeah I use this for using potions, lay on hands, I set token macros to show how much weight a character is carrying, to drink water, to eat food, to show how many charges are left on magic items. Very useful
It's a very versatile script. Thanks for watching, and happy gaming!
Do you have a link to those macros? I'm just starting to get into using them in my game and that sounds amazingly useful.
Same, scripts would be appreciated
Finally come around to seeing this video, bless your soul Nick! This has made it much easier for me to understand since I'm more of a visual learner. Cheers mate! Thanks for responding to my previous comment :D
*Edit*
I'm glad to be apart of the patreon crew now as well! I look forward to your videos in the future :)
Glad the videos have been helpful! Thanks for your support, and happy gaming!
Love all your videos. Do you do these for other games besides DnD? FFG Star Wars, for instance?
Thanks for the kind words, Carlos! Right now I'm only doing D&D, but I've done a few vids on Call of Cthulhu. Happy gaming!
These videos you are make are so helpful! Would be super interested if you made a video or maybe small series about the scripts and macros you use in your games with some links to macros/scripts. Would be super helpful to get ideas on what's even possible with these tools. Especially for non-coders just starting out on Roll20.
Thanks for watching! I've done a bunch of vids on macros - here are a few of them. ruclips.net/video/SlwAXIDFveo/видео.html and ruclips.net/video/jM9phzrOy-4/видео.html and ruclips.net/video/_TUrDnOYx78/видео.html and ruclips.net/video/UFJpcC4yOTw/видео.html Enjoy!
Thank you for all of your awesome videos!
Glad they've been helpful! Happy gaming!
Your videos are very helpful, thank you for all the work you do!
Thanks for the kind words, Michael! Happy gaming!
Would it be possible to use this API to add custom spells to a character sheet? I'm running a custom system and need to add many custom spells to many NPCs and was looking for a way to quicken the process a bit. I've messed around with ChatSetAttr, and gotten a good bit of use out of it but haven't been able to figure out the more complex applications of it, such as adding spells.
I don't think so. I think this can only add & modify resources, but you could post over on the Roll20 forums - someone there would know for sure - app.roll20.net/forum/category/46806 Good luck and happy gaming!
Hey Nick, thanks for all the fantastic videos.
Wondering if you can help me.
I'm running a Gumshoe game and want to use the ChatSetAttr to deduct points spent from values in the character sheet.
E.g. the character has a Stability test and rolls 1d6, they opt to spend 2 Stability to increase their chances. Macro outputs the roll and then deducts the 2 Stability from that attribute.
I've got the macro to do the roll - &{template:@{selected|sheetswitch}} @{selected|stability_dice} {{rname=^{stability-a}}}
But can't work out how to use ChatSetAttr to then do the deduction.
I assume it's something like &{template:@{selected|sheetswitch}} @{selected|stability_dice} {{rname=^{stability-a}}} !modbattr --charid @{selected|character_id} --silent --stability|$[[0]]!!! but it's not doing the deduction...
Any help appreciated!
Hi there- I'm not familiar with this particular character sheet, but from what's above, it looks like the macro is calling an attribute or ability rather than making a die roll. I'm not sure if ChatSetAttr can handle that sort of situation. I'd say ask over on the Roll20 Mod Forums (app.roll20.net/forum/category/46806) and someone there might be able to help. Good luck, and happy gaming!
I've noticed that API's like this don't like to work with other API's this one for example dosn't work with the aura api that changes colors based on the players hp. So for example I used this to take an healing potion and it updated the sheet but not the aura color. Any thoughts on this?
Hmm. I'm not sure about that, to be honest. I'd say your best bet would be to post it over on the Roll20API forums and someone there might have some insight - app.roll20.net/forum/category/46806
@@NickOlivo thank you, I'll post that.
Will this script work with other character sheets, like Pathfinder?
Also, if I make a script for Rage or Beast Shape, I guess I would have to make two scripts; one to turn it on & one to turn it off?
I believe it will, but you may need to poke around on the forums for the exact Pathfinder syntax. As for Rage and Beast Shape, yes, you'd have one macro to enable it, and another to restore the values back to their original settings. Thanks for watching, and happy gaming!
Hello Mr. Olivo. I tried to implement "Second Wind" to my warrior with his tutorial. But he gives me a mistake and I don't understand why. If you could help me understand better I would be grateful. I copy below my macro and the error that the game gives me:
!modbattr --charid @ {target | character_id} --silent --hp | $ [[1d10 + @ {level}
Error: Attribute hp is not number-valued for character Silina. Attribute left unchanged.
Thank you so much
Hi Gwegil - it looks like you have an extra space between the @ and target and {level}, and I think you're missing a pair of ]]'s as well. Try this: !modbattr --charid @{target | character_id} --silent --hp | $ [[1d10 + @{level}]]
@@NickOlivo thx a lot. I'll try and i'll write Here the result.
could you add a spell if you read a scroll?
Yes, though if it's a spell from a source you own (like the PHB or something like that) it may be easier to just drag it from the compendium.
best script IMO
Yeah, this one and tokenmod are my two biggest go-tos. Thanks for watching and happy gaming!
is this broken currently? It's not working for me
Hi Tara - Roll20 has been making some changes that have impacted some of the APIs. The folks over on this forum might have some insight about this app.roll20.net/forum/category/46806
So so so good
Thanks for the kind words, David! Happy gaming!
Not sure if you're still around, awesome work. I have kind of a unique idea that I think would use this feature. I have a feature in my game where healing spells heal for an additional 10% of missing life. Any ideas on how I could make this automated?
There are a couple of ways you could approach that, but to make sure I understand, how are you handling numbers less than 1? For example, let's say I'm a cleric with a +3 modifier for my Wisdom. I cast Healing Word for 1d8+3, and get a total of 5. That, plus 10% would be 5.5. Do you always round that 10% up? so 5.5 becomes 6? And if you healed 11 points, that 11 + 10% would be 12.1, which becomes 13?
@@NickOlivo thanks for the fast reply, it would round up.
@NickOlivo this is what I am trying to do. I am probably doing more work than needed, but it works for most things. As you see I need it for feature 4. Might make things faster I don't know.
!setattr {{
--sel
--repeating_traits_-create_name|Enchanted Wisdom
--repeating_traits_-create_source|Racial
--repeating_traits_-create_source_type|Glimmer - Feature 1
--repeating_traits_-create_description|You gain proficiency in Wisdom and Intelligence saving throws.
}}
!setattr --sel --intelligence_save_prof|1 --wisdom_save_prof|1 --charisma_save_prof|1 --mod --constitution_base|2 --intelligence_base|2
!setattr {{
--sel
--repeating_traits_-create_name|Green Magic
--repeating_traits_-create_source|Racial
--repeating_traits_-create_source_type|Glimmer - Feature 2
--repeating_traits_-create_description|When you cast a spell or use a feature that restores hit points or grants temporary hit points, you can add an additional 5 to the spell. This extra healing represents the mystical energy of the feywild, which imbues your magic with additional power and potency. You can also remove one crowd control or non permanent curse effect from a creature as part of the spell. The feature’s healing increases by 5 when you reach 6th level (10), 10th level (15), 14th level (20), and 18th level (25).
}}
!setattr {{
--sel
--repeating_traits_-create_name|Mystic Knowledge
--repeating_traits_-create_source|Racial
--repeating_traits_-create_source_type|Glimmer - Feature 3
--repeating_traits_-create_description|You are Fey and suffer no negative effects from charmed. In addition, you know one Cantrip and one 1st level spell from the support list. These don't count against your spells known.
}}
!setattr {{
--sel
--repeating_traits_-create_name|Nature's Blessing
--repeating_traits_-create_source|Racial
--repeating_traits_-create_source_type|Glimmer - Feature 4
--repeating_traits_-create_description|You have powerful healing properties. When you heal a creature they regain an additional 5 percent of missing health. This extra 5 percent is calculated and applied before any other healing takes place. The feature increases by 5 percent when you reach 6th level (10 percent), 10th level (15 percent), 14th level (20 percent), and 18th level (25 percent).
}}
This Healing Word macro adds an additional 10% of healing - to be more or less, you'd just change the 1.1 multiplier to 1.05, 1.2, or 1.25
&{template:dmg} {{rname=Healing Word}} {{range=60 feet}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ceil((1d4 + 3[CHA])*1.1)]]}} {{dmg1type=Healing}}{{hldmg=[[ceil(((1*?{Cast at what level?|Level 1,0|Level 2,1|Level 3,2|Level 4,3|Level 5,4|Level 6,5|Level 7,6|Level 8,7|Level 9,8})d4)*1.1)]]}}
Best of luck, and happy gaming!
@@NickOlivo Perfect so just make every healing spell a macro?
Hate to be the noob but, hey, I'm a noob. I’m having trouble getting a command to work. I wanted to combine some of the things in this vid and allow a fighter to invoke his Second Wind ability and have his HP updated as appropriate. But… I’ve tried a number of command variations and nothing is working right. I cannot get the command to find and use the character’s level in the computation… it’s not adding that into the 1d10 die roll. I’m sure I’m not understanding something about the command syntax, but can’t figure it out. Here’s is the simplest command I could get. Suggestions?
!modbattra --name Tewfuel --hp|{{[[1d10]]+level}}!!!
Try this !modbattr --name Tewfuel --hp|[[1d10+@{Tewfuel|level}]]!!!
Buen video, aunque no lo entienda al completo, igual entiendo cuando veo tus ejemplos
Nick, you really need to convert some of these D&D ideas to Call of Cthulhu. THere is too much of a character sheet difference. You have good vids but most of it is one sided and worthless to everyone else.