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

Derive light and sight based on condition #42

Open
3 tasks
Jagusti opened this issue Oct 30, 2020 · 1 comment
Open
3 tasks

Derive light and sight based on condition #42

Jagusti opened this issue Oct 30, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Jagusti
Copy link
Owner

Jagusti commented Oct 30, 2020

Preset sight or light option depending on condition, in the following priority:

  • Blinded vision = Blinded
  • Unconscious: vision =No Vision
  • Ablaze: light = Ablaze

Apply Blinded or Unconscious in preference to Dark Vision or Night Vision (see #41).

Prompt for vision update when condition is updated, even if Token Vision & Light dialog is not open.

@Jagusti Jagusti added the enhancement New feature or request label Oct 30, 2020
@Jagusti Jagusti added this to the 0.9.6 Lighting and Vision milestone Jul 18, 2022
@Jagusti
Copy link
Owner Author

Jagusti commented Sep 8, 2022

This might be a separate issue ... Without altering the condition script, prompt for vision update when condition is updated, even if Token Vision & Light dialog is not open:

Adding:

  • Hook into adding an effect (or actor change?)
  • Check if effect is Unconscious, or a new Ablaze or Blinded condition (condition value= 1)
  • Prompt to update Vision settings when condition is added

Removing

  • Hook into deleting an effect (or actor change?)
  • Check if effect removed is Unconscious, or last Ablaze or Blinded condition (undefined condition or value = 0)
  • Prompt to update Vision settings when condition is removed

Maybe add a setting to always vs prompt vs never auto-update vision based on condition change.

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

No branches or pull requests

1 participant