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

We need help with our Macro

1452853732

Edited 1452856487
Ash
Sheet Author
My player, Onytr, has a spell that makes him better at combat. The ideal macro would tell us what bonus he gets to his combat, and then whether or not he is fatigued from casting the spell. I have the first part down, but the second is not so easy. /me becomes in-tune with the rhythm of the fight &{template:default} {{name=Combat Sense}} {{Bonus=+[[floor({{d20+3+@{selected|level1}+@{selected|Wisdom}}/10 +1})]] to combat}} {{Fatigued=if [[d20+@{selected|will}]] < 10+Bonus}} Currently that comes out looking  like this . Considering this example, I'd like to make the "if 17<10+Bonus" look like "if 17<13", or merely state whether or not this a success. Unfortunately I don't know of a way to restate the value of the bonus. I'm GMing True20 (a d20 system, like Pathfinder or D&D 3rd) if that matters.
1452862262

Edited 1452863205
Abe said: Unfortunately I don't know of a way to restate the value of the bonus. And, unfortunately, this is not an easy thing at all to do without the assistance of an API Script. Without an API Script, you would have to nest the bonus within the fatigued check in order to get the conditional logic, which leaves much to be desired. &{template:default} {{name=Combat Sense}} {{Fatigued check (mouse over inline roll's tooltip to see the bonus)=[[ {d20 + @{selected|will} - 10 + 0.01}<[[ d20 + 3 + @{selected|level1} + floor(@{selected|Wisdom}/10) + 1 ]] }} Hence, I'll very highly recommend using PowerCards to handle at least this. !power {{ --name|Combat Sense --emote|Onytr becomes in-tune with the rhythm of the fight --Bonus|+[[ [$B] d20 + 3 + @{selected|level1} + floor(@{selected|Wisdom}/10) + 1 ]] to combat --Fatigued check|[[ [$F] d20 + @{selected|will} - 10 ]] -- ?? $F < $B ?? !|Ontyr is now fatigued. }}
1452886272
Ash
Sheet Author
Thanks! I did actually investigate those, but I wasn't sure of how they work. I copy the script as API, but how do I use it in-game?
You put that information into a macro, just like a roll template.
1452941428
Ash
Sheet Author
I tried that, and though it doesn't give an error message, it shows nothing - no powercard, roll, nor string of code
Where did you paste the api script?
1452943976
Gen Kitty
Forum Champion
The simplest way to check if the Powercards script is behaving properly is to type !power_version into the chat and see what result you get.  If you have it set up properly, you'll get back something such as: (From HoneyBadger): (GM) You are using version 3.2.8 of PowerCards, authored by HoneyBadger, which was last updated on: July 23rd, 2015 ~ 12:45 am. If you don't get that back, something is wrong with your install of the script and we'll need to talk you through the install.  If it is working correctly, we'll need to talk you through making a powercards macro.
1453435430
Ash
Sheet Author
I got it working using PowerCards! Thanks for the help guys :)
+1