Battle backgrounds are an important component during the fight.
File JSON
The first step of the battle terrain is a file JSON. These can be found in mods/tuxemon/db/environment:
- "slug": "grass",
- "battle_graphics":
- "island_back": "gfx/ui/combat/grass_island.png",
- "island_front": "gfx/ui/combat/grass_island.png",
- "background": "gfx/ui/combat/grass_background.png",
- "hud":
- "hud_player": "gfx/ui/combat/hp_player_nohp.png",
- "hud_opponent": "gfx/ui/combat/hp_opponent_nohp.png",
- "tray_player": "gfx/ui/combat/player_party_tray.png",
- "tray_opponent": "gfx/ui/combat/opponent_party_tray.png"
- "icons":
- "icon_alive": "gfx/ui/icons/party/party_icon01.png",
- "icon_status": "gfx/ui/icons/party/party_icon02.png",
- "icon_faint": "gfx/ui/icons/party/party_icon03.png",
- "icon_empty": "gfx/ui/icons/party/party_empty.png"
- "battle_music": "music_battle_loop"
Set background
How do I set up the battle terrain? It depends on your "taste".
Dynamic background
It changes depending the time. Night and day.
- One called "Environment Day"
set_variable environment:grass
is variable_set daytime:true
- One called "Environment Night"
set_variable environment:night_grass
is variable_set daytime:false
Fixed background
It doesn't change.
set_variable environment:grass
Arid Background - "arid"
-
-
Beach Background - "beach"
-
-
Bridge Background - "bridge"
-
-
Canyon Background - "canyon"
-
-
Cave Background - "cave"
-
-
Cliff Background - "cliff"
-
-
Clouds Background - "clouds"
-
-
Desert Background - "desert"
-
-
Grass Background - "grass
-
-
Interior Background - "interior"
-
-
Night Arid Background - "night_arid"
-
-
Night Beach Background - "night_beach"
-
-
Night Bridge Background - "night_bridge"
-
-
Night Canyon Background - "night_canyon"
-
-
Night Cliff Background - "night_cliff"
-
-
Night Desert Background - "night_desert"
-
-
Night Grass Background - "night_grass"
-
-
Night Ocean Background - "night_ocean"
-
-
Night Plain Background - "night_plain"
-
-
Night Sea Background - "night_sea"
-
-
Night Snowplain Background - "night_snowplain"
-
-
Night Valley Background - "night_valley"
-
-
Ocean Background - "ocean"
-
-
Plain Background - "plain"
-
-
Sea Background - "sea"
-
-
Snowplain Background - "snowplain"
-
-
Stadium Background - "stadium"
-
-
Sunset Background - "sunset"
-
-
Valley Background - "valley"
-
-
Unused Terrain
Cavern Background - "cavern"
-
-
Forest Background - "forest"
-
-
Night Forest Background - "night_forest"
-
-
Night Sand Background - "night_sand"
-
-
Sand Background - "sand"
-
-
Night Snow Background - "night_snow"
-
-
Snow Background - "snow"
-
-
Underwater Background - "underwater"
-
-
Unused Terrain islands
-
-
-
-
-