Voicepacks.wiki
changeset 1987 d1f476f458e8
parent 1672 41dc5e7910c0
child 1988 cf306f6c8af2
equal deleted inserted replaced
1986:399ccb203f0d 1987:d1f476f458e8
    13 
    13 
    14  * [Taunts]
    14  * [Taunts]
    15  * [https://www.hedgewars.org/node/2132 Recording Voices for Hedgewars] (guide)
    15  * [https://www.hedgewars.org/node/2132 Recording Voices for Hedgewars] (guide)
    16 
    16 
    17 == Special voicepacks ==
    17 == Special voicepacks ==
    18 The voicepack “Default” is the English default voice.
    18 The voicepack “Default” is the English default voice and is used as the ultimate fallback, if a voicepack cannot be found.
    19 
    19 
    20 Voicepacks with the name “`Default_<language>`” (where “`<language>`” is a language code) are played by default with respect to the player's language, if a localisation exists for that language. This can be applied to other voicepacks, such as `Pirate_<language>` if such a localisation was created.
    20 Voicepacks with a name of the form “`Default_<language>`” (where “Default” can be a name of your liking, and “`<language>`” is a language code) are for specifying a localized version of a voicepack. This can be applied to other voicepacks, such as `Pirate_<language>` if such a localisation was created. Voicepacks without the language code are assumed to be in English.
    21 
    21 
    22 If you specify “`Default`” as voice for a team by using Lua scripting, Hedgewars will play the default voice with respect to the player's language. If no default voice for the local language is found, Hedgewars will use the English `Default` voicepack instead. This would apply to other voice pack localisations if they are created.
    22 === In Lua scripting ===
    23 
    23 
    24 For example, in German Hedgewars, the voice “`Default_de`” will be played by default for the Default voice (if it exists). `Pirate_de` would be played for the `Pirate` voice if it exists.
    24 If in `AddTeam`, you use the special language code `qau`, then Hedgewars will try to play the matching localized version of that voicepack, with respect to the player's language (e.g. `Pirate_de`). If no localized version exists, Hedgewars falls back to the voicepack with no language code (e.g. `Pirate`).
    25 
    25 
    26 If a player or script explicitly selects a localisation, such as `Default_de`, it will be played for everyone regardless of locale.
    26 For example, if you specify “`Default_qau`” as voice in `AddTeam` in Lua, Hedgewars will play `Default_ru` for Russian players, `Default_pl` for Polish players, `Default` for English players and players with no localized version of `Default` available yet. But if you just specify `Default` in `AddTeam`, the team will always use the English `Default` voicepack for all players.
    27 
    27 
       
    28 In versions before 1.0.0, the special `qau` code did not exist and the automatic voicepack selection was kinda annoying. Hedgewars tried to force the automatic language selection pretty ruthlessly with no way to avoid it, and it was impossible to e.g. specify the `Default` voice explicitly.
    28 
    29 
    29 == Sharing voicepacks ==
    30 == Sharing voicepacks ==
    30 Custom voicepacks (voicepacks which are not part of the official Hedgewars installation) can only be heard by other players (online) if they have the voicepack installed under the same name.
    31 Custom voicepacks (voicepacks which are not part of the official Hedgewars installation) can only be heard by other players (online) if they have the voicepack installed under the same name.
    31 
    32 
    32 In case the other player does not have the custom voicepack installed, the player will hear the default voice instead.
    33 In case the other player does not have the custom voicepack installed, the player will hear the default voice instead.