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
This post has been closed. You can still view previous posts, but you can't post any new replies.

New Update 9/24: Selected Token Variables/Abilities, Roll to Initiative, Text Editor Upgrades, and more!

1380030001

Edited 1380037129
Riley D.
Roll20 Team
Selected Variables and Abilities There's a few new variables that you can use in your rolls/macros. First off, the "selected" keyword will now allow you to pull information from the element that is selected on the screen when the roll/macro is executed. So if you want to pull the value of Bar 1 from the selected token during a roll, you can do: /roll 1d20 + @{selected|bar1} You can do bar_1, bar_2, and bar_3. In addition, you can also pull an attribute from the Character linked to that token, if there is one: /roll 1d20 + @{selected|Intelligence} You can also pull the name of the token or character you've selected: /em @{selected|token_name} fires his gun! /em @{selected|character_name} blocks with his shield! We've introduced a 3rd argument for variables, allowing you to pull the "max" of a bar or attribute: /roll 1d20 + @{Guard|Intelligence|max} /roll 1d20 + @{selected|bar2|max} In addition to variables, you can also roll the ability of a selected token: %{selected|Attack} The selected abilities will obviously only work with tokens that represent a character, as abilities are a part of the character. In addition to this, we've changed the way that macros and abilities interact with each other, and you can now embed macros in abilities, and abilities in macros, even mixing and nesting them inside of each other in any combination. So you might have a GM macro called "attack" on your bar, then set up "Attack" abilities on all of your various monster types, so all you have to do to roll an attack is select any token and hit the single "attack" button. Easy! Finally, all names (for characters, attributes, and abilities) are now case-insensitive when you use them, so "GUARD" and "guard" will now both match the character "Guard". Roll To Initiative With this update, we're introducing the concept of "roll options", which are "flags" that you can set anywhere in a roll to tell the roll system you'd like to do special things with the roll.The first one we're rolling out today is a flag that allows the total result of a roll to be used as the initiative value for a the selected token in the turn tracker. Here are two examples of this in action: /roll 1d20 + 5 &{tracker} /roll 1d20 + @{selected|InitiativeMod} &{tracker} The &{} part is where you put your options for the roll, and the "tracker" option is what says "show the results of this roll, but also use the result as the value in the turn tracker." If the token that you have selected doesn't already have a turn in the turn order, one will be added. If it already has at least one turn, all current turns will be updated with the new value. Rich Text Editor Upgrades We've made some improvements to the Rich Text Editor (the one used for the notes, bio, GM notes, etc. fields). Previously, we offered two text modes, "Default Spacing" and "Single Spacing." The drawback to Default was that it was hard to make single-spaced lists, and often you'd end up with linebreaks where you didn't want them. However, Single Spacing didn't play well with content that was pasted in from external sources, often requiring you to go back and re-add linebreaks yourself. Today we're removing both of those options, and instead rolling out a new hybrid of the two. By default, now you'll only go down a single line when you press return (like the "Single Spacing" worked before), however formatting from external sources pasted in will still correctly have line spacing where paragraphs existed in the source text. We think this is the best method going forward. Your existing content should be unaffected by these changes, and rich text boxes that were previously using the Single Spacing mode will continue to do so silently to prevent any unintended consequences, but all boxes not already using that mode (including new ones) will use the new hybrid mode. In addition, the editor should no longer jump back to the top of the text box when you paste in content. The new Hybrid format will also be used on the forums and anywhere else on the site that the rich-text editor is used. Note: Please let us know if this has affected your ability to paste in content from outside sources that was working before this update. Thanks! New Arrow/Scrollwheel Shortcuts You can now use the arrow keys to move selected objects on the tabletop by one grid space (square or hex). If you hold down Alt while using the arrow keys, you can move the object in single-pixel increments instead. In addition, you can now hold down the "E" key and use the scrollwheel to rotate selected tokens. By default it will rotate them in a snap fashion (so by 45-degree or 30-degree increments, depending on your grid type), but as with the rotation handle, if you hold down Alt (so Alt+E+Scrollwheel), it will rotate by 1 degree at a time. Misc Fixes: Fixed snap to grid for odd-sized objects. You will no longer re-size an object by accident before it has been actually selected. You can now drag and drop images directly out of the Image Library Manager popup (the one where you click the "Star" next to the search box) onto the tabletop. Enjoy!
1380037166

