LOE
League of Extraordinary FoundryVTT DevelopersDersonThePerson
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?
F
Farling•255d ago
I suspect that changing the door state would actually be performed by changing the relevant object on the scene, rather than directly changing the canvas object.
You would need to use a proximity test to find a door that is adjacent to a token controlled the the player (or the currently selected token, depending how you want to identify the token).
Run a filter on the scene doors, looking for the closest?
4535992•254d ago
arms reach do that, on v10 for sure
Want results from more Discord servers?
More PostsBlind chat message is public instead since v11I've updated to v11 today from v10.303 and now my blind chat messages aren't working anymore and I cGiving a system "Per World" optionsI'd like to plan ahead for others using my system and want to offer:
☐ Imperial or ☑ Metric
... whenHow to - Internal Compendium Pack ReferencesHi first post here, new to this forum,
I'm creating a game system for an RPG I want to play on FoundDefault item macro is overriding my custom item macroI'm trying to create and assign an item macro to the hotbar. It's mostly working, but has one unexpeHow do I add active effects support?I'm a bit lost here ... I want to add effects to items like "increase speed by 1 while having this iShow Each Dice Rolled in Custom System Builder?Is it possible to make it show all of the dice rolled automatically when clicking a roll value in a actor :: getSkillInfodeepClone() the skill structure from roll data and fill in the extra bits like name and whatever.Direct downloads look at the ` zip`Direct downloads (look at the `.zip`): <https://tooomm.github.io/github-release-stats/?username=Gwil`template.json` Nesting PropertiesI am in the process of developing a new system for Foundry VTT and I have found myself struggling toNested Navbar on Character SheetThanks to @mxzf I was able to get a nested navbar to show, but none of the data is being displayed t