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 3: | Line 3: | ||
== File JSON == | == File JSON == | ||
The first step of the battle terrain is a file JSON. These can be found in mods/tuxemon/db/environment: | |||
* "slug": "grass", | * "slug": "grass", | ||
* "battle_music": "music_battle_loop", | * "battle_music": "music_battle_loop", | ||
the category: "battle_graphics": this is the main category which contains | 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_back": "gfx/ui/combat/grass_island.png", | ||
* "island_front": "gfx/ui/combat/grass_island.png", | * "island_front": "gfx/ui/combat/grass_island.png", | ||
* "background": "gfx/ui/combat/grass_background.png", | * "background": "gfx/ui/combat/grass_background.png", | ||
the subcategory "battle_graphics" > "hud" | 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_player": "gfx/ui/combat/hp_player_nohp.png", | ||
* "hud_opponent": "gfx/ui/combat/hp_opponent_nohp.png", | * "hud_opponent": "gfx/ui/combat/hp_opponent_nohp.png", | ||
* "tray_player": "gfx/ui/combat/player_party_tray.png", | * "tray_player": "gfx/ui/combat/player_party_tray.png", | ||
* "tray_opponent": "gfx/ui/combat/opponent_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 | 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_alive": "gfx/ui/icons/party/party_icon01.png", | ||
* "icon_status": "gfx/ui/icons/party/party_icon02.png", | * "icon_status": "gfx/ui/icons/party/party_icon02.png", | ||
* "icon_faint": "gfx/ui/icons/party/party_icon03.png", | * "icon_faint": "gfx/ui/icons/party/party_icon03.png", | ||
* "icon_empty": "gfx/ui/icons/party/party_empty.png" | * "icon_empty": "gfx/ui/icons/party/party_empty.png" | ||
== Set background == | == Set background == | ||
Line 56: | Line 27: | ||
=== Dynamic background === | === Dynamic background === | ||
It changes depending the time. | It changes depending the time. Night and day. | ||
Night | |||
* One called "Environment Day" | |||
* <code>set_variable environment:grass</code> | |||
* <code>is variable_set daytime:true</code> | |||
* One called "Environment Night" | |||
* <code>set_variable environment:night_grass</code> | |||
* <code>is variable_set daytime:false</code> | |||
=== Fixed background === | === Fixed background === | ||
It doesn't change. | It doesn't change. | ||
* <code>set_variable environment:grass</code> | |||
== Arid Background - "arid" == | == Arid Background - "arid" == |