Editing Battle Terrain

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Battle backgrounds are an important component during the fight.  
Battle backgrounds.


== File JSON ==  
== Arid Background ==
[[File:Arid background.png]]


Battle Terrains in Tuxemon can be created by adding a JSON file to the <code>mods/tuxemon/db/environment</code> directory.
== Beach Background ==
[[File:Beach background.png]]


*  "slug": "grass",
== Bridge Background ==
*  "battle_music": "music_battle_loop",
[[File:Bridge background.png]]
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"
*      "hud_player": "gfx/ui/combat/hp_player_nohp.png", -> '''Pairagrin Symbol lv 3'''
*      "hud_opponent": "gfx/ui/combat/hp_opponent_nohp.png", -> '''Aardorn Symbol lv 3'''
*      "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 below the hud (see image below).
*      "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"


[[File:Battle_screen.png]]
== Canyon Background ==
[[File:Canyon background.png]]


Here is an example of what an environment file might look like:
== Cave Background ==
[[File:Cave background.png]]


`mods/tuxemon/db/environment/grass.json`
== Cavern Background ==
[[File:Cavern background.png]]


  json
== Cliff Background ==
  {
[[File:Cliff background.png]]
  "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 ==  
== Clouds Background ==
[[File:Clouds background.png]]


How do I set up the battle terrain? It depends on your "taste".
== Desert Background ==
[[File:Desert background.png]]


=== Dynamic background ===  
== Forest Background ==
It changes depending the time.
[[File:Forest background.png]]
Day:


  <properties>
== Grass Background ==
    <property name="act1" value="set_variable environment:grass"/>
[[File:Grass background.png]]
    <property name="cond1" value="not variable_set stage_of_day:night"/>
    <property name="cond2" value="not variable_set environment:grass"/>
  </properties>


Night:
== Interior Background ==
[[File:Battle bg03.png]]


  <properties>
== Night Arid Background ==
    <property name="act1" value="set_variable environment:night_grass"/>
[[File:Night arid background.png]]
    <property name="cond1" value="is variable_set stage_of_day:night"/>
    <property name="cond2" value="not variable_set environment:night_grass"/>
  </properties>


You need to replace '''grass''' and '''night_grass'''.
== Night Beach Background ==
[[File:Night beach background.png]]


=== Fixed background ===  
== Night Bridge Background ==
It doesn't change.
[[File:Night bridge background.png]]


  <properties>
== Night Canyon Background ==
    <property name="act1" value="set_variable environment:interior"/>
[[File:Night canyon background.png]]
    <property name="cond1" value="not variable_set environment:interior"/>
  </properties>


== Arid Background - "arid" ==
== Night Cliff Background ==
[[File:Arid background.png]] - [[File:Dried mud front island.png]] - [[File:Dried mud back island.png]]
[[File:Night cliff background.png]]


== Beach Background - "beach" ==
== Night Desert Background ==
[[File:Beach background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]]
[[File:Night desert background.png]]


== Bridge Background - "bridge" ==
== Night Forest Background ==
[[File:Bridge background.png]] - [[File:Cobble front island.png]] - [[File:Cobble front island.png]]
[[File:Night forest background.png]]


== Canyon Background - "canyon" ==
== Night Grass Background ==
[[File:Canyon background.png]] - [[File:Dried mud front island.png]] - [[File:Dried mud back island.png]]
[[File:Night grass background.png]]


== Cave Background - "cave" ==
== Night Ocean Background ==
[[File:Cave background.png]] - [[File:Cave front island.png]] - [[File:Cave front island.png]]
[[File:Night ocean background.png]]


== Cliff Background - "cliff" ==
== Night Plain Background ==
[[File:Cliff background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]]
[[File:Night plain background.png]]


== Clouds Background - "clouds" ==
== Night Sand Background ==
[[File:Clouds background.png]] - [[File:Sky front island.png]] - [[File:Sky back island.png]]
[[File:Night sand background.png]]


== Desert Background - "desert" ==
== Night Sea Background ==
[[File:Desert background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]]
[[File:Night sea background.png]]


== Grass Background - "grass ==
== Night Snow Background ==
[[File:Grass background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]]
[[File:Night snow background.png]]


== Interior Background - "interior" ==
== Night Snowplain Background ==
[[File:Battle bg03.png]] - [[File:Paper front island.png]] - [[File:Paper back island.png]]
[[File:Night snowplain background.png]]


== Night Arid Background - "night_arid" ==
== Night Valley Background ==
[[File:Night arid background.png]] - [[File:Dried mud front island.png]] - [[File:Dried mud back island.png]]
[[File:Night valley background.png]]


== Night Beach Background - "night_beach" ==
== Ocean Background ==
[[File:Night beach background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]]
[[File:Ocean background.png]]


== Night Bridge Background - "night_bridge" ==
== Plain Background ==
[[File:Night bridge background.png]] - [[File:Cobble front island.png]] - [[File:Cobble front island.png]]
[[File:Plain background.png]]


== Night Canyon Background - "night_canyon" ==
== Sand Background ==
[[File:Night canyon background.png]] - [[File:Dried mud front island.png]] - [[File:Dried mud back island.png]]
[[File:Sand background.png]]


== Night Cliff Background - "night_cliff" ==
== Sea Background ==
[[File:Night cliff background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]]
[[File:Sea background.png]]


== Night Desert Background - "night_desert" ==
== Snow Background ==
[[File:Night desert background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]]
[[File:Snow background.png]]


== Night Grass Background - "night_grass" ==
== Snowplain Background ==
[[File:Night grass background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]]
[[File:Snowplain background.png]]


== Night Ocean Background - "night_ocean" ==
== Stadium Background ==
[[File:Night ocean background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]]
[[File:Stadium background.png]]


== Night Plain Background - "night_plain" ==
== Sunset Background ==
[[File:Night plain background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]]
[[File:Sunset background.png]]


== Night Sea Background - "night_sea" ==
== Underwater Background ==
[[File:Night sea background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]]
[[File:Underwater background.png]]


== Night Snowplain Background - "night_snowplain" ==
== Valley Background ==
[[File:Night snowplain background.png]] - [[File:Snow front island.png]] - [[File:Snow front island.png]]
[[File:Valley background.png]]
 
== Night Valley Background - "night_valley" ==
[[File:Night valley background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]]
 
== Ocean Background - "ocean" ==
[[File:Ocean background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]]
 
== Plain Background - "plain" ==
[[File:Plain background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]]
 
== Sea Background - "sea" ==
[[File:Sea background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]]
 
== Snowplain Background - "snowplain" ==
[[File:Snowplain background.png]] - [[File:Snow front island.png]] - [[File:Snow front island.png]]
 
== Stadium Background - "stadium" ==
[[File:Stadium background.png]] - [[File:Stadium front island.png]] - [[File:Stadium back island.png]]
 
== Sunset Background - "sunset" ==
[[File:Sunset background.png]] - [[File:Terra front island.png]] - [[File:Terra back island.png]]
 
== Valley Background - "valley" ==
[[File:Valley background.png]] - [[File:Greengrass front island.png]] - [[File:Greengrass front island.png]]
 
== Unused Terrain ==
 
=== Cavern Background - "cavern" ===
[[File:Cavern background.png]] - [[File:Cave front island.png]] - [[File:Cave front island.png]]
 
=== Forest Background - "forest" ===
[[File:Forest background.png]] - [[File:Woodland.png]] - [[File:Woodland.png]]
 
=== Night Forest Background - "night_forest" ===
[[File:Night forest background.png]] - [[File:Woodland.png]] - [[File:Woodland.png]]
 
=== Night Sand Background - "night_sand" ===
[[File:Night sand background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]]
 
=== Sand Background - "sand" ===
[[File:Sand background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]]
 
=== Night Snow Background - "night_snow" ===
[[File:Night snow background.png]] - [[File:Snow front island.png]] - [[File:Snow front island.png]]
 
=== Snow Background - "snow" ===
[[File:Snow background.png]] - [[File:Snow front island.png]] - [[File:Snow front island.png]]
 
=== Underwater Background - "underwater" ===
[[File:Underwater background.png]] - [[File:Big blue front island.png]] - [[File:Big blue front island.png]]
 
== Unused Terrain islands ==
[[File:Warning front island.png]] - [[File:Warning back island.png]]
[[File:Leather front island.png]] - [[File:Leather back island.png]]
[[File:Parque front island.png]] - [[File:Parque back island.png]]
[[File:Ice front island.png]] - [[File:Ice back island.png]]
[[File:Rain front island.png]] - [[File:Rain back island.png]]

Please note that all contributions to Tuxepedia are considered to be released under the Creative Commons Attribution-ShareAlike (see Tuxepedia:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)