2.0 ‐ Battlefields - Rosstail/Nodewar GitHub Wiki

Battlefields are an automated system that automatically disabled and re-enable protection of territories for a period of time. It can also remove the owner of the territory upon the battlefield opening. The calendar works on a weekly basis.

# config.yml

battlefield:
  alerts:
    - <String> (Xd YH Zm Ds)
    - <etc>
  list:
    <identifier>: 
      display: <String>
      reset-team: <boolean> (false)
      end-battle-on-battlefield-end: <boolean> (true)
      from:
        day: <String> (name of the week)
        time: <String> (HH:mm)
      to:
        day: <String> (name of the week)
        time: <String> (HH:mm)
      territory-types:
        - <String>
        - etc...
      territories:
        - <String>
        - etc...
    etc...

alerts: a list of countdown that will broadcast a message letting know that the X battlefield will be opened/closed in Y time.

You can create as much battlefields as you want.

  • <identifier>: Means the name of the battlefield. Used to recover and apply the state of a battlefield. useful in case of restart while a battlefield occures.
  • display: Used in the battlefield announcements of battlefield.alerts
  • reset-team: Should the territories affected by the battlefield must have their team expelled upon start
  • end-battle-on-battlefield-end: If true, once the battlefield closes, all the ongoing battles in territories will be closed. the teams advantaged will win by default.
  • from and to: From what day and hour in the week should the battlefield start and closes.

day uses the name of the week such as "monday". hour will work on a HH:mm 24h format. territory-types: Add all the territories that are in thgat territory type in this battlefield. territories: A list of territories you want to be used by the current battlefield.

⚠️ **GitHub.com Fallback** ⚠️