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 .
×

Bringing up a character sheet from a token....

There are all sorts of cool things I can do with a token that I have selected....but one I can't figure out is how to bring up the character sheet for it (if it references one). My journal has a fairly large number of character sheets and it would be great not to have to search through it to bring the right one up.
Shift + double click on the token
Thanks...that definitely solves my problem with characters from the UI. Now, for Mooks that are no longer linked with their character sheets directly (but where I still remember the character sheet in code)...any way to trap that shift-double-click and programmatically bring up the character sheet that my code remembers? Primarily that last part....if I can't trap the UI event, it's easy enough to make a macro button...but bringing up the character sheet in API code would be very useful!
1407340850

Edited 1407340866
The Aaron
Roll20 Production Team
API Scripter
No way to trap that event, sadly. That said, are you unlinking the mooks so that all of their hit points don't change as one? (cuz if you are, there's a better way to solve that problem that leaves them representing the mook character: <a href="https://wiki.roll20.net/Linking_Tokens_to_Journals" rel="nofollow">https://wiki.roll20.net/Linking_Tokens_to_Journals</a> (stealing another on of Phord's nickels... up to 3!) )
Aaron (or Sam) On the new Pathfinder sheets, is it possible to transfer token dice rolls into token macros? For instance, there are rolls for everything (initiative, fortitude, weapon, will, etc.) but you have to physically OPEN the sheet to use them. I love the sheets, but I'm afraid my players will find it tedious opening up the sheet, looking for that specific roll, and then use it, then close it. Rinse and repeat. (Sorry if that was confusing...rofl)
1407343159
Sam M.
Pro
Sheet Author
Yeah, mouse over any button to get its name then make a macro/ability with that text.
Thank you, Sam!! &lt;3 &lt;3 You guys are rockin' my world.
Aaron....thanks, I might be able to do it that way if I can automate it (I currently use a script to do the token setup): var gm = "Jens F. (GM)"; var x = ""; var turnorder = []; var tokenSheets = {}; function AddToTurnOrder(id, mv, name) { turnorder.push( { id: id, pr: mv + "", custom: name}); turnorder.sort(function(a,b) { return b.pr - a.pr}); log("turnorder:" + JSON.stringify(turnorder)); Campaign().set("turnorder", JSON.stringify(turnorder)); } on("chat:message", function(msg) { log(msg.type + ":" + msg.who + ":" + msg.content); if (msg.type == 'whisper' && msg.who == gm && msg.content == "!CombatBegins") { Campaign().set("initiativepage", false ); var tokens = findObjs({ _pageid: Campaign().get("playerpageid"), _type: "graphic" }); var templates = {}; turnorder = []; tokens.forEach(function(token) { var name = token.get('name'); var subtype = token.get('_subtype'); var tokenid = token.get('_id'); var pageid = token.get('_pageid'); var characterid = token.get('represents'); var page = getObj("page", pageid); if (characterid) { var character = getObj("character", characterid); tokenSheets[tokenid] = character; var mv = getAttrByName(character.id, "Speed"); character.get('gmnotes', function(gmnotes) { log(name + "-" + mv); if (gmnotes.indexOf('template') == 0) { sendChat(gm, "/w gm template token=" + name ); if (typeof(templates[name]) == 'undefined') { templates[name] = 0; } var serial = templates[name]; serial++; templates[name] = serial; var mookName = name + ' ' + serial; AddToTurnOrder("-1", mv, mookName); token.set('name', mookName); token.set('represents',null); } else { AddToTurnOrder(tokenid, mv); } }); } } ); Campaign().set("initiativepage", true ); return; } // unrelated code to do other stuff };
That worked for me, thanks. I just replaced token.set('represents',null); with token.set('bar1_link',null); token.set('bar2_link',null); token.set('bar3_link',null);
OK, read the hints on code sharing: <a href="https://gist.github.com/anonymous/b5fff40c0ed3ac620093" rel="nofollow">https://gist.github.com/anonymous/b5fff40c0ed3ac620093</a>