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

Giving weapon traits (5eDefault template)

Hello everyone ! First, I want to let you know that I am a complete beginner in using a roll template. Oh, and I'm french, so this is two negative point here. Okay, I really want to do a button on my customized character sheet that make a certain weapon attack. When you click on it, this weapon will deal its damage, and show other informations, like the armor penetration of the weapon, the critical damage if the damage is critical, and other stuff. My problem comes with the following : Certain weapons of my game have a trait. This trait is unique to the weapon, and no other weapon is having this unique trait. What I want is to display this trait, exactly like the following picture (the trait here is called "Feu Nourri", and right after it, it is it's description) : Basically, here is my button's code : &{template:5eDefault} {{deathsave=1}} {{character_name=@{PC Macros|character_name}}} {{title=Dernières Paroles}} {{subheader=Revolver Légendaire}} {{attack=[[d10cs>10cf>11]] [[d6cs>7cf>7]] [[d4cs>5cf>5]] [[d4cs>5cf>5]] + 8}} {{critdamage=[[d6cs>7cf>7]]}} {{damage=2}} {{freetext=Votre personnage n’a aucun malus de Capacité de Tir et de portée lorsqu’il utilise Défourailleur. Votre personnage, si il possède cette arme, obtient la compétence Défourailleur, s’il ne la possédait pas, ainsi qu’un bonus de +3 à tous ses jets d’initiative, même si l’arme est dans son holster.}} As you can see, I use pre-configured attributes. For the trait "Feu Nourri", I am using the freetext one, But what I want, is adding as much as freetext like attributes for all the weapon I want, so for each of those special weapon, i can just add a freetext like attribute and fill it with the name of the trait, and it's description. Do you guys know how to add as much attributes as we want through this Roll20 template ? Or do you guys know a better way to do that ? Again, excuse me to go through bizarre and messed up explainations, Thanks for reading this, Ben
Well... I'm still searching like hell for an answer, but I cannot find anything...
1587132324
Kraynic
Pro
Sheet Author
Every input on a character sheet has an attribute, and that is no different for text or textarea entries.&nbsp; All you would need to do is enter the attribute call for that text or textarea in the macro for it to pull the text from the character sheet and print it to chat.&nbsp; So, if you had an entry on your character sheet that was attr_trait_note in the html, you could have all the text from your Feu Nourii there.&nbsp; Then the text part of your macro would just be {{freetext=@{trait_note}}}. I'm not sure I am understanding correctly what you want to do, but hopefully that gets you started.&nbsp; If you haven't looked at the documentation for creating character sheets, there is a lot of info in the wiki.&nbsp; It starts on this page:&nbsp; <a href="https://wiki.roll20.net/Building_Character_Sheets" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets</a>
Hello again ! Thanks for the reply ! Unfortunatly, even with your help, I am still unable to do what I want... Okay, let me explain the exact problem I have here : I want to add new stuff inside this 5e template box : My only goal is to add new lines. Here for example, there is "Damage", and in front of it, we have "9 Piercing", because this is a damage line, showing damage stuff. I want to add new lines, like a "Penetration" line, or a "Weapon Trait" line. I want to add stuff to this box. So, in order to do this, what I am doing here, is looking at the box. Here, we have the first line, the "attack" line. So what I am going to do is going into the HTML code and copying / pasting the attack entry, so I can make a new one. So let's copy the attack entry And let's paste it, and let's replace the name and everything by what I want, so i replace all the occurences of "attack" by "rollresults" : And now let's use is by the exact same way that "attack" was used in the roll button code : So, attack was used this way : So let's do the same for rollresults : So now, we must have not anymore "attack" in the roll template displaying rolls, but "rollresults" displaying rolls. But now all of my buttons doesn't work anymore. This thing is driving me crazy, because I have basically made the exact same sh*t, and it's not working in any cases. Am I missing something guys ? Please. Here is my complete button code : &amp;{template:5eDefault} {{weapon=1}} {{character_name=@{PC Macros|character_name}}} {{title=Jet de Capacité de Combat}} {{subheader=@{character_name}}} {{rollresults=[[1d200cs&lt;5cf&gt;196]]}} Thanks a lot for reading. Ben
Well, I am still looking for an answer...
1587391839
Kraynic
Pro
Sheet Author
I'm not at all familiar with the 5E community sheet.&nbsp; I'm assuming that is the sheet you are using, because I don't recognize that roll template from posts about the 5E by Roll20 sheet.&nbsp; I'm assuming that the output you get isn't actually the results from a d200 roll, which would mean there are sheetworkers or something interacting with the rolls.&nbsp; At least, your screenshot is certainly a low roll if that is on a d200.&nbsp; Have you checked out the script section to see if that is true?&nbsp; If so, you might need to edit the sheetworkers to allow them to work correctly with the macro changes or roll template changes you make. Just out of curiosity, does that roll template (before your changes) allow for adding your own lines (not counting the free text area)? If you inserted {{Weapon Trait=Random Trait Here}} after your attack and damage, does it display? If you haven't already looked it over, there is some documentation on roll templates here in case that gives you some inspiration:&nbsp; <a href="https://wiki.roll20.net/Roll_Templates#Creating_a_Roll_Template" rel="nofollow">https://wiki.roll20.net/Roll_Templates#Creating_a_Roll_Template</a> The only other thing I could add would be to start looking at the code of other character sheets,that might already have something like this and adapt it to the sheet you are using.