Page 1 of 1

Get a token's image including current states?

Posted: Tue Dec 12, 2017 8:02 pm
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.

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

Posted: Tue Dec 12, 2017 8:46 pm
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().

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

Posted: Wed Dec 13, 2017 9:24 am
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.

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

Posted: Wed Dec 13, 2017 9:49 am
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.

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

Posted: Wed Dec 13, 2017 12:31 pm
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.

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

Posted: Wed Dec 13, 2017 5:17 pm
by aliasmask
What I would do is have a tooltip show the state images.