您的位置: 單機(jī) > 攻略 > 游戲秘籍 > 攻略詳情

文明6單位創(chuàng)建教程 文明6創(chuàng)建魔法兵種全流程詳解

時(shí)間:2016-10-31 10:16:22
  • 來(lái)源:3DM-ffss0927
  • 作者:槑喵王
  • 編輯:槑喵王
0

設(shè)置單位模型

接下來(lái)的重點(diǎn)就是單位模型,畢竟模型對(duì)了才叫魔法兵種嘛

代開(kāi)Sid Meier's Civilization VI\Base\ArtDefs下的UNIT.ARTDEF

搜索UNIT_APOSTLE,這是使徒的模型代碼

<Element>

                                <m_Fields>

                                        <m_Values>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text="Scattered"/>

                                                        <m_RootCollectionName text="UnitFormationTypes"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>false</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="Formation"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="UnitCombat"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>false</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="UnitCombat"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="UnitFormationTypes"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="EscortFormation"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text="UNIT_ANCIENTEMBARK"/>

                                                        <m_RootCollectionName text="Units"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text="Units"/>

                                                        <m_ParamName text="EmbarkedUnit"/>

                                                </Element>

                                                <Element class="AssetObjects::BoolValue">

                                                        <m_bValue>false</m_bValue>

                                                        <m_ParamName text="DoNotDisplayCharges"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="UnitCulture"/>

                                                        <m_ArtDefPath text="Cultures.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="Culture"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="Era"/>

                                                        <m_ArtDefPath text="Eras.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="Era"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="Units"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="roxyUnit"/>

                                                </Element>

                                                <Element class="AssetObjects::BoolValue">

                                                        <m_bValue>false</m_bValue>

                                                        <m_ParamName text="layDeathOnDestroy"/>

                                                </Element>

                                                <Element class="AssetObjects::IntValue">

                                                        <m_nValue>-500</m_nValue>

                                                        <m_ParamName text="DisplayLevel"/>

                                                </Element>

                                        </m_Values>

                                </m_Fields>

                                <m_ChildCollections>

                                        <Element>

                                                <m_CollectionName text="Members"/>

                                                <Element>

                                                        <m_Fields>

                                                                <m_Values>

                                                                        <Element class="AssetObjects::FloatValue">

                                                                                <m_fValue>1.000000</m_fValue>

                                                                                <m_ParamName text="Scale"/>

                                                                        </Element>

                                                                        <Element class="AssetObjects::IntValue">

                                                                                <m_nValue>4</m_nValue>

                                                                                <m_ParamName text="Count"/>

                                                                        </Element>

                                                                        <Element class="AssetObjects::ArtDefReferenceValue">

                                                                                <m_ElementName text="Apostle"/>

                                                                                <m_RootCollectionName text="UnitMemberTypes"/>

                                                                                <m_ArtDefPath text="Units.artdef"/>

                                                                                <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                                                <m_TemplateName text="Units"/>

                                                                                <m_ParamName text="Type"/>

                                                                        </Element>

                                                                </m_Values>

                                                        </m_Fields>

                                                        <m_ChildCollections/>

                                                        <m_Name text="Members1"/>

                                                </Element>

                                        </Element>

                                        <Element>

                                                <m_CollectionName text="Audio"/>

                                                <Element>

                                                        <m_Fields>

                                                                <m_Values>

                                                                        <Element class="AssetObjects::StringValue">

                                                                                <m_Value text=""/>

                                                                                <m_ParamName text="XrefName"/>

                                                                        </Element>

                                                                </m_Values>

                                                        </m_Fields>

                                                        <m_ChildCollections/>

                                                        <m_Name text="Entry"/>

                                                </Element>

                                                <Element>

                                                        <m_Fields>

                                                                <m_Values>

                                                                        <Element class="AssetObjects::StringValue">

                                                                                <m_Value text="Apostle"/>

                                                                                <m_ParamName text="XrefName"/>

                                                                        </Element>

                                                                </m_Values>

                                                        </m_Fields>

                                                        <m_ChildCollections/>

                                                        <m_Name text="MISSIONARY"/>

                                                </Element>

                                        </Element>

                                </m_ChildCollections>

                                <m_Name text="UNIT_APOSTLE"/>

                        </Element>

