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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Macros make no logical sense to me

I want to use a simple macro, all I want it to do is calculate attack and damage for Pathfinder/3.5. No matter that I type, copy/paste or whatever I get jibberish or an error for a message. I have never DM'd before, and programming is not my strong suit. Is there an easier way to make these stupid things work?
1435641552

Edited 1435645064
Gen Kitty
Forum Champion
At its heart, a macro is just a pre-packaged set of commands you're feeding into the chat box. Here are a few very simple macros: /me waves cheerfully at the bartender /me attacks with his longsword! He hits AC: [[1d20+10]] /me attempts to jump! Acrobatics Roll: [[1d20+3]] Show us what you're trying to do and we'll sort it out for you, I promise ^_^
1435655642
Ziechael
Forum Champion
Sheet Author
API Scripter
As GenKitty rightly says, given something to work with we'll soon get you up and running. In the mean time i would highly recommend checking out the wiki , there are certain sections in there that will be of huge help when starting out: Dice Reference Macros Useful Macros examples 3.5 Macros Pathfinder Macros
1435668624
DK Heinrich
Marketplace Creator
Sheet Author
I was in the same boat just a few weeks ago, and slowing it is sinking in to my think skull. I would make one, get it to work. Copy and paste it ot a new macro and add to it, 1 function at a time, until you get your 'final' macro. then after you use it for a week and want to change it, you can do the same thing again - and you have all the basic steps still saved that you can pull from.
all of the wiki helps and guides really do. Took me about 20 hours total to be able to fully understand the different elements to the macros. Just stick with it. many macros have token|selected in them so if you don't have a token selected when you use them, they won't work. Sometimes it could be an error as simple as the wrong type of [ { etc. What I do is test the macro in segments to see what is the error.
1435671304

Edited 1435671428
Alicia
Sheet Author
A couple tricks I do is pull up the console log (for chrome its shift + Ctrl + j). Doesn't always help but will let you know for sure if its coming across any errors. I also use notepad++ to double check my closing brackets since it has a highlight interface. You can also double check you're using the right attribute by entering it into the chat making sure to enter it as @{name|attribute} of course but it has the added benefit of letting you know what that portion with output like.
1435671595

Edited 1435671677
I've found that a lot of students/end-users have an easier time working off of examples rather than piecing together individual instructions. <a href="https://wiki.roll20.net/Macros_-_Pathfinder_Examples" rel="nofollow">https://wiki.roll20.net/Macros_-_Pathfinder_Examples</a> is something I wrote up a while ago that gives pathfinder-specific examples and explanations for some of the most common ways to use macros. And of course, as GenKitty pointed out; this support community is AMAZING at racing to answer specific questions. If you have something you're having particular trouble working out, even if it's just a basic roll, I can guarantee you'll end up with a response within an hour or so, tops :)
1435680686
Wes
Sheet Author
You guys all make me smile! 1 comment, by someone having some trouble and all the tips, hints, and support are aahhhh - maze - innnnngg!
Thank you guys. I was looking through the forums figuring I can't be the only one having issues... Unfortunately no matter what I did I only got more confused. And then I got tired and rather moody. I'm trying to set up my tokens so that I just click one button to attack. I have no problem checking the target's AC to see if they hit or not, but if I could just click the 'ability' button that is key'ed to the token and have it take information from the token's character sheet to fill in the rest that would be awesome. I have some friends and relatives that live far away who would like to play, but most of them have never played before and if I don't have to double check everything I roll I can spend more time explaining things to them and helping where it's needed. The NPC I'm using to try and figure this out with is a level 2 human warrior, so his base attack is 2, and he wields a battle axe which is 1d8 to damage. I know I shouldn't worry about leveling because he's most likely going to be playing the role of a red shirt if he ever leaves the city limits at all. But I want to figure out how to do it as though he were going to level so that I can help my friends out with their macros. Otherwise I would just enter the formula as /roll 1d20 +2, and, /roll 1d8. And then mess with the brackets and /roll /em /whatever until I get the macro to work and say what I want. Attributes are confusing and every time I try to fix it so that they are the way I want, I click something else and the whole list somehow becomes an incomprehensible mess. Maybe I should just do it the long way for now... Keep the training wheels on for awhile and slowly add new things. Thanks for the links and macro examples. I do feel a little less stressed about it just knowing that there are so many people willing to help.
1435688833

Edited 1435688860
Here's a very basic set of abilities and a macro to use them that ignore the character sheet (you'll have to let us know which one you're using at some point, as they're all a little different) Open the character journal and click on the Attributes and Abilities tab. On the left side, Add the following Attributes, pressing the enter key after you enter each number: MyBAB set it to "2" MySTR Set it to whatever the STR bonus is (not the 12, or 14, or whatever, just the bonus) MyDEX Set it to whatever the STR bonus is (not the 12, or 14, or whatever, just the bonus) MyWeapon1Name set it to "LongSword" MyWeapon1Dice set it to "1d8" MyWeapon1AttackBonus set it to "0" unless it's a Masterwork Weapon (1) MyWeapon1DamageBonus set it to "0" unless it's enchanted (+1,+2, etc) The reason we're using "MYxxxx" is to avoid the chance of a character sheet using the same attribute names as we do. On the right side under Abilities, Click the ADD button and give it a name like "Longsword" or "Melee" /me slashes with his @{MyWeapon1Name}! Attack: [[ 1d20cs19 + @{MyBAB} + @{MySTR} + @{MyWeapon1AttackBonus} + ?{Any Temporary Attack Bonus'?|0} ]] Damage: [[ @{MyWeapon1Dice} + @{MySTR} + @{MyWeapon1DamageBonus} + ?{Any Temporary Damage Bonus'?|0} ]] Should the Attack roll be a crit(highlighted in Green), just roll the macro again. NOTE: This is assuming Pathfinder (and probably fine for 3.5). It assumes your attack roll is d20 + str + BAB and damage is d8+str Setting it up like this allows you to leave the macro alone once you've set it up, and just change the Attributes when there are changes. For Example : If I find a Longsword +2 somewhere, I just change MyWeapon1AttackBonus and MyWeapon1DamageBonus to "2" and you're done. Likewise if you get more Strength. The macro contains a query for any temporary bonus' like Flanking, Prayer, INspiring Courage, etc that you enter on the fly.
1435701135
Gen Kitty
Forum Champion
If you want to get a little fancier, you can use the following for the emote: /me slashes @{target|token_name} with his @{MyWeapon1Name}! This will automatically put the name of the token being attacked into the emote... as long as the tokens have token names.
GenKitty said: /me slashes @{target|token_name} with his @{MyWeapon1Name}! Just keep in mind any @{target} calls won't work on the Mobile App.
Thank you Mark and GenKitty. Pathfinder uses the same system as 3.5 doesn't it? The two were listed like they were the same thing when I opened the campaign for the first time. I will give these a try.
Mark G. said: GenKitty said: /me slashes @{target|token_name} with his @{MyWeapon1Name}! Just keep in mind any @{target} calls won't work on the Mobile App. I don't think I can use the mobile versions without subscribing anyway can I?
I'm referring to the Apple/Android Roll20 App for Character Sheets, not the actual Table Top (which is indeed Supporter/Mentor access only) <a href="https://itunes.apple.com/us/app/roll20-for-ipad/id" rel="nofollow">https://itunes.apple.com/us/app/roll20-for-ipad/id</a>...
1435702844
Gen Kitty
Forum Champion
Pathfinder and 3.5 have the same mechanics, with Pathfinder being viewed as a house-ruled 3.5. And good catch on that, Mark G.; I'm not used to thinking about trying to play via the app.
Oh, well don't I feel silly now. I'm going to check out that app, thanks. Those macros work perfectly. I no longer want to hit my keyboard with a hammer, which would be really bad since this is a laptop. I will slowly work my way around to learning other macro's, but I think as long as we stay basic for our first campaign together we shouldn't need to get too crazy. I don't want to DM for the first time with anything non-basic, and I'm sure the first time players don't want to either.
1435740217
Ziechael
Forum Champion
Sheet Author
API Scripter
Just remember that whichever system you are using, despite following the same rule set, you will undoubtedly be using one of the community created character sheets which all have their own naming conventions for the individual fields. Coupled with the wiki reading i recommended earlier here is a link to an old thread i started early on in my macro creating career (suitable for use with Diana's 3.5 character sheet): Ziechael's Big Bag O'Macros (Old thread) Please note that any of these that start with !power will require the API which is a mentor level perk.
If you want some one to talk you through it, send me a link to the game or add me on skype, through a pm here.