維多利亞3開(kāi)發(fā)日志#28 | 12/16 旗幟

牧游社 牧有漢化翻譯
Victoria 3 - Dev Diary #28 – Flags
Ofaloaf, Content designer
Hi folks, welcome to another dev diary, and get hyped for what I know you're longing for: flags. I'm Ofaloaf, one of the designers on the game, and somehow they let me write a dev diary. Let's go!
大家吼啊,歡迎來(lái)到另一篇開(kāi)發(fā)日志,高興吧,這次是你們一直想要的:旗幟Flags。我是?Ofaloaf,一名游戲設(shè)計(jì)師。不知為何他們讓我寫(xiě)這期開(kāi)發(fā)日志。走起!
Let's start at the beginning. What is a flag?
讓我們從頭開(kāi)始。什么是旗幟?

A flag is a thing of beauty.
旗幟是一種美。(圖示為密歇根州州旗)
A flag is a decorative design on a bit of fabric, often used to communicate something, such as a message or identity, to the viewer. In Victoria 3, all flags are flags associated with countries. They're neat designs that serve as visual shorthand for a state, and they just look pretty too, most of the time.
旗幟是一塊紡織物上的裝飾性設(shè)計(jì),通常用于向觀者表示某些東西,比如傳遞消息或表明身份。在維多利亞3中,所有的旗幟都和國(guó)家聯(lián)系在一起。它們作為國(guó)家的視覺(jué)標(biāo)志有著簡(jiǎn)潔的設(shè)計(jì),而且看起來(lái)很漂亮,至少大多數(shù)時(shí)候是這樣。

In the Victorian era, what counts as the flag of a country was a bit… vague, depending on who you were asking. Some countries, like the United States and France, very clearly had a single flag that served as the national flag that everybody knew them by, but others weren't so clear.
在維多利亞時(shí)代,哪面旗幟能代表國(guó)家是有點(diǎn)……模糊的,這取決于你問(wèn)誰(shuí)。一些國(guó)家,比如美國(guó)和法國(guó),非常清楚地有一面國(guó)旗,大家都認(rèn)識(shí)。但其他國(guó)家的旗幟并不這么清楚。
Look - here's some period examples of what people considered Russia's flag to be:
看,這是當(dāng)時(shí)人們認(rèn)為的俄羅斯旗幟的一些例子:

Selection from 'The maritime flags of all nations', 1832, as seen on Wikimedia Commons
節(jié)選自“所有國(guó)家的航海旗”,1832年,來(lái)自維基共享資源。

Selection from 'Pavillons et cocardes des principales puissances du globe d'apres des documens officials', 1850, as seen in the David Rumsey Map Collection.
節(jié)選自“世界主要大國(guó)的旗幟和徽章,依據(jù)官方文件”,1850年,來(lái)自大衛(wèi)拉姆齊地圖集。
First thing that's noticeable is that it's not just one flag. The tricolor that is used as the Russian Federation's flag now was just one of several in use in the 19th century up through to the 1850s, as a merchant flag or civil ensign used to identify civilian ships in foreign ports. The Romanov dynasty's emblem is also used as a Russian flag, and then there's two naval jacks - the flags with the blue saltires or diagonal crosses stretching across them- which are also widely recognized. Eventually, the Russian government started trying to consolidate everything and issued a decree on June 23rd, 1858, proclaiming a single "state flag", a black-gold-white tricolor. In 1883, the white-blue-red "merchant" flag was officially accepted as a national flag to be used on special occasions, and in 1896 it wholly replaced the black-gold-white tricolor as Russia's state flag.
值得注意的第一件事就是,并非只有一面旗。現(xiàn)代俄羅斯聯(lián)邦國(guó)旗的三色旗只是19世紀(jì)初到50年代使用的幾種旗幟之一,用作商船旗或民用旗,以便在外國(guó)港口識(shí)別本國(guó)船只。羅曼諾夫王朝的紋章也被用作俄羅斯國(guó)旗。艦艏旗則有兩種——藍(lán)色圣安德魯旗或斜十字正十字交叉。最終俄國(guó)政府想統(tǒng)合這一切,并于1858年6月23日頒布法令,宣布了獨(dú)一的國(guó)旗,一面黑金白的三色旗。1883年,白藍(lán)紅的商船旗也在特殊場(chǎng)合被正式接受為國(guó)旗,并在1896年作為國(guó)旗完全取代了黑金白的三色旗。
Man, ain't that a doozy of flags to pick from! How are we supposed to pick which one to use in Victoria 3? Well, good news there - we can use more than one flag! We got dynamic flags triggered by script!
老兄,候選的旗幟有一大堆!我們要怎么決定在維多利亞3里選哪一個(gè)?好消息,我們可以用不止一面旗幟!我們有腳本觸發(fā)的動(dòng)態(tài)旗幟!

