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

How to add weapon type and range to the custom attack attribute?

April 12 (5 years ago)
KDOR
Plus

Hello all,

New to roll20 and I have looked for an answer but have had no luck :(

Basically what I have is this as a custom attack attribute on a monster in my Journal ( example: Hill Giant)

Attribute name:  ATK-Great-Club

/w gm %{selected|repeating_npcaction_$1_npc_action}

This works just like I want it to with the exception I would like to have the type: Melee and Range: 10 added to the output before the roll results.

The same for a ranged attack like ATK-Rock

/w gm %{selected|repeating_npcaction_$2_npc_action}



Maybe add the Type: Ranged and Range: 60/240 ft Just under the red line? or even above, anywhere actually :)


Thanks in advance for your kung fu skills.

April 12 (5 years ago)
KDOR
Plus

OK, of course, 5 min after I posted I found some information, but I still cant seem to get it to work...

I added this:

@{selected|repeating_npcaction_$1_attack_type}
@{selected|repeating_npcaction_$1_attack_range}

And this outputs the proper information as a separate note in chat.  Now just need to figure out how to make it all inline and on one note.

April 12 (5 years ago)
KDOR
Plus

Hey again... I think I found a good work around, but if there is a better way to accomplish this, I would be happy to learn about it.

Basically I used the description field ,,,

@{selected|wtype}&{template:npcaction} %{selected|repeating_npcaction_$1_npc_action}{{description=@{selected|repeating_npcaction_$1_attack_type} - @{selected|repeating_npcaction_$1_attack_range}}}


This is really close to what I had envisioned.  I guess if it works, dont worry about it?