Battle Terrain

From Tuxepedia
Revision as of 07:16, 23 December 2023 by Jaskrendix (talk | contribs)
Jump to navigation Jump to search

Battle backgrounds are an important component during the fight.

File JSON

The first step of the battle terrain is a file JSON. This can be found in mods/tuxemon/db/environment and it's the one called **grass**.

  • "slug": "grass",
  • "battle_music": "music_battle_loop",

the category: "battle_graphics": this is the main category which contains **hud** and **icons** and it manages the islands (terrain below the monsters) as well as the background. You can see many examples below (islands and backgrounds).

  • "island_back": "gfx/ui/combat/grass_island.png",
  • "island_front": "gfx/ui/combat/grass_island.png",
  • "background": "gfx/ui/combat/grass_background.png",

the subcategory "battle_graphics" > "hud": this manages the hud graphic, the one where appears the name, level, gender symbol, hp bar, etc.

  • "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"

the subcategory "battle_graphics" > "icons": this manages the small tuxeball icons in the graphic battle, the ones below the hud.

  • "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"

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"

Arid background.png - Dried mud front island.png - Dried mud back island.png

Beach Background - "beach"

Beach background.png - Sand front island.png - Sand front island.png

Bridge Background - "bridge"

Bridge background.png - Cobble front island.png - Cobble front island.png

Canyon Background - "canyon"

Canyon background.png - Dried mud front island.png - Dried mud back island.png

Cave Background - "cave"

Cave background.png - Cave front island.png - Cave front island.png

Cliff Background - "cliff"

Cliff background.png - Grass front island.png - Grass front island.png

Clouds Background - "clouds"

Clouds background.png - Sky front island.png - Sky back island.png

Desert Background - "desert"

Desert background.png - Sand front island.png - Sand front island.png

Grass Background - "grass

Grass background.png - Grass front island.png - Grass front island.png

Interior Background - "interior"

Battle bg03.png - Paper front island.png - Paper back island.png

Night Arid Background - "night_arid"

Night arid background.png - Dried mud front island.png - Dried mud back island.png

Night Beach Background - "night_beach"

Night beach background.png - Water front island.png - Water front island.png

Night Bridge Background - "night_bridge"

Night bridge background.png - Cobble front island.png - Cobble front island.png

Night Canyon Background - "night_canyon"

Night canyon background.png - Dried mud front island.png - Dried mud back island.png

Night Cliff Background - "night_cliff"

Night cliff background.png - Grass front island.png - Grass front island.png

Night Desert Background - "night_desert"

Night desert background.png - Sand front island.png - Sand front island.png

Night Grass Background - "night_grass"

Night grass background.png - Grass front island.png - Grass front island.png

Night Ocean Background - "night_ocean"

Night ocean background.png - Water front island.png - Water front island.png

Night Plain Background - "night_plain"

Night plain background.png - Grass front island.png - Grass front island.png

Night Sea Background - "night_sea"

Night sea background.png - Water front island.png - Water front island.png

Night Snowplain Background - "night_snowplain"

Night snowplain background.png - Snow front island.png - Snow front island.png

Night Valley Background - "night_valley"

Night valley background.png - Grass front island.png - Grass front island.png

Ocean Background - "ocean"

Ocean background.png - Water front island.png - Water front island.png

Plain Background - "plain"

Plain background.png - Grass front island.png - Grass front island.png

Sea Background - "sea"

Sea background.png - Water front island.png - Water front island.png

Snowplain Background - "snowplain"

Snowplain background.png - Snow front island.png - Snow front island.png

Stadium Background - "stadium"

Stadium background.png - Stadium front island.png - Stadium back island.png

Sunset Background - "sunset"

Sunset background.png - Terra front island.png - Terra back island.png

Valley Background - "valley"

Valley background.png - Greengrass front island.png - Greengrass front island.png

Unused Terrain

Cavern Background - "cavern"

Cavern background.png - Cave front island.png - Cave front island.png

Forest Background - "forest"

Forest background.png - Woodland.png - Woodland.png

Night Forest Background - "night_forest"

Night forest background.png - Woodland.png - Woodland.png

Night Sand Background - "night_sand"

Night sand background.png - Sand front island.png - Sand front island.png

Sand Background - "sand"

Sand background.png - Sand front island.png - Sand front island.png

Night Snow Background - "night_snow"

Night snow background.png - Snow front island.png - Snow front island.png

Snow Background - "snow"

Snow background.png - Snow front island.png - Snow front island.png

Underwater Background - "underwater"

Underwater background.png - Big blue front island.png - Big blue front island.png

Unused Terrain islands

Warning front island.png - Warning back island.png Leather front island.png - Leather back island.png Parque front island.png - Parque back island.png Ice front island.png - Ice back island.png Rain front island.png - Rain back island.png