直接把上面一大段代碼全部復(fù)制下來(lái),在下面粘貼

 <Element>

                                <m_Fields>

                                        <m_Values>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text="Scattered"/>

                                                        <m_RootCollectionName text="UnitFormationTypes"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>false</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="Formation"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="UnitCombat"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>false</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="UnitCombat"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="UnitFormationTypes"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="EscortFormation"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text="UNIT_ANCIENTEMBARK"/>

                                                        <m_RootCollectionName text="Units"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text="Units"/>

                                                        <m_ParamName text="EmbarkedUnit"/>

                                                </Element>

                                                <Element class="AssetObjects::BoolValue">

                                                        <m_bValue>false</m_bValue>

                                                        <m_ParamName text="DoNotDisplayCharges"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="UnitCulture"/>

                                                        <m_ArtDefPath text="Cultures.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="Culture"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="Era"/>

                                                        <m_ArtDefPath text="Eras.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="Era"/>

                                                </Element>

                                                <Element class="AssetObjects::ArtDefReferenceValue">

                                                        <m_ElementName text=""/>

                                                        <m_RootCollectionName text="Units"/>

                                                        <m_ArtDefPath text="Units.artdef"/>

                                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                        <m_TemplateName text=""/>

                                                        <m_ParamName text="roxyUnit"/>

                                                </Element>

                                                <Element class="AssetObjects::BoolValue">

                                                        <m_bValue>false</m_bValue>

                                                        <m_ParamName text="layDeathOnDestroy"/>

                                                </Element>

                                                <Element class="AssetObjects::IntValue">

                                                        <m_nValue>-500</m_nValue>

                                                        <m_ParamName text="DisplayLevel"/>

                                                </Element>

                                        </m_Values>

                                </m_Fields>

                                <m_ChildCollections>

                                        <Element>

                                                <m_CollectionName text="Members"/>

                                                <Element>

                                                        <m_Fields>

                                                                <m_Values>

                                                                        <Element class="AssetObjects::FloatValue">

                                                                                <m_fValue>1.000000</m_fValue>

                                                                                <m_ParamName text="Scale"/>

                                                                        </Element>

                                                                        <Element class="AssetObjects::IntValue">

                                                                                <m_nValue>4</m_nValue>

                                                                                <m_ParamName text="Count"/>

                                                                        </Element>

                                                                        <Element class="AssetObjects::ArtDefReferenceValue">

                                                                                <m_ElementName text="Apostle"/>

                                                                                <m_RootCollectionName text="UnitMemberTypes"/>

                                                                                <m_ArtDefPath text="Units.artdef"/>

                                                                                <m_CollectionIsLocked>true</m_CollectionIsLocked>

                                                                                <m_TemplateName text="Units"/>

                                                                                <m_ParamName text="Type"/>

                                                                        </Element>

                                                                </m_Values>

                                                        </m_Fields>

                                                        <m_ChildCollections/>

                                                        <m_Name text="Members1"/>

                                                </Element>

                                        </Element>

                                        <Element>

                                                <m_CollectionName text="Audio"/>

                                                <Element>

                                                        <m_Fields>

                                                                <m_Values>

                                                                        <Element class="AssetObjects::StringValue">

                                                                                <m_Value text=""/>

                                                                                <m_ParamName text="XrefName"/>

                                                                        </Element>

                                                                </m_Values>

                                                        </m_Fields>

                                                        <m_ChildCollections/>

                                                        <m_Name text="Entry"/>

                                                </Element>

                                                <Element>

                                                        <m_Fields>

                                                                <m_Values>

                                                                        <Element class="AssetObjects::StringValue">

                                                                                <m_Value text="Apostle"/>

                                                                                <m_ParamName text="XrefName"/>

                                                                        </Element>

                                                                </m_Values>

                                                        </m_Fields>

                                                        <m_ChildCollections/>

                                                        <m_Name text="MISSIONARY"/>

                                                </Element>

                                        </Element>

                                </m_ChildCollections>

                                <m_Name text="UNIT_WIZARD"/>

                        </Element>

重點(diǎn)是紫色部分的單位代碼要改成我們創(chuàng)建的自定義單位的代碼也就是UNIT_WIZARD,其他部分原封不動(dòng)即可,如果需要改變模型什么的可以參考我另外的帖子。

最后需要制定單位的圖標(biāo),單位的圖標(biāo)修改是在Sid Meier's Civilization VI\Base\Assets\UI\Icons下的Icons_UnitFlags.xml、Icons_UnitPortraits.xml、Icons_Units.xml,似乎版子里已經(jīng)有大神講過(guò)怎么修改了,這里就不贅述了。其實(shí)修改代碼很簡(jiǎn)單,無(wú)非是直接模仿原來(lái)的格式復(fù)制下來(lái)再改個(gè)名字有需要的話微調(diào)一下數(shù)值什么的。

到此為止我們就大功告成了,進(jìn)入游戲里你就會(huì)發(fā)現(xiàn)一個(gè)新的單位魔法師,可以用閃電劈人。

友情提示:支持鍵盤左右鍵"←""→"翻頁(yè)
8.1
已有1568人評(píng)分 您還未評(píng)分!
  • 類型:策略游戲
  • 發(fā)行:2K
  • 發(fā)售:2016-10-21(PC)
  • 開(kāi)發(fā):Firaxis
  • 語(yǔ)言:簡(jiǎn)中 | 繁中 | 英文 | 日文 | 多國(guó)
  • 平臺(tái):PC Switch PS4 XBOXONE
  • 標(biāo)簽:回合制,經(jīng)典4X,城市營(yíng)造

玩家點(diǎn)評(píng) 0人參與,0條評(píng)論)

收藏
違法和不良信息舉報(bào)
分享:

熱門評(píng)論

全部評(píng)論

Steam正版購(gòu)買
今日特惠文明6 風(fēng)云變幻DLC
文明6 風(fēng)云變幻DLC
-85%¥135¥19.9
立即購(gòu)買
3DM自運(yùn)營(yíng)游戲推薦 更多+