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

Using Macro's to determine success rolls.

1438903353

Edited 1438905014
In WFRP most tests are based on rolling a percentage below the success threshold based on the characters attributes. So, for example:  Rolf has a fellowship attribute of 40 (Fel = 40), therefore to successfully pass a Gossip Test to obtain some useful information he would need to roll a D100 and score 40 or less. I've been trying to use the new template macro system to create a Gossip macro which performs this test.  But I can't seem to get it to pick up the Fel score from Rolf's character sheet, and I'm not sure what the equivalent command is to vs in the new macro system. Most of the tests in WFRP are similar in format so if I can get one to work I should be able to do most of them. This is what I've got so far    &{template:default} {{name=Gossip Test}} {{Gossip(Fel)=[[d100 vs @{Fel}]]}} It's almost there I think, except that instead of reporting a Success or Failure it just tells me the percentile dice roll result.   Ideally what I'd want it to do is say (Success or Fail) and ideally some indication of the degree of success or failure. Can anyone help? 
1438905955

Edited 1438905988
You can't make direct comparisons like that within rolls. You might be able to rig the Critical Success\Critical Failure logic to accomplish something similar. [[d100cs>@{Character|Attribute}]]  That would highlight the roll in green whenever it was above you attribute. Documentation
1438906502

Edited 1438906705
It's a little different, there is a way to make Roll20 count the number of successes and report only that. (The syntax and uses are a little different then above, but the above will work too.) {d100}<40 That should have it count each die (in this case only one) that rolls equal to or lower then 40 as a success. Inclined like that it should simply 0 for a failure and 1 for a roll of 40 or less. As there's only one die to count. The difference being the above will tell you the roll and highlight if it is a success. This will just flat tell you the binary if it succeeded or failed. Edit: Opps, that should be less then or equal to not greater then or equal to. Target Number
1438937273

Edited 1438937468
Brent T. said: You can't make direct comparisons like that within rolls. You might be able to rig the Critical Success\Critical Failure logic to accomplish something similar. Documentation I'm surprised that Roll20 can't do it. Not only is it pretty much the fundamental test mechanic in WFRP, but I've seen a WFRPv2 Character Sheet template which had simiar test macro's built into it.  Looking at the chat log results it looks like all it does is test whether the [d100<@Fel], but then it reports the number of successes. It's that result that I need to capture somehow, as it is often a condition upon which other tests need to be based. So, for example if a WFRP character is attacking an NPC the attack macro would need to make a Weapon Skill (WS) check to see if the attack was properly executed.  So, [d100<=@WS} Then [IF that was successful] a Damage Roll to determine the strength of the blow. [d6+S] However, [IF it Failed] and the result was a Double Number e.g. 11;22;33;44;55;66;77;88;99;00, then it was a Critical Fumble and I would need the macro to refer to a fumble table to determine the consequences.  However, the Fumble Table is a challenge for later, and is irrelevant unless I can determine basic success or failure of the initial test.    :
1438937904

Edited 1438954917
Stephen W. said: It's a little different, there is a way to make Roll20 count the number of successes and report only that. (The syntax and uses are a little different then above, but the above will work too.) {d100}<40 That should have it count each die (in this case only one) that rolls equal to or lower then 40 as a success. Inclined like that it should simply 0 for a failure and 1 for a roll of 40 or less. As there's only one die to count. The difference being the above will tell you the roll and highlight if it is a success. This will just flat tell you the binary if it succeeded or failed. Edit: Opps, that should be less then or equal to not greater then or equal to. Target Number That looks like it should work.  I'll try it later. So, for an in-line roll in a template that would be [{d100}<=40] I think.  I would then need to call another macro for say, Damage or Fumble, dependant upon the result. P.S. Ok! that seems to be working, except that all it's doing is reporting the number of successes e.g. 0 or 1.  So, I need to somehow change it to report Success or Failure. Interstingly I also discover that Roll20 doesn't like the normal comparison syntax for 'Less than or equal to' (e.g. <=) because it uses the = sign for other purposes.   However, according to the macro reference this rule is built into the comparison check by default. see below:- Example Compare Points 3 - If the roll is equal to 3 >2 - If the roll is greater than or equal to 2 <18 - If the roll is less than or equal to 18 So, < means less than or equal to by default. So, this is as far as I got, but it's solved the immediate issue that prompted my question.  As you can see Rolf is a bit of blunt thinking soldier and not really very good at small talk and gossip. BTW: Does anyone know what the default Critical Success and Critical Failure conditions are? I gather they are based on D&D rules but i don't know what they are either.  However, it looks as though they are incompatible with WFRP, as Rolf has succeeded in rolling a critical success on a failed gossip test, and a critical failure on a successful gossip test.  Which doesn't make much sense roleplay wise. .
1438950581
DK Heinrich
Marketplace Creator
Sheet Author
Didz said: Brent T. said: You can't make direct comparisons like that within rolls. You might be able to rig the Critical Success\Critical Failure logic to accomplish something similar. Documentation I'm surprised that Roll20 can't do it. Roll20 can do it easily - if you are using the API (look up conditionals section of the powercards script by Honey Badger). Membership might help get you what you are looking for. 
DK Heinrich sa DK Heinrich said: Roll20 can do it easily - if you are using the API (look up conditionals section of the powercards script by Honey Badger). Membership might help get you what you are looking for.  I don't think I have access to API because I'm still using a FREE account. Though it's getting ever more tempting to upgrade, even though my original plan was to make a game and run it first just to see if I could do it, before spending money.
1438966083

Edited 1438974259
I know this isn't even nearly what you are looking for as it requires much more manual manipulation after the roll, but it may be of some help to you. It will bring up a box asking you which attribute to use to set the difficulty.  It's not in a pretty roll box or anything, but it is a start. Without using the API there is no way to accomplish everything you want unfortunately.  Edit: you have to have the token selected that you wish to use this roll on. Edit 2: Less than, not greater than... fixed it. Edit 3: I have never played WFRP and I realized this is all wrong. The difficulty IS your attribute and you need to roll below it. Fixed code. /r d100<?{Select an attribute| Strength,@{selected|strength} | Toughness,@{selected|Toughness} | Agility,@{selected|Agility} | Intelligence,@{selected|Intelligence} | Willpower,@{selected|Willpower} | Fellowship,@{selected|Fellowship}}
Well that looks like it could help with some of the syntax rules anyway.  There are always going to be occassions where the players and I will need to enter modifiers to rolls anyway as some actions are naturally going to be harder to succeed in than others.