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

Making attack and dmg roll for selected tooken in WHFRP 2nd ed.

Hi there! I'm GMing a WHFRP 2nd edition game and I'm using the excellent pre-made character sheet. However, in combat with multiple opponents and npcs it gets a bit tedious to go into each character sheet to make the attack roll. So I'm wondering if it is possible to make a macro where I select a token and then make an attack roll based on the character sheet connected to that token?. Basically i want to be able to pick a token on the battle map then click the macro and it makes the same type of roll as if I would go to the character sheet and click the atk and dmg buttons.  Anyone who can help me with this? kind regards! Sir Noobs-a-lot
1617106324
David M.
Pro
API Scripter
Not familiar with the game or the sheet, but try this: make the attack roll from the sheet, then click in the chat window and press the up arrow. This will call up the most recent command sent to chat. Copy that text into a macro and you can probably edit it to make it more generic through the use of @{selected|attributeName} syntax. If you are unsure of how to modify this, post the chat code here and we can try to help.
Thank you! it turned out like this @{selected|Whisper} &{template:whfrp2e} {{title=@{selected|meleeweaponname1}}} {{character_name=@{selected|character_name}}} {{attacktype=^{MELEE}}} {{target=[[@{selected|meleetohit1}+?{@{selected|translation_modifier}|0}]]}} {{attacktest=[[1d100]]}} {{qualities=@{selected|meleequalities1}}