Edited 1380038279
Nice! Should speed things up a lot! Edit: is there a way to get the &{tracker} thing to work with inline rolls?
Regarding token rotation, could you add an option rotate the token with the arrow keys too when the E key is held down?
I can't seem to get "&{tracker}" to work. In fact, I can't manually add turns to the tracker at this point, either. The "Add Turn" options is in the menu, but when selected, nothing happens?
1380039880
Gid
Roll20 Team
Kroven, are you sure the token is selected when you activate that macro? That roll option requires a selected token to figure out which token/character needs to be added to the tracker.
Yep, token selected. I've tried selecting other tokens, both GM tokens and Player tokens. I can get the tracker to come up, but I can't add anyone--either via this new way, or the old way. Argh.
Turn order tracker is working for the group playing right now.
Kroven said: Yep, token selected. I've tried selecting other tokens, both GM tokens and Player tokens. I can get the tracker to come up, but I can't add anyone--either via this new way, or the old way. Argh. Go ahead and create a bug report in the bug reports forum if you don't mind. And also if you could check your console error log to see if anything is showing up when you hit the "Add Turn" button, that would be helpful. Thanks!
Canso said: Edit: is there a way to get the &{tracker} thing to work with inline rolls? Seconded. I tried a couple different ways and it didn't seem to work. Which is ok; I can live with that. This is a HUGE bonus even so, thanks guys (and gals!)
Nice stuff, almost as though you've been reading my mind about what I'd like to see. Hmmm! *Adjusts tin foil hat*
As always, great update. Can't wait to play around with this. Also, great timing, just last Friday I made a list of things I would need to make a game I had in mind reality (an easy to play reality that is). All but one of those things are included in this update!
Guys, I hate to break it to you, but this update does half of the stuff I was going to have to subscribe and use the API for. If you keep making improvements like this, there will be no reason for me to pay for an account ;)
David A. said: Guys, I hate to break it to you, but this update does half of the stuff I was going to have to subscribe and use the API for. If you keep making improvements like this, there will be no reason for me to pay for an account ;) Well, there's still the other half? :P
1380058998
Gauss
Forum Champion
David, you could always become a paid subscriber to help fund Roll20 regardless of your need for the API :) - Gauss
Sadness. &{tracker} doesn't recognize inline rolls still. Oh well. I'm still mucho happy with it anyways.
Yeah, I'd really like to have that roll option working in-line. Since the in-line rolls were introduced I make all my macros inline.
David, seriously, I think of it the other way around, soon I might have to give up that second pizza per month just to make sure I keep getting these awesome updates.
1380075661
Lithl
Pro
Sheet Author
API Scripter
Asaram said: David, seriously, I think of it the other way around, soon I might have to give up that second pizza per month just to make sure I keep getting these awesome updates. Hear, hear!
1380077844

Edited 1380077896
Van
Pro
The selected variables are great, very useful. However for me and the way I set things up it would be just as useful or even more useful to use variables from the character I'm speaking as. Something like @{impersonated|Variable} or @{alias|Variable} Of course, having both selected and impersonated variables to choose from would be best.
Any way to modify the value the tracker without using a roll? I'm thinking specifically of Shadowrun here, where your initiative is changing pretty constantly. It'd be nice to be able to just type &{tracker}-5 (or something similar) to subtract 5 off my initiative.
For Shadowrun, I would just use separate tokens for your initiative passes. /roll 1d1+?{Initiative Value - 1|0} &{tracker} ...would work for your second and or third passes.
Some good stuff here for budding macro writers, thanks. It's a real shame that &{tracker} does not recognise inline rolls as we only use inline rolls.
1380097064
Alex L.
Pro
Sheet Author
HoneyBadger said: For Shadowrun, I would just use separate tokens for your initiative passes. /roll 1d1+?{Initiative Value - 1|0} &{tracker} ...would work for your second and or third passes. it could be added as a selected variable ie /roll @{selected|tracker}-5 &{tracker}
it could be added as a selected variable ie /roll @{selected|tracker}-5 &{tracker} That's more what I was after. But big thanks to HoneyBadger for his version, which works well enough with the current system.
1380114703