Any trigger which is valid for a country, like checking if a specific state is owned by the player or if a war is happening, can be used to trigger a different flag in the game. We've used that to spice up flag varieties in different situations - for example, a united Scandinavian monarchy has a different flag depending on whether the Danes are in charge or not:
任何對(duì)國(guó)家有效的觸發(fā)器,比如檢查某個(gè)地區(qū)是否被玩家控制,或者戰(zhàn)爭(zhēng)是否正在發(fā)生,都能在游戲中觸發(fā)不同的旗幟。我們用這個(gè)機(jī)制來(lái)為不同情況下的旗幟增添趣味:比如,一個(gè)統(tǒng)一的斯堪的納維亞君主國(guó)會(huì)依據(jù)是否由丹麥人掌權(quán)而有所不同。

Spicy! And that's on top of just using the usual checks like governments, the number of states in a country, and so forth - right, yes, you probably want to see the stars in the American flag, don't you? I know I do. They do change based on the number of states in the Union.
真香!而且除此之外還有通常的檢查,比如政體、國(guó)家里地區(qū)的數(shù)目等等。對(duì),是的,你想看美國(guó)國(guó)旗上的星星吧?我知道我想。它們確實(shí)會(huì)根據(jù)聯(lián)邦里州的數(shù)目變化。

I can taste the freedom.
我可以嘗到自由的味道。
There's even some unique flags for when one country becomes the puppet of another. In some cases, a generic "oh no I am a puppet now" design is used for the puppeted country's flag with the "master" country's flag inserted as a canton in the upper-left corner of the puppeted country's flag, while in other cases a wholly unique flag is made for a particular combination of puppeteer and puppet.
當(dāng)一個(gè)國(guó)家成為另一個(gè)國(guó)家的傀儡時(shí),甚至還有一些獨(dú)特的旗幟。某些情況下,傀儡國(guó)會(huì)有一個(gè)“哦不,我現(xiàn)在是傀儡”的通用國(guó)旗設(shè)計(jì),即在傀儡國(guó)國(guó)旗的左上角插入宗主國(guó)國(guó)旗。而另外一些情況下,我們?yōu)橐恍┨囟ǖ淖谥鲊?guó)-傀儡國(guó)的組合制作了獨(dú)有的旗幟。

There's also a sort of fallback system, to provide flags for every polity even if we can't really settle on one particular design, or if they're feisty dynamic rebels, or what-have-you. Flags can be randomly generated, with particular triggers set so some flag elements only appear if a tag is of a particular culture, religion, or ideology, among other things.
即使我們不能真正確定某個(gè)特定的設(shè)計(jì),又或者他們是活躍的動(dòng)態(tài)叛軍,或者隨便什么,游戲中也有一些兜底系統(tǒng)來(lái)為每一種政體提供旗幟。旗幟可以隨機(jī)生成,并且有特定觸發(fā)器確保某些旗幟元素只在有特定的文化、宗教、意識(shí)形態(tài)等的國(guó)家出現(xiàn)。

