Many of us play with people who use different frameworks, but would love to create our own attack macro's, but don't want to deal with making the DM change the properties. So yes, some of the macro's could be created more efficiently other ways I am sure, but if we can get some help that keeps the macro's really self contained it would be wonderful. Here is my first one.
--REQUEST: Critical Attack and Damage--
I want to create a macro that will produce text that says "CRITICAL", when a 20 is rolled and then the critical damage is rolled. Something that is a little different in this one also is that it is for Twin Strike, 2 separate attacks, but rolled at the same time. Here is what I as variables. (Keep in mind that I am writing this how I think of it, via something like excel, hopefully someone can convert to the proper format)
Code: Select all
[h:AttackRoll1=1d20]
[h:AttackRoll2=1d20]
[h:AttackBonus=12]
[h:DamageBonus=12]
[h:MHWDamage=1d12]
[h:OHWDamage=1d20]
[h:HQDamage=1d6]
[h:MHWCritical=2d6]
[h:OHWCritical=1d10]
[h:CritialHit1=IF(AttackRoll1=20, 1, 0)]
[h:CriticalHit2=IF(AttackRoll2=20, 1, 0)]
[h:MHWCriticalDamage=IF(CriticalHit1=1,MHWCritical+MAX(MHWDamage)-MHWDamage,0)]
[h:OHWCriticalDamage=IF(CriticalHit2=1,OHWCritical+MAX(OHWDamage)-OHWDamage,0)]
[h:MHWTotalDamage=MHWDamage+DamageBonus+HQDamage+MHWCriticalDamage]
[h:OHWTotalDamage=OHWDamage+DamageBonus+HQDamage+OHWCriticalDamage]
[h:TotalDamage=MHWTotalDamage+OHWTotalDamage-HQDamage]
[h:Attack1Total=AttackRoll1+AttackBonus]
[h:Attack2Total=AttackRoll2+AttackBonus]
[h:CriticalHitText=IF(OR(CriticalHit1=1,CriticalHit2=1), "**CRITICAL HIT**", "")]
[h:CriticalDamageText1=(IF(CriticalHit1=1,"Critical damage of [r:MHWCritical] included.","")]
[h:CriticalDamageText2=(IF(CriticalHit2=1,"Critical damage of [r:OHWCritical] included.","")]
[h:PowerName="Twin Strike"]
[h:MHW="Blood Fury War Axe"]
[h:OHW="Dwarven War Axe"]
[h:HQ="Hunters Quarry"]
[h:AttackVerseText="(Strength vs AC)"]
Chat Display Code:
Code: Select all
Ugarth slashes at his enemies with his [r:PowerName] and rolls:
[r:MHW]: [r:AttackTotal1] [r:VerseText] [r:CriticalHitText]
[r:OHW]: [r:AttackTotal2] [r:VerseText] [r:CriticalHitText]
Damage breakdown for [r:PowerName], including [r:HQ]:
[r:MHW]: [r:DamageTotal1] [r:DamageText] [r:CriticalHitText1]
[r:OHW]: [r:DamageTotal2] [r:DamageText] [r:CriticalHitText2]
Both Hit: [r.TotalDamage] [r:DamageText]
Code: Select all
Chat Display as seen (hopefully)
Ugarth slashes at his enemies with his Twin Strike and rolls:
Bloody Fury War Axe: 22 (Strength vs AC)
Dwarven War Axe: 32 (Strength vs AC) **CRITICAL HIT**
Damage breakdown for Twin Strike, including Hunters Quarry:
Bloody Fury War Axe: 20 damage
Dwarven War Axe: 35 damage, including CRITICAL damage of 10
Both Hit: 50 damage
Please don't worry about whether the numbers are adding up, etc. I can get that (the both hit of 50 is different then just adding the two attacks together because you only get one hunters quarry, in this case, it would have been 5 (20+35-5=50)), again don't worry about the numbers of if I used slightly different "filler" text. Hopefully the concept comes across pretty clear at what I am going at.
I am sure this is not rocket science, but I would like to utilize the format above because I can easily just edit each power with variables above. I also can then use html with the variables inside, so I don't have to go into the html once I get everything looking pretty.
Thanks for you help and any suggestions. I have several others, but I will post each one separate.