Skip to content
Tiranadel edited this page Feb 24, 2017 · 1 revision

BATTLEFIELDS.DB


Battlefields.db controls the various battlefields that are available in the bot, the weather information and the "Time of Day" for the game. If you open the file up in notepad you'll see the weather information at the top.

[weather]

This section controls the weather.

current=calm
list=calm.bright.gloomy.rainy.stormy.snowy.windy.hot.dry
boost=.25

The .25 means that magic cast on the right day will give a 25% boost to the damage.

[MoonPhase]

The moon phases are controlled in this file as well. Please do not remove or modify the Moon Phase section as it will cause errors.

CurrentMoonPhase=Quarter
CurrentMoonTurn=4

[MoonPhaseTime]

This section controls how long each moon phase turn lasts (in number of battles). You can modify this section if you wish certain moon phases to last longer.

full=3
new=1
gibbous=5
quarter=4
crescent=2
blood=1
BloodMoonChance=60

[TimeOfDay]

This section keeps track of what time of day it is (in-game).

CurrentTimeOfDay=Morning
CurrentTimeOfDayTurn=1

[TimeOfDayTime]

This section controls how long (in number of battles) the times of day last before they switch to the next one.

morning=2
noon=2
evening=2
night=2

[Battlefields]

Battlefields are where the players face the monsters. The battlefields themselves control what kinds of weather are available and may have events that occasionally happen. There can be more than one event set per battlefield.

Here is a basic template you can use for making a new battlefield:

[template]
weather=calm.bright.gloomy.rainy.stormy.snowy.windy.hot.dry
NumberOfEvents=0
scavenge=
limitations=

event1=damage
event1Chance=20
Event1Desc=%real.name trips and falls Ow!
Event1Target=random
event1Amount=$rand(50,100)

weather=
This is the section where you list what weather is available for that battlefield. The bot will choose randomly from this list.

Valid Weather: calm, bright, gloomy, rainy, stormy, snowy, windy, hot, dry

NumberOfEvents=
This tells the bot how many random battlefield events you have defined in the battlefield. Leave at 0 if you don't want the battlefield to have any.

scavenge=
This is a list of items that players can potentially find while using the !scavenge skill. You can list any item that's in the game and can list multiple by splitting it with periods between them (such as: potion.diamond.tonic)

limitations=
These are battlefield limitations. If set, players/monsters/npcs will lose access to certain commands or will be enhanced.

Valid Limitations: no-tech, no-item, no-skill, no-ignition, enhance-item, enhance-melee, enhance-tech, no-mech

Making a Battlefield Event
If you have listed a number in NumberOfEvents= you will need to now create your events.
The format looks like this:

event#=
event#Chance=
Event#Desc=
Event#Target=
event#Amount=

Change the # to the current number of event. You will need those five lines for every event you have listed (so if you have 3 events you will need event1= event2= event3=, event1Chance=, event2Chance=, event3Chance=, etc)

event#=
This is where you define what type of event it is.

Valid Event Types: damage, heal, statusonly

  • Note for statusonly you will need an extra line: event#statusType=statustypehere

event#Chance=
This defines how often the event will trigger. It can be 1-100 with 100 being it always happens at the end of everyone's turn.

Event#Desc=
What happens during the event. Use %real.name to show the name of the person affected.

Event#Target=
Here you tell the bot who is affected by this event.

Valid Targets: all, random, monsters, players *

  • note that "players" as a target also affects NPCs

event#Amount=
How much damage does this event do? You can list a static amount or you can use $rand(#,#) to make it be varied.

Finally, for battlefields, it is possible to make a battlefield that does not show up during normal rotation (such as a special portal battle battlefield). If you want the bot to be able to select it for battles, make sure you put the name of it into battlefields.lst

[Table of contents]


Download Links

[GitHub]


#BattleArena on Esper.Net

[Scoreboard]
[Reddit]
[Suggestions]


Clone this wiki locally