Edited 1380114739
/roll 1d1+?{Initiative Value - 1|0} &{tracker}...would work for your second and or third passes. /roll @{selected|tracker}-5 &{tracker} Neither of those seem to be doing anything close to what is advertised. The {selected|tracker}-option just returns No attribute was found for @{selected|tracker} There was an error with your formula. Please try again. While the 1d1+?{Initiative Value - 1|0}-option treats the ?{} as a user input variable named "Initiative Value - 1". Am I doing something wrong or are these suggested solutions just plain wrong? How do I get the current initiative from the tracker into my macro?
wow this stuff works great!!!!! amazing work thank you!!!!
1380116559

Edited 1380116765
Only thing that makes me a little sad about this is that if you want the Initiative to show up in an emote it can't auto-add to the tracker too. For example: My old Initiative macros looked like "/em Valandra gets [[1d20+2]] on her initiative!" and it would show up as an emote. but adding the &{tracker} anywhere to the [[1d20+2]] does nothing. In order to get it into the Initiative tracker it has to have a /roll before, and you can't have that in the middle of the emote. So for now my initiative macros look like: /em Vanadra's Initiative! /roll 1d20+2&{tracker} Which is a little messier and takes up much more space in the chat log. Maybe this can be changed in the future. Also though, keep up the good work, I do love all the updates you guys do, maybe soon we can get the ability to reorder macros in our personal macros lists like you can in the character sheets?
Nico, you can't get the current initiative from the tracker without using the API. The roll query in my macro is so that you can enter three tokens into the turn order. If you have three initiative passes. So if you rolled a 15, you'd then enter 10 and 5 for your second and third passes. If that's how shadowrun initiative still works.
HoneyBadger said: Nico, you can't get the current initiative from the tracker without using the API. Thanks. Shadowrun 5E has "extra" initiative passes at the end of the combat turn. Everyone goes once in the first initiative pass, from highest to lowest initiative, then you substract 10 from all initiative scores, and everyone who still has a positive initiative score gets to go again in the second pass. Rinse and repeat.
1380118901

Edited 1380119048
Riley D.
Roll20 Team
I didn't really think of using them in inline rolls, honestly. I've just pushed out an update (to both Dev and Main) that: 1) Enables the &{tracker} flags in inline rolls. 2) Adds two new options: /roll 1d20 &{tracker:+} /roll 1d20 &{tracker:-} So the ":+" option will add the result to whatever the current tracker value is, the ":-" option will subtract from the current value. For Shadowrun, I would then probably have two different macros, one which rolls my initial initiative using the base "&{tracker}", and then a separate global macro that would just subtract 10, maybe called "End of Turn": /em @{selected|token_name} Turn Ends! [[10 &{tracker:-}]] Hopefully that helps with some of the simpler mechanics. However, if you want to get more advanced than that, you will need to use the API for things such as getting the actual value of the current turn order.
Woot.
Kroven said: Yep, token selected. I've tried selecting other tokens, both GM tokens and Player tokens. I can get the tracker to come up, but I can't add anyone--either via this new way, or the old way. Argh. I have noticed the turn tracker can be temperamental and I have noticed the same sort of behaviour. I found the problem to occur whenever the turn tracker automatically appears at campaign startup. To solve my non-responsive Turn Tracker, I close the tracker window, then refresh the Web page and then open the tracker. I don't use Google Hangouts, so I cannot comment on the Turn Tracker behavior in that setting.
Best update I've seen! Feeling great about roll20. Happy to be a supporter!
1380129604
Keith
Pro
Marketplace Creator
HoneyBadger said: Woot. Woot indeed!
Fantastic update =D keep up the good work you're all amazing A little question: Will the flag system on rolls be able to change atribute value in the near future? (I really want that xD)
Riley D. said: For Shadowrun, I would then probably have two different macros, one which rolls my initial initiative using the base "&{tracker}", and then a separate global macro that would just subtract 10, maybe called "End of Turn": /em @{selected|token_name} Turn Ends! [[10 &{tracker:-}]] Perfect! Ended up making three macros. One for rolling initiative, one for end of turn, and one for subtracting for things like dodge or full defense. The last one was: [[?{Value to Subtract?|0} &{tracker:-}]] which lets you input a value to be subtracted from your initiative.
1380137203
Gauss
Forum Champion
For those having tracker difficulties: When you change maps the Turn Tracker is 'stuck' on the old map. You need to close and reopen it to do anything with it on the new map. Riley has stated that this is a design limitation rather than a bug. If this is not the behavior you are seeing please post a bug report. - Gauss
1380143202

