[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 561: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 617: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 181: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 182: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Nerd Pride Radio The home of the Nerd Pride Radio podcast and other acts of nerdity. 2017-09-20T07:56:44-06:00 https://nerdprideradio.com/nerds/feed.php?f=7&t=1465 2017-09-20T07:56:44-06:00 2017-09-20T07:56:44-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27748#p27748 <![CDATA[Re: Roll20 character sheets]]>
For example, my favored enemy bonus applies to both an attack and damage. So I use the following in the macro for the attack bonus:

[[ ?{Favored Enemy?|None,0|Giant,@{customa1-mod}|Goblin,@{customa2-mod}|Monstrous Humanoid,@{customa3-mod}} ]]

Then I use the following in the damage macro:

[[ ?{Favored Enemy?} ]]

The second time you reference that query, it uses the value that was calculated from the first time the query was called during that "roll".

So where it gets tricky is when you want to use one query, but you want to apply a different value for the attack vs. damage. To do that, you need to separate the query value from the values you want, then do a little bit of math. So for example, if the target is within 30 feet, I want to add +1 to my attack for Point Blank Shot, but I also want to add +4 to my damage roll for Intuitive Shot. To do that, I set the following in the macros:

Attack: [[ ?{Target within 30 ft?|No,0|Yes,1} ]]

Damage: [[ ?{Target within 30 ft?}*4 ]]

So the first time the query is called from the Attack macro, if I answer Yes, it sets the value of that query to 1, which it then uses directly in the attack macro. But in the damage macro, it takes that value of 1 and multiplies it by 4.

If you want to add something like variable sneak attack damage if you're flanking, then you should be able to do something like the following, which is what I use for adding the Bane attack and damage bonuses:

Attack: [[ ?{Bane?|No,0|Yes,2} ]]

Damage: [[ ?{Bane?} + ?{Bane?}d6 ]]

So if you answer Yes, it will add +2 to the attack roll, and 2 + 2d6 to the damage roll.

That's certainly helpful to minimize the number of prompts you need to display to the users. If the query is really a binary Yes/No or On/Off situation, you may just want the query to return 1 or 0, then do math in the appropriate places to get the correct bonuses to apply. Unfortunately, I couldn't get that to work quite correctly for the Rapid Shot modification to the iterative attack macros, since I needed the query in that instance to return other code if the query response was Yes, so having it return 1 or 0 wouldn't work.

Statistics: Posted by Tahlvin — Wed Sep 20, 2017 8:56 am


]]>
2017-09-20T07:35:03-06:00 2017-09-20T07:35:03-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27746#p27746 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by El Jefe — Wed Sep 20, 2017 8:35 am


]]>
2017-09-19T12:53:18-06:00 2017-09-19T12:53:18-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27723#p27723 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by El Jefe — Tue Sep 19, 2017 1:53 pm


]]>
2017-09-19T11:48:51-06:00 2017-09-19T11:48:51-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27721#p27721 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by Tahlvin — Tue Sep 19, 2017 12:48 pm


]]>
2017-09-19T11:43:34-06:00 2017-09-19T11:43:34-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27720#p27720 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by El Jefe — Tue Sep 19, 2017 12:43 pm


]]>
2017-09-18T03:54:08-06:00 2017-09-18T03:54:08-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27614#p27614 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by Tahlvin — Mon Sep 18, 2017 4:54 am


]]>
2017-09-17T20:06:49-06:00 2017-09-17T20:06:49-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27601#p27601 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by El Jefe — Sun Sep 17, 2017 9:06 pm


]]>
2017-09-17T13:20:17-06:00 2017-09-17T13:20:17-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27593#p27593 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by Phoebe — Sun Sep 17, 2017 2:20 pm


]]>
2017-09-17T12:43:27-06:00 2017-09-17T12:43:27-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27591#p27591 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by El Jefe — Sun Sep 17, 2017 1:43 pm


]]>
2017-09-17T08:45:13-06:00 2017-09-17T08:45:13-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=27572#p27572 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by El Jefe — Sun Sep 17, 2017 9:45 am


]]>
2017-08-30T16:49:13-06:00 2017-08-30T16:49:13-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=26022#p26022 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by Tahlvin — Wed Aug 30, 2017 5:49 pm


]]>
2017-08-30T07:42:29-06:00 2017-08-30T07:42:29-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=25964#p25964 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by El Jefe — Wed Aug 30, 2017 8:42 am


]]>
2017-08-30T05:00:10-06:00 2017-08-30T05:00:10-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=25944#p25944 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by Tahlvin — Wed Aug 30, 2017 6:00 am


]]>
2017-08-30T04:04:30-06:00 2017-08-30T04:04:30-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=25940#p25940 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by Tahlvin — Wed Aug 30, 2017 5:04 am


]]>
2017-08-29T13:26:26-06:00 2017-08-29T13:26:26-06:00 https://nerdprideradio.com/nerds/viewtopic.php?t=1465&p=25900#p25900 <![CDATA[Re: Roll20 character sheets]]> Statistics: Posted by Mike — Tue Aug 29, 2017 2:26 pm


]]>