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 .
×
May your rolls be chill this holiday season!
Create a free account

I Need Help with Savage Worlds Macros

The short short version: I am new to macros and don't know what I'm doing. Now for the long version: I have read over the Savage Worlds Roll20 Wiki found at <a href="https://wiki.roll20.net/Savage_Worlds" rel="nofollow">https://wiki.roll20.net/Savage_Worlds</a> and I now know what floor, ceil, kh1 and a few other bits about Macros. I've also watched some of the YouTube videos on the subject and have spent time trying to get the macros to do what I want them to. Problem #1: This is a direct cut & paste from the Wiki: /em attacks @{Target|Name} rolling [[ { floor( ( { { 1d@{Selected|Fighting|4!-2}, 1d6!}kh1 - @{Selected|Wound|0} - @{Selected|Fatigue|0} + ?{Modifier|0} } - {@{Target|parryBase} + @{Target|parryMod} - 4} ) /4 ),0d0 }kh1 ]] success and raises. With an output that looks like this: "Player attacks Target rolling 0 success and raises." where the number returned can be moused over for an exploded view of what was rolled and all modifiers applied. ...And I cannot get it to work. I have a character sheet filled out for Willowtuft but the Samurai tokens are just some that put on the page. I had assigned different numbers to the circles over their heads, just in case that made a difference. Whenever I attempt the roll, after trying a number of different things, I get this message: But I can't choose a target because the cursor has been replaced with a cross-hair selection tool that doesn't seem to do anything. Do I need to have full character sheets for every token for the macro to work properly? Problem #2: I like the inline rolls. I don't need to see the calculations every time and know that I can always scroll over the result if I want the details. I now know that I can hide most of the calculations by using square brackets but using round and curly brackets confuse me. Are they interchangeable as long as they open/close the formula or do they each work only with pre-specified tasks? And where might the forward slash fit in? Problem 3: Is there a macro that will select all tokens on the page and deal a card in the turn order and sort by descending values? Right now, I have to right click on each token to "Add Turn" and then go into the Turn Order settings and select "Descending" "By Card Suit". I suppose what I'm really hoping for is a way to automate the process. Problem 4: I've tried to create a simpler macro for calculating raises and I don't understand why a roll of 17 would only show 1 success when it should be 3 successes. rolling {1d20+2}&gt;4 { ( 17)+2 } = 1 Successes I'm guessing there are simple answers for most of these problems, at least for experienced Macromaticians? Macronauts? But after trying to figure out what I am doing wrong for an hour or so, it is clear that I am not ready for the advanced class yet.
1471034528

Edited 1471034756
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Welcome to Roll 20 J.P. You've got a lot of good questions, and I think I've got at least some of the answers you're looking for. Problem #1: This is a direct cut & paste from the Wiki: /em attacks @{Target|Name} rolling [[ { floor( ( { { 1d@{Selected|Fighting|4!-2}, 1d6!}kh1 - @{Selected|Wound|0} - @{Selected|Fatigue|0} + ?{Modifier|0} } - {@{Target|parryBase} + @{Target|parryMod} - 4} ) /4 ),0d0 }kh1 ]] success and raises. With an output that looks like this: "Player attacks Target rolling 0 success and raises." where the number returned can be moused over for an exploded view of what was rolled and all modifiers applied. ...And I cannot get it to work. I have a character sheet filled out for Willowtuft but the Samurai tokens are just some that put on the page. I had assigned different numbers to the circles over their heads, just in case that made a difference.&nbsp; Whenever I attempt the roll, after trying a number of different things, I get this message: ( Images removed for conciseness) But I can't choose a target because the cursor has been replaced with a cross-hair selection tool that doesn't seem to do anything. Do I need to have full character sheets for every token for the macro to work properly? That cross-hair is how you select your targets, simply click on the target's token and the macro will take whatever info it is told to from that target's linked character. You can even do multiple targets by doing @{target|target1|name} @{target|target2|name} etc. I do see a problem with your current setup though. It sounds like you've just dragged some enemy tokens onto the battlefield without linking them to a character. So the @{target|parrybase} and @{target|parrymod} in your macro will have nothing to reference. Problem #2: I like the inline rolls. I don't need to see the calculations every time and know that I can always scroll over the result if I want the details. I now know that I can hide most of the calculations by using square brackets but using round and curly brackets confuse me. Are they interchangeable as long as they open/close the formula or do they each work only with pre-specified tasks? And where might the forward slash fit in? Taking your questions in reverse order; the forward slash '/' doesn't have any meaning unless it is at the start of a chat input in which case it denotes a chat command like /w, /em, /emas, /gmroll, or /r for whisper, emote, emote as (gm only), roll so that only you and the gm can see the result, and a regular roll respectively. Parentheses and inline roll brackets are pretty much the same, except of course that parentheses will not do an inline roll, but will group mathematical operations just like they would if you were writing out ((x+y)/z)*2. The curly brackets as far as I know are only for grouping rolls for use with things like the keep highest/lowest syntax where you would do something like {3d8,1d6}kh1 to keep the highest of the results between 3d8 and 1d6 rather than just doing 3d8kh to keep the highest 1d8 out of the 3d8. Problem 3: Is there a macro that will select all tokens on the page and deal a card in the turn order and sort by descending values? Right now, I have to right click on each token to "Add Turn" and then go into the Turn Order settings and select "Descending" "By Card Suit". I suppose what I'm really hoping for is a way to automate the process. There's no way to do this without the API. Even with the API you will have to select things, but you can select everything at once. Problem 4: I've tried to create a simpler macro for calculating raises and I don't understand why a roll of 17 would only show 1 success when it should be 3 successes. rolling {1d20+2}&gt;4 {( 17)+2 } = 1 Successes I'm guessing there are simple answers for most of these problems, at least for experienced Macromaticians? Macronauts? But after trying to figure out what I am doing wrong for an hour or so, it is clear that I am not ready for the advanced class yet. For some reason I can't dequote anymore. Here's the answer for Number 4: This counts as one success because it only counts how many rolls are greater than 4. I'm guessing that (I don't know savage worlds) you want it to give a success per multiple of 4 right? For that you'll want to do some fancy mathemagiks. Assuming you want it to give a success for every multiple of 4 you would do something like [[floor((1d20+2)/4)]] which will round down, giving you 1 on a roll of 2+2, 2 on 6+2, etc.