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

Warhammer 40k: Rogue Trader Ship Weapon Macros Question

I would REALLY like to figure out how I can get the damage roll to calculate based on the number of additional successes up to the strength of the weapon. For clarification, the Strength of a weapon is the maximum number of shells that may hit in a single volley. Additional degrees of success translate directly into additional shells impacting the target. I have had some luck with the following macro to use ship's weapons (ship character sheet not working as intended): /em fires the ship's Hellus Macrocannons with [[(@{bs}+?{Modifier|0}-1d100)/10]] degree(s) of success! (Strength: 4} | Crit Rating: 4 | Range: 6) /em does [[(@{shipweapondamage})]] damage! This lets the NPC ship fire it's weapons at whatever "bs" skill I set for the crew and provides at least the first shell hit.  If I come up with anything new, I'll post here for everyone to enjoy as they see fit!
Not the least bit familiar with Warhammer 40k, but hopefully these questions/ideas would help you on your end. (Please note I'm going with no API calls since I'm deaf, dumb, and blind with all that.) * Does the degrees of success need to be displayed? If not, you could use a kl to roll the damage * If degrees of success are needed, the damage macro could be modified to prompt for the number of successes * If they all need to be separated, an nested conditional could output damage on each line; only need to enter the number of successes.
Bryan, thanks for the interest! I am not very good at writing the macros and have only managed to get this far by reading the wikis and trial and error. To answer your questions: 1. The number of degrees of success are critically important to calculate the total damage.If a battery of guns has a Strength of 4, then anywhere from 0 to 4 shells may hit the target. The skill test is a 1d100 roll compared against the firer's Ballistic Skill which is anywhere from 0 to 100. A firer must roll lower than their own Ballistic Skill to succeed. For every full 10 points that the character exceeds the requirement, they are awarded an additional "degree of success". For example, if a character has a BS of 54 and rolls a 42, then they have achieved success plus one degree of additional success. This would mean that they have hit the target with two shells out of 4. 2. I haven't managed to get the damage macro to ask for degrees of success yet... any help in writing it would be TREMENDOUSLY appreciated if you have the time. 3. I haven't even started looking at conditionals and not entirely sure what they bring to the macro... Sorry for being n00b! lol Thanks again for your respsonse!
1510170230

Edited 1510174220
Brian, Sorry for the delay in follow up. Forgot to follow the thread when initially replying. So far as apologizing for being a noob, we all start somewhere (this is the blind leading the blind), plus this actually ended up being fairly involved. Hopefully we can get something that you'll find acceptable. 1. [[[[{{floor((@{bs} + ?{Modifier|0} - d100)/10+1),{0}}kh1,{4}}kl1]]@{weapondamage}]] floor((@{bs} + ?{Modifier|0} - d100)/10+1) - calculates the number of successes (rounding up any decimals down and then adding 1, as 0.1-0.9 equal 1 success, 1.0-1.9 equals 2 successes, etc.) (This results in it incorrectly rolling damage 1% of the time; when a net 0 is calculated.) {...{0}}kh1 - This forces any negative results to resolve to 0; can't roll a negative number of dice. {4} - the total number of maximum successes {....}kl1 - keeps the lowest result. If you get more than {4} successes, it defaults to {4} @{shipweapondamage} - this is a little fuzzy. I'm presuming ship damage is XdYY. If it is, you may need to change it to dYY or just YY, and put "d" before @{shipweaopondamage} in the macro; as in item 2. NB: This results in a single damage output. It will NOT show the number of successes. If you hover over the calculated damage, it will show the damage from each volley.  2. It would be something like this "/em does [[?{Degrees of succcess}d@{shipweapondamage}]] damage" (this requires the ship weapon damage to be a number equal to the number of sides of the dice that is rolled.  3. I should have called it a query. Sorry about that:) ?{Degrees of success|1, /em does [[(@{shipweapondamage})]] damage!|2, /em does [[(@{shipweapondamage})]], [[(@{shipweapondamage})]] damage!|3, /em does [[(@{shipweapondamage})]], [[(@{shipweapondamage})]], [[(@{shipweapondamage})]] damage!|.....}   This would require html replacement but can get to that later if needed. EDIT: Added macro to item 1.