View Full Version : Token Highlight
madman
April 7th, 2009, 00:38
i was wondering if the active ct token aura could be made thicker so it was easier to see when maps are smaller
or if the color could be changed
anything to make it stand ou a little more
Thank You
Madman
madman
April 11th, 2009, 17:58
well i have been looking through code for days and can not find a way to change the color or the size of the active combat tracker token highlight
if anyone can point me the right direction?
Thank you
Chris
Oberoten
April 11th, 2009, 19:03
I'll bump this request as well.
madman
April 11th, 2009, 19:42
I'll bump this request as well.
why?
what did i do wrong
did i post in the wrong area?
Ram Tyr
April 11th, 2009, 20:02
He is 'bumping' the request because he is, like you, interested in the response. He is 'seconding' your question.
Oberoten
April 11th, 2009, 21:59
why?
what did i do wrong
did i post in the wrong area?
Nothing wrong. :) I am just also interested in this answer. I'd like to have other token underlays in the same style. Maybe red, green etc for wound-status.
- obe
madman
April 11th, 2009, 22:41
sorry. i get it now
Tenian
April 11th, 2009, 22:45
You can set token underlays. 4E_JPG does that for Bloodied and the underlay changes for allies/neutrals/hostiles. I could find the relevant section of code if you needed it Obe.
But the current actor highlighting is something different, I do not know how to set that.
Oberoten
April 11th, 2009, 23:32
I have found how to set the underlay... But I was kinda hoping for the circular overlay thing. :)
- Obe
madman
April 12th, 2009, 21:26
[img=https://img301.imageshack.us/img301/4336/tokenhighlight.th.png] (https://img301.imageshack.us/my.php?image=tokenhighlight.png)
here is an image of the token highlight when the token does not cover it up.
the color changes when it is selected so it must be defined somewhere.
icedcrow
April 14th, 2009, 20:12
Hmm is that ruleset specific? I've never noticed any auras or anything on my tokens whent hey are bloodied or active...
Tenian
April 14th, 2009, 21:27
Overlay is apparently something we can't set...or no one has come forward to say they know how to set it.
Underlays can be set in lua so they are ruleset specific.
madman
April 16th, 2009, 01:56
OK.
Well then i have another question.
is there a way to script a token to scale a bit larger than it is set.
so that it shows as the active token for the current ct entry.
i think this could be done. from my very small understanding of it all.
any help on this one?
thank You
Chris
Oberoten
April 16th, 2009, 06:56
That actually sounds like a VERY good idea for finding the active tokens.
- Obe
madman
May 12th, 2010, 11:00
Bump. now that we have someone new behind the wheel.
Please
Bump
Chris
Zeus
May 12th, 2010, 19:15
I believe you should be able to use the Lua tokeninstance method setScale() to adjust the scale of an individual token instance when and if either a tokeninstance or its corresponding CT entry becomes activated.
If you take a look at the 4E ruleset, you can adopt moon_wizard's approach to effect either the underlay or scale of a tokeninstance based upon any CT conditions you might require i.e. entry is active etc.
To do this, moon_wizard uses a couple of 'shadow reference fields' (invisible) in each CT entry, which contain the link to the last instance of the CT entry's token currently deployed to a map or image.
By updating this 'reference field' when a CT entry's token is dragged/dropped to a map, moon is able to affect the CT entry's linked token instance from the CT entry code. Thus and as an example GM's are able to set the scale of an individual token instance in a map by mouse wheeling over the CT entry's token control.
So if you take a look at scripts/combattracker_entry.lua and scripts/combattracker_token.lua in the 4E ruleset you should find all you need as a reference.
madman
May 13th, 2010, 02:18
Thanks ill give it a look.
Chris
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.