Danny C. said: Hello :) back again after the holidays. Hope everyone had a good christmas and looking forward to the new year, but no rest for me. So I am here presenting the next problems I am finding after getting help before. I want to apologize before hand if this message feels long as i am bringing up two different questions in one post. If you can help me and we can maybe get together and solve them that would be great as I get to learn myself. Problem nr 1: Able to reference to just a part of the roll so I can get the right body part. So the system I am preparing this macros for are for warhammer 40k Deathwatch. In the system it dosent matter so much wich numer you get but the degrees of failure and success. So this formula for calculating it. [[(@{Emperor|BallisticSkill}+?{Modifier|0}+@{Emperor|advanceBS}-1d100)/10] This give the number of degress of success or failure. No biggie with that, the problem is when is necessary to calculate wich body part the hit actually hit. For example 10 is a hit to the head or 67 is to the left arm, so this is referencing to the d100 roll [[(@{Emperor|BallisticSkill}+?{Modifier|0}+@{Emperor|advanceBS}- 1d100 )/10] So my question is, how can i refer only to that roll so i can be able to still see the nr of degress but at the same time be able to get the different body parts. --?? $ARoll <= $Target AND $ARoll <= 15 ?? Outcome|~R //Hit Head// ~R --?? $ARoll <= $Target AND $ARoll >= 16 AND $ARoll <= 35 ?? Outcome|~R //Hit Right Arm// ~R --?? $ARoll <= $Target AND $ARoll >= 36 AND $ARoll <= 55 ?? Outcome|~R //Hit Left Arm// ~R --?? $ARoll <= $Target AND $ARoll >= 56 AND $ARoll <= 80 ?? Outcome|~R //Hit Body// ~R --?? $ARoll <= $Target AND $ARoll >= 81 AND $ARoll <= 90 ?? Outcome|~R //Hit Right Leg// ~R --?? $ARoll <= $Target AND $ARoll >= 91 ?? Outcome|~R //Hit Left Leg// ~R Problem nr 2. Getting righteous fury (Critical hit) to work with the different bullets. I had help last time with something similar but i dont understand how the equation work. The different now is that I am sometimes rolling for X more damages for example a full auto attack would roll 6 bullets instead of just 1. Last formula helped me to test for RIghteous fury for one attack. Here is explained and the help I got from silvyre {1d9, floor(1d10/10) * (10 + [[ 1d100!>[[@{selected|meleetohit1} + ?{Modifier|0}]]>[[@{selected|meleetohit1} + ?{Modifier|0}]] ]]d10)}kh1 + @{selected|StrengthBonus} + @{selected|meleedmg1} ]] Now, its not only the damage tested in another part of the macro, but it also must appy for each bullet that rolls over a 10 but i am getting the damgage from another place. !power {{ --hroll|[[ [$Dmg1] 0d0 + [[2d10kh1 + 9]] ]] [[ [$Dmg2] 0d0 + [[2d10kh1 + 9]] ]] [[ [$DmgX] ... --titlefontshadow|none --titlefont|Georgia --titlefontsize| 20px --erowbg|#FFFFFF --corners|10 --format|Attack --name|Astartes Bolt Pistol --rightsub| Tearing --leftsub|30 Meters --tokenid|@{selected|Token_Id} --targettokenid|@{target|token_id} --emote| **@{selected|character_name}** Attacks **@{target|character_name}** --Target Number|~R [[ [$Target] 0d0 + [[ @{Emperor|WeaponSkill}+?{Modifier|0}+@{Emperor|advanceWS} ]] ]]~R --Attack Roll|~R [[ [$ARoll] 1d100 ]] ~R --?? $ARoll > $Target ?? Outcome|~R //Miss// ~R --?? $ARoll <= $Target AND $ARoll <= 15 ?? Outcome|~R //Hit Head// ~R --?? $ARoll <= $Target AND $ARoll >= 16 AND $ARoll <= 35 ?? Outcome|~R //Hit Right Arm// ~R --?? $ARoll <= $Target AND $ARoll >= 36 AND $ARoll <= 55 ?? Outcome|~R //Hit Left Arm// ~R --?? $ARoll <= $Target AND $ARoll >= 56 AND $ARoll <= 80 ?? Outcome|~R //Hit Body// ~R --?? $ARoll <= $Target AND $ARoll >= 81 AND $ARoll <= 90 ?? Outcome|~R //Hit Right Leg// ~R --?? $ARoll <= $Target AND $ARoll >= 91 ?? Outcome|~R //Hit Left Leg// ~R --?? $ARoll <= $Target ?? Damage|~R ?{Type|Single Shot, [^Dmg1] |Semi Auto, [^Dmg1] [^Dmg2] |Full Auto, [^DmgX]... } ~R }} I put down here a example of how it works. Sorry for the long message and thx for any help I can. Danil0 Example !power {{ --name|Basic Attack --leftsub|Longsword --rightsub|Range Melee --Attack:|[[ [$Atk] 1d20 + 4 [Str Mod] + 3 [Weapon Proficiency] ]] vs AC --Hit:|[[ 1d8 + 4 [Str Mod] ]] slashing damage --?? $Atk.base == 20 ?? Critical Hit:| Add [[1d8]] slashing damage }} In the example the $Atk is used the is compare $Atk.base to 20. $Atk.base = only the roll 1d20 and not the rest. So if you set it up like this then you can compare the roll only to what ever you want. [[(@{Emperor|BallisticSkill}+?{Modifier|0}+@{Emperor|advanceBS}-1d100)/10] This is missing a bracket. You always in the same amount of opening and closing bracket ie. [[ ]] is good but [[ ] is not. I am not sure why your trying to divide by 10. February 14th, 2016 ~ 1:06 pm eastern Version: 3.2.14a Minor Update (Silvyre's Request): Added
option to count number of ones in a roll using a Roll ID. To display
the number of ones rolled use: [[ [$Roll] 10d10 ]] [^Roll.ones] February 14th, 2016 ~ 1:00 pm eastern Version: 3.2.14 Major Bugfix: Fixed
a major bug that would crash the script if you ran any powercard with
inlinerolls that did not create a mods or mods.success property in
msg.inlinerolls. February 13th, 2016 ~ 1:30 pm eastern Version: 3.2.13 Update: Added
the Skills5e reserved tag to PowerCards. This tag will automatically
print a list of your character's skills, drawn from the attributes of
the D&D 5e Community character sheet. It will not work with the OGL
or the Shaped 5e character sheets. Update: Added an option to display number of successes or test against number of successes using Conditionals. [^RollID.ss] will display the number of successes from that roll. [^RollID.base] is always a sum of all the rolls, no modifiers. Base has nothing to do with successes at all. [^RollID.total]
is always a sum of the successes of all rolls in the inline roll, not
just the RollID used. So if you use multiple roll ID's in the same
inline roll as below, it will always be the total result of all the
rolls. The use of .ss is to break out successes from individual
rolls within a multi-roll inline roll like this: [[ [$R1] 3d6>3 +
[$R2] 3d6>3 ]]. The use of ^R1.ss will only show the successes from
the first roll.