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

Drop down macro giving 2 lots of answers help

Hi All, not an easy one to explain what we are looking for. Basically we have a macro that you set to give you a hit location. This the shows in the /em line as the area. A second drop down lets you pick the Armour area, which gives the detail of armour into the damage bit. Anyway we can pick say left leg, it will say hit in left leg and also give the armour that can be used in the roll?  Ideally we want to chose hit location and it assign the armour Hit location automatically Heres what we have at the min: /em Furdil hits the enemy with ?{player Damage|0} on the ?{HitLocation|01-15,Head|16-35,Right Arm|36-55,Left Arm|56-80,Body|81-90,Right Leg|91-00, Left Leg} and they have toughness @{target|TB} with Armour of ?{Hit location|Head, @{target|armourhead}|Arm, @{target|armourarms}|Body, @{target|armourbody}|Leg, @{target|armourlegs}} /roll [[?{player Damage|0}-(@{target|TB}+?{Hit location})]] damage!
1591024380
GiGs
Pro
Sheet Author
API Scripter
If I understand you correctly, what you need to do is make a bigger query. You can include more than a single word or item in each row of the query. You can include multi-line sequences. With one caveat: /em Furdil hits the enemy with ?{player Damage|0} on the ?{HitLocation| 01-15,Head and they have toughness @{target|TB} with Armour of @{target|armourhead} /roll [[?{player Damage &amp;#125; -(@{target|TB} + @{target|armourhead})]] damage!| 16-35,Right Arm and they have toughness @{target|TB} with Armour of @{target|armourarms} /roll [[?{player Damage &amp;#125; -(@{target|TB} + @{target|armourarms})]] damage!| 36-55,Left Arm and they have toughness @{target|TB} with Armour of @{target|armourarms} /roll [[?{player Damage &amp;#125; -(@{target|TB} + @{target|armourarms})]] damage!| 56-80,Body and they have toughness @{target|TB} with Armour of @{target|armourbody} /roll [[?{player Damage &amp;#125; -(@{target|TB} + @{target|armourarms })]] damage!| 81-90,Right Leg and they have toughness @{target|TB} with Armour of @{target|armourlegs} /roll [[?{player Damage &amp;#125; -(@{target|TB} + @{target|armourlegs})]] damage!| 91-00, Left Leg and they have toughness @{target|TB} with Armour of @{target|armourlegs} /roll [[?{player Damage &amp;#125; -(@{target|TB} + @{target|armourlegs})]] damage!}&nbsp; Certain characters used inside queries will break the query, if you dont replace them with a html entity. This is described in more detail here:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> The ?{player Damage} query inisde the larger query needed its } replaced, or it would cause the entire query to end early.
Thanks so much!!! That makes sense now I've seen it!!
1591033541
GiGs
Pro
Sheet Author
API Scripter
You're welcome :)