OpenXcom Forum

Modding => Help => Topic started by: Iron_Drakon on April 11, 2018, 09:16:53 am

Title: Forced Day/Night for missions
Post by: Iron_Drakon on April 11, 2018, 09:16:53 am
So I'm trying to work on a pair of small submods for Piratez, to force a day only or night only mode for battlescape missions, but can't figure out how to force time on the battlescape to be independent of what the geoscape time on a location is. Is there something that needs to modified other than the shade value, or does Piratez use a different number set for what equates to full day or night?
Title: Re: Forced Day/Night for missions
Post by: bulletdesigner on April 20, 2018, 02:12:06 pm
if i´m not mistaken


alienDeployments:
  - type: STR_YOUR_MISSION_NAME
    shade: 15

Shade of the map (0-15, where 0 is full daytime and 15 is full nighttime). This is not used for UFO sites where the shade comes from the Geoscape.

from https://www.ufopaedia.org/index.php?title=Ruleset_Reference_Nightly_(OpenXcom)#Alien_Deployments
Title: Re: Forced Day/Night for missions
Post by: The Reaver of Darkness on April 20, 2018, 10:04:46 pm
An alternative method is to put in lights on the map, preventing night from getting dark. The lights are easily set as invisible positions that simply emit light. I don't know a way to reverse this and force darkness. Probably bulletdesigner's solution is best overall.