PC Token Light Toggle

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
Puddlefist
Kobold
Posts: 9
Joined: Thu Mar 31, 2022 11:21 pm

PC Token Light Toggle

Post by Puddlefist »

I have found the following to create a macro in the campaign panel to toggle a light source on and off:

Code: Select all

[H:type="Primitive Illumination"]
[H:light="Lamp - 15"]
[H:setLight(type,light,1-hasLightSource(type,light))]
And it seems to be working, except not on the PC Token that I have selected. Instead it runs on an NPC token that is on the same map level.

What am I doing wrong?

Puddlefist
Kobold
Posts: 9
Joined: Thu Mar 31, 2022 11:21 pm

Re: PC Token Light Toggle

Post by Puddlefist »

I figured it out. I had not checked "Apply to Selected Tokens" on the details tab.

Post Reply

Return to “Macros”