Time Conditional Stat Affecter - KonradHeinser/EBSGFramework GitHub Wiki

Return to Main Conditional Stat Affecters Page


This gene conditional stat affecter causes stat changes based on the time of the day:

        <conditionalStatAffecters>	
            <li Class="EBSGFramework.ConditionalStatAffecter_Time">
                <label>label</label>
                <statFactors>

                </statFactors>
                <statOffsets>

                </statOffsets>
                <progressThroughDay>0~1</progressThroughDay>
            </li>
        </conditionalStatAffecters>
  • label : A label to override the default
  • progressThroughDay : Default (0~1) : % of progress through the day when this will be active. For example, if this is set to be 0~0.5, then the ability is usable from midnight until noon, 0.5~1 would be noon until midnight, and 0.25~0.75 6:00 to 18:00
    • If you aren't sure what to put for the percentage, take the hour you want it to start/end at, and divide it by 24. For example, if you want the available times to be 5:00-15:00 (5-3 for those who stick to 12 hour clocks), you would do 5/24 and 15/24 to get 0.208~0.625
  • invert : Default (False) : Makes it so progressThroughDay looks to make sure the value is outside the range instead of inside. This can be used to set up times that pass through midnight as it will result in you specifying the range of times that do not work
    • For example, the 0.208~0.625 in the example (5:00-15:00, morning to afternoon) would instead check for 15:00-5:00 (afternoon to morning)
⚠️ **GitHub.com Fallback** ⚠️