RPTools.net

Discussion and Support

Skip to content

It is currently Mon Dec 18, 2017 3:35 pm 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 2 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Sun Apr 30, 2017 3:32 pm
Posts: 30
Location: Fort Smith, AR
 Post subject: A better way?
PostPosted: Sat Oct 28, 2017 5:34 pm 
I have implemented a macro for one of my players at his request. This has resulted in other players liking it after seeing it and wanting their own. While it wasn't difficult to make, I was wondering if there is a better way to make variations of this macro:

Code:
[h:attack = 1d20+24]
[r,if(attack >= 40),CODE:
{
Rolls a <b><font color="red">[attack-24]</color></b> for a Possible Crit with <b>[1d20+24]</b> to Confirm on First Attack
};
{
Gets <b>[attack]</b> to Hit on First Attack
}]
[h:attack = 1d20+19]
[r,if(attack >= 35),CODE:
{
, Rolls a <b><font color="red">[attack-19]</color></b> for a Possible Crit with <b>[1d20+19]</b> to Confirm on Second Attack
};
{
, Gets <b>[attack]</b> to Hit on Second Attack
}]
[h:attack = 1d20+14]
[r,if(attack >= 30),CODE:
{
, Rolls a <b><font color="red">[attack-14]</color></b> for a Possible Crit with <b>[1d20+14]</b> to Confirm on Third Attack
};
{
, Gets <b>[attack]</b> to Hit on Third Attack
}]
[h:attack = 1d20+24]
[r,if(attack >= 40),CODE:
{
, Rolls a <b><font color="red">[attack-24]</color></b> for a Possible Crit with <b>[1d20+24]</b> to Confirm on Bonus Attack
};
{
, Gets <b>[attack]</b> to Hit on Bonus Attack
}]
[h:attack = 1d20+19]
[r,if(attack >= 35),CODE:
{
, Rolls a <b><font color="red">[attack-19]</color></b> for a Possible Crit with <b>[1d20+19]</b> to Confirm on First Off-Hand Attack
};
{
, Gets <b>[attack]</b> to Hit on First Off-Hand Attack
}]
[h:attack = 1d20+14]
[r,if(attack >= 30),CODE:
{
, Rolls a <b><font color="red">[attack-14]</color></b> for a Possible Crit with <b>[1d20+14]</b> to Confirm on Second Off-Hand Attack
};
{
, Gets <b>[attack]</b> to Hit on Second Off-Hand Attack
}]
[h:attack = 1d20+9]
[r,if(attack >= 25),CODE:
{
, and Rolls a <b><font color="red">[attack-9]</color></b> for a Possible Crit with <b>[1d20+9]</b> to Confirm on Third Off-Hand Attack.
};
{
, and Gets <b>[attack]</b> to Hit on Third Off-Hand Attack.
}]


My player's are actually all in the same room, so we use character sheets for their stats, not their tokens. Their tokens have notes for me (the DM), so drawing from their token isn't really viable.

Always looking to improve so any suggestions are welcome! Thanks in advance!

[EDIT] I thought I maybe should put some insight into the source for numbers, so:
Code:
1d20+X
- then X=Attack Bonus
Code:
if(attack >= Y)
- Then Y=20+Attack Bonus-Crit Range (So in this case, the critical hit range is 16 to 20, or 5 (16 is 1, 17 is 2, 18 is 3, 19 is 4, 20 is 5)
Code:
and Rolls a <b><font color="red">[attack-9]</color></b> for a Possible Crit
- Displays the number rolled to gain a Possible Crit and then rolls a new attack roll for the Confirmation roll.
The last part just shows the roll if it was not a possible crit.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7969
Location: Bay Area
 Post subject: Re: A better way?
PostPosted: Sat Oct 28, 2017 7:03 pm 
I've done a couple of generic attack macros over the years, here's one for comparison: viewtopic.php?f=20&t=22886&p=233681#p233681

_________________
Downloads:


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 2 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 2 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman