Okay so I was trying to make a macro that would work with three other macros. The three macros are when I'd be wielding a light mace, a longsword, and a javelin. The latter of the three on a near identical only using Dexmod for attack instead of Strmod.
I was wondering if there was a better way to do this, or a way to make this all into one macro so I could select between the two melee weapons in a window, that would modify the 1d4 to a 1d8, and add the +1 to attack for the longsword. After that I could make a duplicate and edit to make a ranged version with a second one.
With the way that I made the macro I couldn't make a critical confirm macro at the end, though considering the longsword has a different crit that would probably be too much trouble then what it's worth.
This was my attempt, so that maybe I could explain things a bit better with it, I also didn't want to just ask without trying myself for an hour or two....
Side note: Misc2-5 are there for expansion
Code 1:
Code: Select all
[h:A2=Ability2]
[h,if(A2 >= 1),code:
{
[if(A2 == 1),code:
{
[h:damage=1d8]
};
{
[h:damage=1d4]
}]
};
]
<table border="0">
<tr bgcolor="#CC0000">
<table width="100%">
<tr>
<td style="padding:0px 5px;">
<span style="color:white"><b>Stike True {Ability1}!</b></font>
<span style="color:Green"> <br>Zanward has a +[t:Attack1Bonus=Bab+Strmod+Misc1+Misc2+Misc3] to Attack</font>
</td>
</tr>
</table>
</tr>
<tr>
<td>
Zanward Greyhunt swings his {Ability1} ([t:roll=1d20]+ [t:Attack1Bonus] = {results=roll+Attack1bonus}) and does ([t:damage+strmod+Misc4+Misc5]) damage!
</td>
</tr>
</table>
Code: Select all
[t:Ability1="Hammer, light"]
[h:Misc1=0]
[h:Ability2=2]