DersonThePerson
LOELeague of Extraordinary FoundryVTT Developers
•Created by DersonThePerson on 9/1/2023 in #package-development
Beginners help with doors
Hi foks. Apologies if i've posted this in the wrong place. I am totally new to working with Foundry, although not new to working with Javascript. I want to write a macro that will allow me to open an adjacent door with a key press instead of the mouse. Does anyone know if this is possible?... and a few pointers into which object I need to interact with would be so helpful. Im guessing " canvas.walls.doors[0]" or something? I suppose I just need to change the door "state" from closed to open? Can anyone give me a few pointers on how to change the state of canvas objects please?
5 replies