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

Turn Tracker Initiative = used in a formula ?

1410909479

Edited 1410909513
Simple request, but I didn't found the answer yet : If I want to have "player A initiative - player b initiative" in a macro, what is the "code" I have to use to ask my macro to search the actual character initiative ? For example : @{target|tracker}-@{selected|tracker} (which doesn't work of course !) Thanks !
1410910478
Pat S.
Forum Champion
Sheet Author
I think you will need the API (mentor level feature) for that.
You won't be able to reference the values of the turn tracker in a macro like that without the API, correct.
oki thanks :-/
1410913014

Edited 1410913051
Pat S.
Forum Champion
Sheet Author
How and what would you use the result for? If we know more about how and what it would be used for, we might be able to think of an alternative method.
1410966284

Edited 1410966364
well the point is a calcul for a "counter attack" action. In short, the "defensor" makes a "counter-attack" move, but gets a "malus" on its difficulty roll = to the difference of Initiative both players have for the turn ! (Note that it is a game with d10 only, and uses the "success" method. (3 dice on difficulty 6 means : roll 3d10 and count the >6 only. For each one >6 => 1 success) So in my case you can have player A who has 3 success for his initiative, counter-attacked by player B who has 1 success on his initiative. Player B will have to launch a counter-attack roll based on Xd10>6 (but where 6 is modified by the "malus" het gets from the initiative difference. In this case 3-1 = +2)
If initiative is a static value (not rolled) you could use the value in token bars or attributes. If initiative is rolled but doesn't change (static throughout that combat) you could have your players copy the rolled init value to a token bar and have the macro reference that. If initiative changes throughout combat, it is probably going to turn into a query roll and let your players add it manually [[ ?{First Initiative?|0} - ?{Second Initiative?|0} ]]
Oh oh... nice nice.. ! Will try this now :)
1411047259

Edited 1411047978
well i have an issue : Can i have a query (?) inside another query ? ?{Difficulty = 6+[[?{Initiative @{target|character_name}|0} - ?{Initiative @{selected|character_name}|0} ]] |6} (where "6" is my basic difficulty value) For the moment, in my input value, I have INPUT VALUE Difficulty = 6+[[?{Initiative @{target|character_name} : 0
oki actually don't bother, I was going in a wrong direction. I correct it :)