Edited 1380143236
Kroven said: . The "Add Turn" options is in the menu, but when selected, nothing happens? i had this happen last night, i reseted my turn tracker screen and they were there when i reopened it
Kroven said: I can't seem to get "&{tracker}" to work. In fact, I can't manually add turns to the tracker at this point Put a space between the {} and &{tracker} like so, it should work /roll 1d20 + @{selected|InitiativeMod} &{tracker} if you have an Initiative ability but its not called InitiativeMod then delete the Mod part EX: /roll 1d20 + @{selected|Initiative} &{tracker} which im sure you already figured out lol!
the initiative roll is sweet, but now my players are looking to do it without selecting thier tokens lol of course i've told them it only works if you select your token
Awesome update. Thanks! :D
any way to remove players who for some reason need to be kicked in a session but not removed from the campaing?
Nope.
Was on the fence about subscribing before I actually got to try out a few sessions using the software but this update and the DevTeam responsiveness just put me over the top. Keep up the great work!
Ramlyns said: Was on the fence about subscribing before I actually got to try out a few sessions using the software but this update and the DevTeam responsiveness just put me over the top. Keep up the great work! Thanks for your support!
1380346631

Edited 1380346660
So I have a question about Riley D's original post: Riley D. said: In addition to variables, you can also roll the ability of a selected token: %{selected|Attack} The selected abilities will obviously only work with tokens that represent a character, as abilities are a part of the character. In addition to this, we've changed the way that macros and abilities interact with each other, and you can now embed macros in abilities, and abilities in macros, even mixing and nesting them inside of each other in any combination. So you might have a GM macro called "attack" on your bar, then set up "Attack" abilities on all of your various monster types, so all you have to do to roll an attack is select any token and hit the single "attack" button. Easy! So I have a Character called "Little Orc" and another one called "Big Orc"; They each have an ability called Attack. I have created an Attack macro button as described above and life is awesome! However, I want to have 5 Little Orc tokens and 3 Big Orc tokens. In order to get the Attack button to work when each token is selected I have linked all 5 of the Little Orc tokens to my Little Orc Character... this works. I can select any of the 5 and get the right attack behavior. The problem with this approach is that an adjustment to the Hit Point bar on any one of the tokens adjusts all of those linked to that Character. So, to track HP separately by token but still get the attacks to work must I have a discrete character for every individual monster in the campaign?
1380354238
Lithl
Pro
Sheet Author
API Scripter
The HP bars can be unlinked from the character's attributes. Look at the dropdown boxes by the bar values on the token page.
As Brian said, unlink the HP bar from the character sheet. Set those little orc tokens without the bar linked, after the HP has been set, and they all have their own pool of hit points that doesn't affect any other little orc. It's how I make my monsters for D&D Next and 4th Edition in Roll20.
Wow, not sure what happened to the text editor vs how it used to be but when I went into my gm notes and tried to add/edit them, everything got ridiculously crazy. I just copied it out of roll20, redid it in notepad and repasted it into the Gm notes. I think I will wait a while before editing anything else. Too tired to try and explain what happened, even if I could explain it. Love everything else though!