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 .
×

AD&D 1e Sheet - Stuck on How to Show To Hit Table from Macro

Hello All, I'm trying to construct a macro that will use the attack template to roll to-hit and damage for grenade-like missile weapons. I plan to eventually let the player choose from the various types of missiles (flaming oil, acid, holy water), but for the moment I'm stuck on how to get the to-hit table to show up as whispered to the GM as it would with a normal weapon attack. The character sheet uses: @{weapon_whisper_to_hit} But, since I'm not creating this macro for a specific weapon, it doesn't work. Any help would be appreciated. Thanks, Fox
1644783623
GiGs
Pro
Sheet Author
API Scripter
If you're creating this separate from a character (e.g. in the macros collection), you need to tell roll20 which character to get information from. You can use selected to use the information from a character attached to a token - but must have the token selected. That would look like @{selected|weapon_whisper_to_hit} If it's from a sepecic character, you can supply their name, like @{John Smith|weapon_whisper_to_hit} This has to be the name as shown in the character list in your Journals Collection. If this isnt your issue, you'll ned to give more information.
1644785066

Edited 1644785176
vÍnce
Pro
Sheet Author
The weapon_whisper_to_hit attribute originates within a repeating section(repeating_weapon), so if you want to call it directly, you will also need to provide the repeating_weapon as well as a row# or rowID. ie (first attack by row, all repeating rows start at "0") @{selected|repeating_weapon_$0_weapon_whisper_to_hit} You might be better off just using the macro-text directly since the hit table data actually comes from outside the repeating section. to-hit table /w gm &{template:attacks} {{color=@{selected|color_option}}} {{name=@{selected|character_name}}} {{subtag=To Hit Armor Class}} {{ToHitAC-10to0=[[ @{selected|THAC-10} ]]|[[ @{selected|THAC-9} ]]|[[ @{selected|THAC-8} ]]|[[ @{selected|THAC-7} ]]|[[ @{selected|THAC-6} ]]|[[ @{selected|THAC-5} ]]|[[ @{selected|THAC-4} ]]|[[ @{selected|THAC-3} ]]|[[ @{selected|THAC-2} ]]|[[ @{selected|THAC-1} ]]|[[ @{selected|THAC0} ]]}} {{ToHitAC1to10=[[ @{selected|THAC0} ]]|[[ @{selected|THAC1} ]]|[[ @{selected|THAC2} ]]|[[ @{selected|THAC3} ]]|[[ @{selected|THAC4} ]]|[[ @{selected|THAC5} ]]|[[ @{selected|THAC6} ]]|[[ @{selected|THAC7} ]]|[[ @{selected|THAC8} ]]|[[ @{selected|THAC9} ]]|[[ @{selected|THAC10} ]] }} thac0 /w gm &{template:attacks} {{color=@{selected|color_option}}} {{name=@{selected|character_name}}} {{subtag=THACO}} {{ToHitAC-10to0=@{selected|THAC0-10}|@{selected|THAC0-9}|@{selected|THAC0-8}|@{selected|THAC0-7}|@{selected|THAC0-6}|@{selected|THAC0-5}|@{selected|THAC0-4}|@{selected|THAC0-3}|@{selected|THAC0-2}|@{selected|THAC0-1}|**@{selected|THAC00}**}} {{ToHitAC1to10=**@{selected|THAC00}**|@{selected|THAC01}|@{selected|THAC02}|@{selected|THAC03}|@{selected|THAC04}|@{selected|THAC05}|@{selected|THAC06}|@{selected|THAC07}|@{selected|THAC08}|@{selected|THAC09}|@{selected|THAC010} }}
1644785474

Edited 1644785538
vÍnce
Pro
Sheet Author
Just case you are not aware Foxfire, I have been working on a big update for the 1e sheet ( [AD&D 1E] update part 2 ).  There is also a public beta game to test and give feedback here .  Please feel free to import a character and/or play around with the ones currently available in-game. Would love to get your feedback. (in-game thread or the 1e forum thread linked above)  Cheers