PDA

View Full Version : Hiding actors in the combat tracker



Stv
August 17th, 2020, 14:58
Is there any way to hide/unhide an actor in the combat tracker?
I've basically got a copy of the combat tracker and have the reference to the new combat tracker window, and the reference to the windowinstance of the actor I would like to show/hide, but can't figure out if I'm just missing something simple or if it's more complex than I thought.
Also, this is to be done on the DM's side.

Cheers, Steve.

superteddy57
August 17th, 2020, 17:39
I'm not sure if you mean hide/unhide them from the CT itself or the players. There is an eye (visibility) icon on the CT in most rulesets that will hide/unhide them from the players. As for hiding them from the CT itself, that is something I have not seen set up. One thing you can do is set up an encounter and only add the participants you wish to have in there and keep it open as reference.

Stv
August 17th, 2020, 17:45
Thanks for answering Superteddy.
What I'm after is making the actor visible/invisible in my copied CT window, on the DM's machine. I'm using the secondary window to display actors who have specific attributes, and if they don't have those attributes then I don't want them displayed in my list.
It would basically be the same functionality the eye icon gives, but operating on a window on the DM's machine.

Hope that clarifies it a bit :)

Cheers, Steve.

superteddy57
August 17th, 2020, 17:52
Ah, thanks for clearing that up. I think you might want to check out the code for Visibility for the player's CT and follow it's concept for the GM side. The only thing I would see as an issue is not knowing what is on the CT till you turn on the visibility.

Stv
August 17th, 2020, 17:59
That's where I'm struggling :P
I can't quite seem to find the correct part of the scripting for some reason. All my searches end up with me looking at the icon states and not at what it does to the combat tracker window :P
Either that, or I end up at the map token visibilty.
I'll keep digging and hopefully get lucky :)

Cheers, Steve.

superteddy57
August 17th, 2020, 18:15
I believe it is clientct_entry.lua that holds the updateDisplay() function that handles the showing of the NPCs based on their visibility toggle. The whole feature might be branched into a few other CT files, but that is a good place to start. Also the ct.lua has code related to the visibility as well.

Stv
August 17th, 2020, 18:17
I'll have a poke in there, thanks for the pointer :)

Cheers, Steve.

Stv
August 17th, 2020, 20:21
It turns out I can do what I need (I think) by using the onFilter() function.
Happy days :)

Cheers, Steve.

superteddy57
August 17th, 2020, 20:35
Nice find! Keep up the good work.