Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Sunlight syndrome tag  (Read 329 times)

dikbutdagrate

  • Bay Watcher
    • View Profile
Sunlight syndrome tag
« on: November 21, 2023, 12:38:24 pm »

Just looking for a [SUNLIGHT] tag, which triggers a syndrome.

Was hoping to have a mod ready for day 1 adventure mode release.
Logged

Wolfkey

  • Bay Watcher
    • View Profile
Re: Sunlight syndrome tag
« Reply #1 on: November 21, 2023, 08:19:08 pm »

https://dwarffortresswiki.org/index.php/Syndrome#CAVE_ADAPT could work, but it does not trigger instantly
Logged

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: Sunlight syndrome tag
« Reply #2 on: November 22, 2023, 08:51:55 am »

https://dwarffortresswiki.org/index.php/Syndrome#CAVE_ADAPT could work, but it does not trigger instantly

Won't work because CAVE_ADAPT can be 0 at night, during rain/snow, and anywhere considered above ground. It also requires the [CAVE_ADAPT] token to function, which obviously causes cave adaptation.
« Last Edit: November 22, 2023, 09:04:34 am by Bumber »
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

dikbutdagrate

  • Bay Watcher
    • View Profile
Re: Sunlight syndrome tag
« Reply #3 on: December 03, 2023, 01:32:06 pm »

The issue with cave adaptation is that the counter doesn't exist unless the creature has been in a dark area.
Moreover, the counter is removed once it hits zero, which is a problem if a syndrome is contingent on the counter existing.

All the suggested token needs to do is check if the creature is "outside", and enable the effects of the syndrome if true.
If false, then disable the effects of the syndrome.
« Last Edit: December 03, 2023, 01:35:34 pm by dikbutdagrate »
Logged