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

Add a new attribute to weapon attack field

September 16 (1 year ago)

I'm using Character Sheet 5e by Roll20. I want to add a value to the attack field of some specific weapons, but as I will always modify this value, it is impractical to simply enter the new value manually in each weapon every time it be changed.

So, I created a new Attribute (in the “Attributes and Abilities” tab) called “power_orb”. The idea is to add this new attribute to the weapon's attack field: once I modify the “power_orb” attribute, all weapons that have this attribute in their attack will receive the bonus.

The following macro works: “/roll 1d20+@{Carl|power_orb}”, but I don't want it to work through a macro, but directly in the weapon's attack field.

I tried to insert “@{Carl|power_orb}” or even “@{power_orb}” into the weapon's Magic Bonus attack field, but without success.

Does anyone have any ideas on how to do this?

September 16 (1 year ago)

For starters you appear to be using square [ ] brackets where curly { } brackets are called for. Something like:

/r 1d20 + @{selected|power_orb}

Ryutord said:

I'm using Character Sheet 5e by Roll20. I want to add a value to the attack field of some specific weapons, but as I will always modify this value, it is impractical to simply enter the new value manually in each weapon every time it be changed.

So, I created a new Attribute (in the “Attributes and Abilities” tab) called “power_orb”. The idea is to add this new attribute to the weapon's attack field: once I modify the “power_orb” attribute, all weapons that have this attribute in their attack will receive the bonus.

The following macro works: “/roll 1d20+@{Carl|power_orb}”, but I don't want it to work through a macro, but directly in the weapon's attack field.

I tried to insert “@{Carl|power_orb}” or even “@{power_orb}” into the weapon's Magic Bonus attack field, but without success.

Does anyone have any ideas on how to do this?




September 16 (1 year ago)

Well… In the example I gave here, I did use the curly braces { }.

And as for the context of my problem, I think you got it wrong.

The example you gave must be used in the chat/macro. And as I said before, it can’t be done through chat/macro. What I want is to directly add the attribute as an attack bonus to the weapon. (See the image. I circled in red the two fields on the weapon fields that I believe the code should be put in).

I think I should just write “@{power_orb}” in these fields, but they don’t work.

So I would like to know how to put the attribute value in these fields.

al e. said:

For starters you appear to be using square [ ] brackets where curly { } brackets are called for. Something like:

/r 1d20 + @{selected|power_orb}

September 16 (1 year ago)

Edited September 16 (1 year ago)

Here is a solution for a bonus to the attack roll.

The fields within the attack to add a modifier to the attack roll only accept numbers, so you won't be able to add the Power Orb bonus there.


The only option I can easily find is to use the Global Attack Modifier field: 

Name: 'Power Orb', Roll: '0@{Carl|power_orb}'


Read below in the Other notes'ideas/suggestions as well.


Here is a solution to add a bonus to the damage roll for an attack.

The 'Magic Bonus' field only accepts numbers, so you won't be able to add the Power Orb bonus there.

Options:

1. Put the Power Orb attribute call in the damage field for the weapon. If the weapon is normally a 1d6 damage, then change the 'damage' field to be '1d6+0@{Carl|power_orb}[Power Orb]'. You'll see the Power Orb bonus in the tooltip if you hover over the damage roll.


2. Put the Power Orb attribute call in the damage2 field for the weapon, assuming it's not already being used for that weapon. Change the 'damage2' field to be '0@{Carl|power_orb}' and change the 'type' field to be 'Power Orb'. You'll see the Power Orb bonus in the Damage2 field.


3. Put the Power Orb attribute call in a Global Damage Modifier. Name: 'Power Orb', Damage: '0@{Carl|power_orb}', Critical Damage: (blank), Type: 'Power Orb'. This has the nice benefit of only showing up when the value is not 0. You'll see the Power Orb bonus in the Global Damage Modifier field.



Other notes/ideas/suggestions: 

You'll also notice that I included a 0 before each of the 'power_orb' calls. This is to prevent error messages from appearing if the 'power_orb' attribute is mistakenly blank using the trick listed here.


If the Power Orb affects all characters, you can also create a character called 'Power Orb' that is referenced instead of keeping the attribute on each character individually. That would be 0@{Power Orb|power_orb}. Or you could have each character's Power Orb status on the Power Orb character: 0@{Power Orb|CarlPowerOrb}. That would allow you to have a token representing the Power Orb character, and link bar1 to the 'power_orb' attribute and you'd be able to change the attribute simply by updating the token's bar1 value.

Though since you have a Pro subscription, you can also just use ChatSetAttr to modify the Power Orb bonus when needed.