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!

1380436253
Gauss
Forum Champion
Please supply a screenshot next time that happens since "ridiculously crazy" is hard to troubleshoot. :) - Gauss
I deleted the text and started over from scratch. It is just something to get used to. I can't show you what my text fields looked like before, but I will attempt to show you what they look like before they get copy/pasted into Roll20 and what they look like after. Migrating files to a new Tb hard drive right now. Much like my first issues with the fields being deleted and the actually html flashing into view momentarily before it gets "altered", this new formatting goes through the same process, this time deleting more than just empty cells. This is the html output on my computer (winxp) and saved as a PDF capture: Here is what it looks like copy/pasted directly into the new formatting of Roll20: Rogue Skills Skill Base Racial Mods Ability Scores Discretionary Points Armor Final Climb walls Detect noise Find/remove traps Hide in shadows Move silently Open locks Pick pockets Read languages I can send someone the original html file I am copying from, generated from the AD&D Core Rules CD program.
1380480625

Edited 1380480666
Gauss
Forum Champion
OldSchoolChris, please send the original file to <a href="mailto:team@roll20.net" rel="nofollow">team@roll20.net</a> and address it to Riley. Please include the link to your post (reproduced here: <a href="https://app.roll20.net/forum/post/361734/new-update-9-slash-24-selected-token-variables-slash-abilities-roll-to-initiative-text-editor-upgrades-and-more#post-371800" rel="nofollow">https://app.roll20.net/forum/post/361734/new-update-9-slash-24-selected-token-variables-slash-abilities-roll-to-initiative-text-editor-upgrades-and-more#post-371800</a> ) - Gauss
Did so, thank you for your direction.
Hi! Loving this update but as with all us Geeky gamer bods I want more, more, more! ;) Seriously though, one thing. The &amp;{tracker} option works great and if I select a token then run a macro, it goes into the turn order no problem, however I've set up all the player's characters for them with their hit macros,etc. as well as their Initiative macro. Now the way I expected the &amp;{tracker} to work when linked to a macro on a specific person's sheet is that it would just look at the linked token on the current sheet and use that but this doesn't seem to be the case which means that a player would have to select their own token before hitting the Initiative macro which seems to be a little counter intuitive. So is it possible so do this functionality is some way short of hitting the API? If not then my players will just have to get used to selecting their token before running the macro but it'd be nice if I moved them to the right page, said 'everyone roll init' and all they had to do was hit the macro.
1380594738
Lithl
Pro
Sheet Author
API Scripter
DisFanJen said: Now the way I expected the &amp;{tracker} to work when linked to a macro on a specific person's sheet is that it would just look at the linked token on the current sheet and use that but this doesn't seem to be the case which means that a player would have to select their own token before hitting the Initiative macro which seems to be a little counter intuitive. So is it possible so do this functionality is some way short of hitting the API? If not then my players will just have to get used to selecting their token before running the macro but it'd be nice if I moved them to the right page, said 'everyone roll init' and all they had to do was hit the macro. No; achieving this without selecting the token would require the API. The tracker is based on tokens, and it's possible to link multiple tokens to the same character sheet in the journal, so going by character isn't necessarily productive.
1380805976

Edited 1380806048
Brian said: DisFanJen said: Now the way I expected the &amp;{tracker} to work when linked to a macro on a specific person's sheet is that it would just look at the linked token on the current sheet and use that but this doesn't seem to be the case which means that a player would have to select their own token before hitting the Initiative macro which seems to be a little counter intuitive. So is it possible so do this functionality is some way short of hitting the API? If not then my players will just have to get used to selecting their token before running the macro but it'd be nice if I moved them to the right page, said 'everyone roll init' and all they had to do was hit the macro. No; achieving this without selecting the token would require the API. The tracker is based on tokens, and it's possible to link multiple tokens to the same character sheet in the journal, so going by character isn't necessarily productive. Well, I wouldn't consider it unproductive from a player point of view given they usually only play one character and so one token and without being able to see the code I can't see it being a major bit of code work. (please, before people rant that I have no idea what would be needed, I am a developer specialising in web apps so I can make at least an educated guess). However that's pretty much the answer I expected and it's not a great hardship. I'm just working with at least two new players and anythig to make the exprerience easier is good. :)
1380806006

Edited 1380806134
A developer having a blonde moment it seems given that I managed to accidentally delete a post so had to post again. Ahh well, we all have 'those' days. :)
1380815493

Edited 1380815648
Lithl
Pro
Sheet Author
API Scripter
DisFanJen said: Brian said: DisFanJen said: Now the way I expected the &amp;{tracker} to work when linked to a macro on a specific person's sheet is that it would just look at the linked token on the current sheet and use that but this doesn't seem to be the case which means that a player would have to select their own token before hitting the Initiative macro which seems to be a little counter intuitive. So is it possible so do this functionality is some way short of hitting the API? If not then my players will just have to get used to selecting their token before running the macro but it'd be nice if I moved them to the right page, said 'everyone roll init' and all they had to do was hit the macro. No; achieving this without selecting the token would require the API. The tracker is based on tokens, and it's possible to link multiple tokens to the same character sheet in the journal, so going by character isn't necessarily productive. Well, I wouldn't consider it unproductive from a player point of view given they usually only play one character and so one token and without being able to see the code I can't see it being a major bit of code work. (please, before people rant that I have no idea what would be needed, I am a developer specialising in web apps so I can make at least an educated guess). However that's pretty much the answer I expected and it's not a great hardship. I'm just working with at least two new players and anythig to make the exprerience easier is good. :) No, it wouldn't be particularly difficult to write. However, there are games where players have control of multiple "characters" in Roll20 (which aren't necessarily always actual characters in the game), there are games where multiple tokens link to the same character, there are games where players are given control of a token directly without linking to a character, and there are games where players forget or don't desire to set themselves to speaking as a character they have control of. Getting the player's token would be something to the effect of: var name = msg.who; var characters = findObjs({ _type: 'character', name: name }); if(characters.length == 0) // Player isn't speaking as a character { characters = filterObjs(function(obj) { if(obj.get('type') != 'character') return false; return obj.get('controlledby') == 'all' || obj.get('controlledby').indexOf(msg.playerid) &gt;= 0; }); } if(characters.length == 0) return; // Player controls NO characters var tokens = filterObjs(function(obj) { if(obj.get('type') != 'graphic' || obj.get('subtype') != 'token') return false; var representsCharacter = false; _.each(characters, function(c) { representsCharacter = representsCharacter || (obj.get('represents') == c.id); }); return representsCharacter || obj.get('controlledby') == 'all' || obj.get('controlledby').indexOf(msg.playerid) &gt;= 0; }); // If the player posted a message while speaking as a character, `tokens' is an array of token objects which // each represent a character with the same name. If the player posted a message while speaking as a player, // `tokens' is an array of token objects which each represent a character that the player can control. // The `tokens' array will also include all tokens the player has control of but which don't represent any character. I'm not sure I'd automatically add all of the tokens in the `tokens' array from the above snippet into the turn tracker like &amp;{tracker} does, as you may get false-positives (for example, I've seen people make tokens of equipment lying around the dungeon), but using the above and only updating the initiative value for existing tokens in the tracker should be sufficient for most purposes.
1380836897
Gauss
Forum Champion
DisFanJen, you can undelete deleted posts by hitting 'restore'. - Gauss