From 3cdbb2b623c738d5bd42da285c5066f7a0d588e6 Mon Sep 17 00:00:00 2001 From: Mateusz Uczciwek Date: Sun, 2 Jun 2024 15:05:20 +0000 Subject: [PATCH] Information about naming convention in C_MUSICTHEME and oCZoneMusic --- docs/zengin/scripts/classes/c_musictheme.md | 5 ++++- docs/zengin/worlds/Classes/zCVob/zCZone/oCZoneMusic/index.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/zengin/scripts/classes/c_musictheme.md b/docs/zengin/scripts/classes/c_musictheme.md index ab04f13c8f..6516bbbb39 100644 --- a/docs/zengin/scripts/classes/c_musictheme.md +++ b/docs/zengin/scripts/classes/c_musictheme.md @@ -81,7 +81,10 @@ const INT TRANSITION_SUB_TYPE_MEASURE = 3; // Gradual transition ``` ## Name features -The musical themes of the game are played depending on the game situation. By default, the theme with the `_STD` (standard) suffix is played. In case of a threat, the `_THR` (threat) theme will be played. During the combat the `_FGT` (fight) theme plays. +The musical themes of the game are played depending on the game situation. By default, the theme with the `_STD` (standard) suffix is played. In case of a threat, the `_THR` (threat) theme will be played. During the combat the `_FGT` (fight) theme plays. + +!!! Danger + Make sure that you use proper naming convention for MusicThemes and [`oCZoneMusic`](../../worlds/Classes/zCVob/zCZone/oCZoneMusic/index.md) vobs. The theme with `OC_` prefix will play in a zone with name like `OLDCAMP_OC` or any other ending with `_OC` ```dae instance WOO_DAY_STD(C_MUSICTHEME_STANDARD) diff --git a/docs/zengin/worlds/Classes/zCVob/zCZone/oCZoneMusic/index.md b/docs/zengin/worlds/Classes/zCVob/zCZone/oCZoneMusic/index.md index 7cb69e17fa..0680d5e314 100644 --- a/docs/zengin/worlds/Classes/zCVob/zCZone/oCZoneMusic/index.md +++ b/docs/zengin/worlds/Classes/zCVob/zCZone/oCZoneMusic/index.md @@ -15,7 +15,7 @@ A VObject which defines the music to be played within its bounding box. Music zo music zone applies. If no music zone applies the music defined in the optional [`oCZoneMusicDefault`](oCZoneMusicDefault.md) is used. -The name of the music theme to be played is defined by the [`vobName`](../../index.md#vobname). +The name of the music theme to be played is defined by the [`vobName`](../../index.md#vobname). Notice that end of the name is taken as a [C_MUSICTHEME](../../../../../scripts/classes/c_musictheme.md) prefix. For example zone `OLDCAMP_OC` will play theme starting with `OC_`. !!! tip If the suffix `_NCI` or `_NCO` is added to the end of the zone name, it snows instead of rains in the zone.