Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't set the light effect (color and type) as I want by creating my own json file and put it in Additional Light Sources #96

Open
DarthBalrog opened this issue Dec 9, 2024 · 2 comments

Comments

@DarthBalrog
Copy link

Hi,

Describe the bug
I can't set the lights as I want by creating my own json file.

To Reproduce
Steps to reproduce the behavior:

  1. I create my json file trying to follow your istructions, in particulary for Torch.
  2. I add the file in the Additional Light Soures
  3. When I try it in game, it looks like nothing different happen.

Expected behavior
When I activate torch on my character by selecting the torch, I would like to see the torch effect that I inserted in the json file.

Environment

  • FoundryVTT version 11 build 315
  • d&d5 version 3.3.1
  • Torch module version 2.16.0

** Attachments **
MY JSON FILE:
{
"dnd5e": {
"system": "dnd5e", // Optional but, if supplied, must match the key above
"topology": "standard", // Optional - nearly all systems use standard topology
"quantity" : "quantity", // Optional - "quantity" is the default - see notes below
"aliases": {
"Lantern (Bullseye)": "Bullseye Lantern",
"Lantern (Hooded)": "Hooded Lantern"
},
"sources": {
"Torch": {
"name": "Torch",
"type": "equipment",
"consumable": true,
"states": 2,
"light": [ // If you have only 2 states, you can supply a single set of light stats rather than an array
{
"bright": 10, "dim": 15, "angle": 360, "color": "#ff7b00", "alpha": 0.5,
"animation": { "type": "torch", "speed": 4, "intensity": 1, "reverse": false }
}
]
},
// Add additional sources for your system here
}
},
// Add additional systems here
}

** Other details that are often useful
Torch in may game are consumables, not equipment.

Thank you for help!

  • DB

luce02.json

@DarthBalrog
Copy link
Author

I solved it.
Simply cheanging the word "torch" with "flame". (:

@DarthBalrog
Copy link
Author

...but I have an other question, is it possibile to add a sound when I when do I turn on or off a light?
If yes, what is the right string to add to the specific light?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant