Get a token's image including current states?

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
User avatar
TheIneffableCheese
Cave Troll
Posts: 64
Joined: Sun Mar 22, 2015 3:57 pm

Get a token's image including current states?

Post by TheIneffableCheese »

Is there a way to call on the image of a token (like getTokenImage) but include the active states on the image? Kind of like how you can have the token images in the Initiative window with the active states.

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Get a token's image including current states?

Post by aliasmask »

Yes, you can look at all the state functions here: http://lmwcs.com/rptools/wiki/Category:State_Function

You'll want to use Wiki: getTokenStates().

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: Get a token's image including current states?

Post by Phergus »

I think the OP is asking for the token image with the images for the active states overlayed on the token image.

I could see this being handy on a character sheet or something similar.

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Get a token's image including current states?

Post by aliasmask »

Ah, I missed that. Well, sort of but it's not perfect. You can create a table, use the token image as a background image of table which has to have the correct native size. Then inside the table put the state images. Putting a grid next to the original image is more practical and doesn't cover the token image.

User avatar
TheIneffableCheese
Cave Troll
Posts: 64
Joined: Sun Mar 22, 2015 3:57 pm

Re: Get a token's image including current states?

Post by TheIneffableCheese »

Phergus has correctly clarified what I was asking.

I figured there wasn't a way to do it - at least I had gone through every wiki entry I could think might have it and couldn't find it as an option.

Thanks for the potential work-around, but I'll probably just do without. No biggie - I just thought I'd toss out the question before I gave up the search.

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Get a token's image including current states?

Post by aliasmask »

What I would do is have a tooltip show the state images.

Post Reply

Return to “Macros”