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 .
×
May your rolls be chill this holiday season!
Create a free account

Rifts Character Sheet Macros - Weapon Selection

I am trying to build a couple macro's for the rifts character sheet that accomplish the following: Weapon-Selection 1. Choose a weapon from the weapon list using a macro drop down and then upon selecting weapon print into a default template the weapon Name, Weapon Range, and Damage.  2. Roll weapon damage based on "repeating_WEAP_$0_WEAPd" attribute in modern weapons field set and then post results into template table format.  3. Roll additional Bonus and Damage (based on manual input of ?Hit Bonus and ? DamBonus. Since Rifts is dynamic per shot in combat and effects like called shot etc can take place I need to use these additional bonus/modifiers (might change the name) to make it work for called shots, ranged, melee, etc. When I use this Macro the drop down works and I can select Rail Gun ($0_WEAP) or LaserGun ($1_WEAP) but the results look like this. What am I doing wrong with the macro to prevent the spill over in results and get a formated table. Like this example but for weapon selected Macro is am using: ?{Choose Weapon|@{selected|repeating_WEAP_$0_WEAP}, [[1d20 + @{selected|repeating_WEAP_$0_WEAPb}]] |@{selected|repeating_WEAP_$1_WEAP}}, [[1d20 + @{selected|repeating_WEAP_$1_WEAPb}+?{HitBonus|0}]] [[@{selected|repeating_WEAP_$1_WEAPd}+?{DamBonus|0}]]|@{selected|repeating_WEAP_$2_WEAP}}, [[1d20 + @{selected|repeating_WEAP_$2_WEAPb}+?{HitBonus|0}]] [[@{selected|repeating_WEAP_$2_WEAPd}+?{DamBonus|0}]] Results: I know I am not using the template yet but I will add that later once I get these results to be only for the weapon selected Thank you!
1597940737
Kraynic
Pro
Sheet Author
I would recommend not attempting to do the query for weapon (at least not in that way).  You will get into needing a lot of html character replacements, with more of them being needed as you nest more queries inside each other.  Due to that, a lot of us have quit nesting queries altogether and have taken to using Chat Menus . There are a lot of good ideas in that Stupid Roll20 Tricks thread, so you might check other entries out when you have time (the first post is an index). Create your macro with the default template for each weapon, with the queries and attribute calls for the attack and damage for that weapon or weapon/weapon proficiency line.  Then create a chat menu that brings up a clickable list of the weapons you have available. Another option would be to see if the Heroes Unlimited sheet would work for you, since it would be much easier to set up attacks like this.  It isn't set up to keep track of individual body part damage though, so you would have to re-purpose other attributes or create custom attributes to track that with the HU sheet.