Difference between revisions of "Battle Terrain"
Jaskrendix (talk | contribs) |
Jaskrendix (talk | contribs) |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Battle backgrounds are an important component during the fight. | Battle backgrounds are an important component during the fight. | ||
== Proposed Terrain Groups == | |||
=== Natural Terrains === | |||
* Grassland: Grass, Night Grass | |||
* Cave: Cave | |||
* Mountain: Cliff, Canyon, Night Cliff, Night Canyon | |||
* Desert: Arid, Desert, Night Arid, Night Desert | |||
* Beach: Beach, Night Beach | |||
* Ocean: Ocean, Sea, Night Ocean, Night Sea | |||
* Snow: Snowplain, Night Snowplain | |||
* Plain: Plain, Night Plain | |||
* Valley: Valley, Night Valley | |||
=== Urban/Artificial Terrains === | |||
* Gym / Office: Interior | |||
* City: Stadium | |||
* Bridge: Bridge, Night Bridge | |||
=== Sky "Terrains" === | |||
* Sunset: Sunset | |||
* Clouds: Clouds | |||
== File JSON == | |||
Battle Terrains in Tuxemon can be created by adding a JSON file to the <code>mods/tuxemon/db/environment</code> directory. | |||
* "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" | |||
* "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]] | |||
Here is an example of what an environment file might look like: | |||
`mods/tuxemon/db/environment/grass.json` | |||
json | |||
{ | |||
"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 == | == Set background == | ||
Line 6: | Line 76: | ||
=== Dynamic background === | === Dynamic background === | ||
It changes depending the time. Night | It changes depending the time. | ||
Day: | |||
<properties> | |||
<property name="act1" value="set_variable environment:grass"/> | |||
<property name="cond1" value="not variable_set stage_of_day:night"/> | |||
<property name="cond2" value="not variable_set environment:grass"/> | |||
</properties> | |||
Night: | |||
<properties> | |||
<property name="act1" value="set_variable environment:night_grass"/> | |||
<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'''. | |||
=== Fixed background === | === Fixed background === | ||
It doesn't change. | It doesn't change. | ||
<properties> | |||
<property name="act1" value="set_variable environment:interior"/> | |||
<property name="cond1" value="not variable_set environment:interior"/> | |||
</properties> | |||
== Arid Background - "arid" == | == Arid Background - "arid" == | ||
Line 25: | Line 107: | ||
== Beach Background - "beach" == | == Beach Background - "beach" == | ||
[[File:Beach background.png]] - [[File: | [[File:Beach background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]] | ||
== Bridge Background - "bridge" == | == Bridge Background - "bridge" == | ||
[[File:Bridge background.png]] - [[File: | [[File:Bridge background.png]] - [[File:Cobble front island.png]] - [[File:Cobble front island.png]] | ||
== Canyon Background - "canyon" == | == Canyon Background - "canyon" == | ||
Line 35: | Line 117: | ||
== Cave Background - "cave" == | == Cave Background - "cave" == | ||
[[File:Cave background.png]] - [[File:Cave front island.png]] - [[File:Cave front island.png]] | [[File:Cave background.png]] - [[File:Cave front island.png]] - [[File:Cave front island.png]] | ||
== Cliff Background - "cliff" == | == Cliff Background - "cliff" == | ||
Line 47: | Line 126: | ||
== Desert Background - "desert" == | == Desert Background - "desert" == | ||
[[File:Desert background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]] | [[File:Desert background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]] | ||
== Grass Background - "grass == | == Grass Background - "grass == | ||
Line 61: | Line 137: | ||
== Night Beach Background - "night_beach" == | == Night Beach Background - "night_beach" == | ||
[[File:Night beach background.png]] - [[File: | [[File:Night beach background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]] | ||
== Night Bridge Background - "night_bridge" == | == Night Bridge Background - "night_bridge" == | ||
[[File:Night bridge background.png]] - [[File: | [[File:Night bridge background.png]] - [[File:Cobble front island.png]] - [[File:Cobble front island.png]] | ||
== Night Canyon Background - "night_canyon" == | == Night Canyon Background - "night_canyon" == | ||
Line 74: | Line 150: | ||
== Night Desert Background - "night_desert" == | == Night Desert Background - "night_desert" == | ||
[[File:Night desert background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]] | [[File:Night desert background.png]] - [[File:Sand front island.png]] - [[File:Sand front island.png]] | ||
== Night Grass Background - "night_grass" == | == Night Grass Background - "night_grass" == | ||
Line 82: | Line 155: | ||
== Night Ocean Background - "night_ocean" == | == Night Ocean Background - "night_ocean" == | ||
[[File:Night ocean background.png]] - [[File:Water front island.png]] - [[File:Water | [[File:Night ocean background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]] | ||
== Night Plain Background - "night_plain" == | == Night Plain Background - "night_plain" == | ||
[[File:Night plain background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]] | [[File:Night plain background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]] | ||
== Night Sea Background - "night_sea" == | == Night Sea Background - "night_sea" == | ||
[[File:Night sea background.png]] - [[File: | [[File:Night sea background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]] | ||
== Night Snowplain Background - "night_snowplain" == | == Night Snowplain Background - "night_snowplain" == | ||
Line 103: | Line 170: | ||
== Ocean Background - "ocean" == | == Ocean Background - "ocean" == | ||
[[File:Ocean background.png]] - [[File:Water front island.png]] - [[File:Water | [[File:Ocean background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]] | ||
== Plain Background - "plain" == | == Plain Background - "plain" == | ||
[[File:Plain background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]] | [[File:Plain background.png]] - [[File:Grass front island.png]] - [[File:Grass front island.png]] | ||
== Sea Background - "sea" == | == Sea Background - "sea" == | ||
[[File:Sea background.png]] - [[File: | [[File:Sea background.png]] - [[File:Water front island.png]] - [[File:Water front island.png]] | ||
== Snowplain Background - "snowplain" == | == Snowplain Background - "snowplain" == | ||
Line 126: | Line 187: | ||
[[File:Sunset background.png]] - [[File:Terra front island.png]] - [[File:Terra back island.png]] | [[File:Sunset background.png]] - [[File:Terra front island.png]] - [[File:Terra back island.png]] | ||
== Underwater Background - "underwater" == | == 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]] | [[File:Underwater background.png]] - [[File:Big blue front island.png]] - [[File:Big blue front island.png]] | ||
== Unused Terrain islands == | == Unused Terrain islands == | ||
Line 137: | Line 221: | ||
[[File:Parque front island.png]] - [[File:Parque back island.png]] | [[File:Parque front island.png]] - [[File:Parque back island.png]] | ||
[[File:Ice front island.png]] - [[File:Ice back island.png]] | [[File:Ice front island.png]] - [[File:Ice back island.png]] | ||
[[File:Rain front island.png]] - [[File:Rain back island.png]] |
Latest revision as of 10:17, 7 August 2024
Battle backgrounds are an important component during the fight.
Proposed Terrain Groups[edit | edit source]
Natural Terrains[edit | edit source]
* Grassland: Grass, Night Grass * Cave: Cave * Mountain: Cliff, Canyon, Night Cliff, Night Canyon * Desert: Arid, Desert, Night Arid, Night Desert * Beach: Beach, Night Beach * Ocean: Ocean, Sea, Night Ocean, Night Sea * Snow: Snowplain, Night Snowplain * Plain: Plain, Night Plain * Valley: Valley, Night Valley
Urban/Artificial Terrains[edit | edit source]
* Gym / Office: Interior * City: Stadium * Bridge: Bridge, Night Bridge
Sky "Terrains"[edit | edit source]
* Sunset: Sunset * Clouds: Clouds
File JSON[edit | edit source]
Battle Terrains in Tuxemon can be created by adding a JSON file to the mods/tuxemon/db/environment
directory.
- "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"
- "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"
Here is an example of what an environment file might look like:
`mods/tuxemon/db/environment/grass.json`
json { "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[edit | edit source]
How do I set up the battle terrain? It depends on your "taste".
Dynamic background[edit | edit source]
It changes depending the time. Day:
<properties> <property name="act1" value="set_variable environment:grass"/> <property name="cond1" value="not variable_set stage_of_day:night"/> <property name="cond2" value="not variable_set environment:grass"/> </properties>
Night:
<properties> <property name="act1" value="set_variable environment:night_grass"/> <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.
Fixed background[edit | edit source]
It doesn't change.
<properties> <property name="act1" value="set_variable environment:interior"/> <property name="cond1" value="not variable_set environment:interior"/> </properties>