The code below basically allows the event to happen to happen again once 30 days have passed
The majority of scenes just clean the flag once the season ends like this
Code:
//Doots-o-ween 2022
//Randomly, while the Halloween season is active, PC is on a planet, and PC is inside their ship. Can't be repeated during the same season.
if (isHalloweenish() && pc.hasGenitals() && getShipRoom().parentLocation?.isPlanet && (flags["TRICK_OR_TREAT_LAST_DAY"] == undefined || flags["TRICK_OR_TREAT_LAST_DAY"] + 30 < days))
{
window.startTrickOrTreat();
return true;
}
The majority of scenes just clean the flag once the season ends like this
Code:
if(!isChristmas()) flags["ANNO_GIFT_WRAPPED"] = undefined;