Atlas Map Documentation

A comprehensive guide on creating maps and game modes for Atlas.

XML Conditionals<conditional>

Conditionals are elements which can go anywhere in the XML that will load the enclosed modules if the condition passes.

Conditional

<loadouts>
  <loadout id="default">
    <!-- Speed 4 on April Fools Day -->
    <conditional>
      <if holiday="april-fools">
        <effect duration="45s" amplifier="3">speed</effect>
      </if>
      <else>
        <effect duration="45s">speed</effect>
      </else>
    </conditional>
  </loadout>
</loadouts>

Conditional Attributes
AttributeDescriptionType
season

The current season of the year.

Season

winter,spring,summer,fall
month

The current month of the year.

Month

january,february,march,april,may,june,
july,august,september,october,november,december
holiday

The current holiday.

Holiday

christmas,independence-day,
april-fools,
new-years

Holidays
HolidayDates
christmasDecember 15-26
independence-dayJuly 4
april-foolsApril 1
new-yearsLast Day of December - Jan 1
Seasons
SeasonDates
winterDecember, January, February, March
springApril, May
summerJune, July, August, September
fallOctober, November