And, for the modders out there, it shouldn't be difficult for you folks to put together more flags if you want (and of course you want to make more flags, right?) - we use a system similar to the one Crusader King 3 uses for its coats of arms. France's default flag is a simple example of how the system works:
對(duì)于模組制作組來(lái)說(shuō),如果愿意的話,你們把更多的旗幟放進(jìn)來(lái)應(yīng)該不難(并且你們當(dāng)然會(huì)做更多的旗幟對(duì)吧?)。我們用的系統(tǒng)類似十字軍之王3的紋章。這是一個(gè)法國(guó)默認(rèn)旗幟的簡(jiǎn)單例子,用于展示這個(gè)系統(tǒng)如何工作:
Code:
FRA = {
??? pattern = "pattern_solid.tga"
??? color1 = "blue"
?
??? colored_emblem = {
??????? texture = "ce_tricolor_vertical.dds"
??????? color1 = "white"
??????? color2 = "red"
??? }
}
All that's going on there is that a plain blue field is set as the background, and then a single graphical element with the central third and right third of the tricolor as colorable sections is slapped on top, with white and red respectively added in there to make a nice and tidy blue-white-red tricolore. Magnifique!
這里只是把藍(lán)色當(dāng)作背景,然后把一個(gè)三等分、中間和右邊可著色的部件拍上,之后把白色和紅色相應(yīng)涂好,漂亮整潔的藍(lán)白紅三色就做好了!真棒!
And to plug that bad boy into the game, all you need is a little scripting in another file that goes a little something like this:
要把這壞東西放到游戲里面,你需要做的只是像這樣在另外一個(gè)文件里多寫(xiě)點(diǎn)東西:
Code:
FRA = { # France
??? flag_definition = {
??????? coa = FRA
??????? subject_canton = FRA
??????? allow_overlord_canton = yes
??????? coa_with_overlord_canton = FRA_subject???????
??????? priority = 1
??? }
??? flag_definition = {
??????? coa = FRA
??????? subject_canton = FRA
??????? allow_overlord_canton = yes???????
??????? overlord_canton_scale = { 0.337 0.337 }???????????
??????? priority = 10
??????? trigger = {
??????????? coa_def_republic_flag_trigger = yes
??????? }
??? }
??? [And so forth. Find more flags by playing the game!]???
}
You can create as many flag definitions as you like, and you can plug the same flag design into multiple definitions or make a unique one for every definition if you want to go insane scripting it all up. Triggers are straightforward to plug in (and you can script generic triggers if you don't want to write the same combination of checks over and over again). If you want to mod flags, there's a delightful amount of flexibility with this system.
你想創(chuàng)建多少旗幟定義就能創(chuàng)建多少。你可以把相同的旗幟用于不同的定義中,或者如果你想把腳本寫(xiě)瘋一點(diǎn),也可以讓所有的旗幟定義都有不同的設(shè)計(jì)。觸發(fā)器很容易插入(而且如果你不想一遍又一遍地編寫(xiě)相同的檢查組合,可以編寫(xiě)通用觸發(fā)器的腳本)。如果你想修改旗幟,這個(gè)系統(tǒng)有非常大的靈活性。
So there you have it! We got flags. We got lots of flags! We got randomized combinations of flags that go on for days! You could script more flags if you really want to poke at the game's innards! Flags.
現(xiàn)在你懂了!我們有旗幟。我們有一大堆旗幟!我們有持續(xù)數(shù)天的隨機(jī)組合的旗幟!如果真的想深入了解游戲的內(nèi)部結(jié)構(gòu),你能通過(guò)腳本創(chuàng)建更多旗幟!旗幟。
Now, as we march towards the Holiday season, the dev diaries are taking a bit of a break. We will be back in January with a brand new topic in our first dev diary for 2022. Happy Holidays and a Happy New Year!
現(xiàn)在,當(dāng)我們走向圣誕季,開(kāi)發(fā)日志要停一段時(shí)間了。我們會(huì)在一月的2022年第一篇開(kāi)發(fā)日志中帶著全新的話題回來(lái)。節(jié)日快樂(lè)!新年快樂(lè)!
翻譯:Yakuky
校對(duì):三等文官猹中堂
歡迎關(guān)注UP主和主播小牧Phenix!
歡迎關(guān)注牧游社微信公眾號(hào)和知乎專欄!微信公眾號(hào)改版為信息流,歡迎【置頂訂閱】不迷路,即時(shí)獲得推送消息!
B站在關(guān)注分組中設(shè)置為【特別關(guān)注】,將會(huì)在私信內(nèi)及時(shí)收到視頻和專欄投稿的推送!
歡迎加入牧有漢化,致力于為玩家社群提供優(yōu)質(zhì)內(nèi)容!組員急切募集中!測(cè)試群組822400145!