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

How to call a keep/drop array from a Prompt

I'm trying to create an Ability for a character which uses nested commands, the problem I am having is resolving the multiple { } uses to their respective components.  I have tried different combinations of using character in place of the characters as on the Advanced use page with no luck. Context:  This is for a weapon in the Warhammer 40K FFG RPGs with multiple settings, where each setting has a different damage roll.  This is further complicated by a quality the weapon has called Proven. This is the Ability as I have it currently (I've stripped it out of it's Template so it can run in any game): Damage ?{Damage| Standard, **Standard Setting**: [[{1d10,0d+21}kh1+12]] E Pen 10| Maximal, **Maximal Setting**: [[{2d10,d0+2,d0+2}kh2+12]] E Pen 12 *(Recharge / Overheats)* } The {Xd10,d0+2}khX is for the Proven (2) quality which replaces results less than 2 with 2. The Damage rolls work correctly independently, and the Prompt setup works correctly for a similar, simpler, profile without trying to do the Proven quality.
1602525837
GiGs
Pro
Sheet Author
API Scripter
I'm not really following your description of the problem, but just in case, this is the issue this line seems to be incorrect: Standard, **Standard Setting**: [[{1d10,0d+21}kh1+12]] E Pen 10| It should probably be Standard, **Standard Setting**: [[{1d10,d0+2}kh1+12]] E Pen 10| Your second roll looks weird to me:  [[{2d10,d0+2,d0+2}kh2+12]]  That is identical to simply doing  [[2d10 +2 +12]] 
1602540126
Oosh
Sheet Author
API Scripter
Ah yep, you're inside a Query - you need to use HTML entities for | , } characters unless they're part of an Ability or Attribute call: Damage ?{Damage| Standard, **Standard Setting**: [[{1d10,d0+21}kh1+2]] E Pen 10| Maximal, **Maximal Setting**: [[{2d10,d0+2}kh2+12]] E Pen 12 *(Recharge / Overheats)*}
Oosh said: Ah yep, you're inside a Query - you need to use HTML entities for | , } characters unless they're part of an Ability or Attribute call: Damage ?{Damage| Standard, **Standard Setting**: [[{1d10,d0+21}kh1+2]] E Pen 10| Maximal, **Maximal Setting**: [[{2d10,d0+2}kh2+12]] E Pen 12 *(Recharge / Overheats)*} Thanks, this has worked great