关于帝国3的xxxxx_snds.xml定义单位语音
如果你修改过帝国3,你应该会发现在sound文件夹里面的SoundXML.bar、SoundXML2.bar、SoundXML3.bar中有七八百个xxxxx_snds.xml用来定义单位语音;其实不需要每个单位都创建一个xml,事实上只需要一个xml就足够了。<br/>像protoy.xml、techtreey.xml那样,将<protounit name='xxxxx'>...</protounit>合在一起就可以了(全部放在<protounitsounddef>...</protounitsounddef>里面)
<br/>例如下面就是定义几十个单位的语音(将几十个文件合在一起了)
<br/>
<table border=1 cellspacing=0 cellpadding=0 class='txtbox'>
<tr class='txtTop'>
<td class='txtTopLeft'/>
<td class='txtTopText'>
<span class='TextColor'> KafuuChino_snds.xml- 记事本</span></td>
<td class='Text__'>
<span class='Color__'><b>__</b></td>
<td class='Textsquare'>
<span class='SquareColor'>□</td>
<td class='TextX'>
<span class='ColorX'>X</td>
<td class='txtTopRight'/>
</tr>
<tr class='SecondHeight'>
<td class='SecondLeft'/>
<td class='SecondText' colspan="4">
<span class='SecondTextColor'>文件(F) 编辑(E) 格式(O) 查看(V) 帮助(H)</td>
<td class='SecondRight'/>
</tr>
<tr class='ThirdHeight'>
<td class='ThirdLeft'/>
<td class='ThirdCenter' colspan="4"></td>
<td class='ThirdRight'/>
</tr>
<tr class='Left' style='height:1600.1pt'>
<td class='EditorLeft' rowspan="3"/>
<td class='Editorbackground' colspan="4">
<div contentEditable='true' class='EditorDiv' style='height:1600.1pt;overflow-y:auto;'><pre><?xml version="1.0" encoding="utf-8"?>
<protounitsounddef><span style="color:blue">
<protounit name='KafuuChino'>
<soundtype name='Select'>
<soundset name='ChinoSelect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='ChinoGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='ChinoDeath'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='ChinoRevived'/>
</soundtype>
<soundtype name='Acknowledge'>
<targetlogic>
<choice name='default'>
<soundset name='ChinoAcknowledge'/>
</choice>
<choice name='enemy'>
<soundset name='ChinoAttack'/>
</choice>
<!--
<choice name='build'/>
<choice name='Huntable'/>
<choice name='Tree'/>
<choice name='AbstractMine'/>
<choice name='AbstractFarm'/>
<choice name='AbstractResourceCrate'/>
<choice name='AbstractFruit'/>
-->
</targetlogic>
</soundtype>
<soundtype name='Claim'>
<soundset name='ChinoClaim'/>
</soundtype>
<soundtype name='KnockOut'>
<soundset name='ChinoDisabled'/>
</soundtype>
<soundtype name='KnockOutRevived'>
<soundset name='ChinoRevived2'/>
</soundtype>
</protounit></span><span style="color:gold">
<protounit name='LightHouse'>
<soundtype name='Select'>
<soundset name='UI_Building_Economic'/>
</soundtype>
<soundtype name='Death'>
<soundset name='BuildingDestruction'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='UI_Building_Economic'/>
</soundtype>
</protounit></span><span style="color:green">
<protounit name='SkyPassage'>
<soundtype name='Select'>
<soundset name='UI_Building_Economic'/>
</soundtype>
<soundtype name='Death'>
<soundset name='BuildingDestruction'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='UI_Building_Economic'/>
</soundtype>
</protounit></span><span style="color:cyan">
<ProtoUnit name ='PlentyVault'>
<soundtype name='Creation'>
<soundset name='PlentyBirth'/>
</soundtype>
<SoundType name ='Select'>
<SoundSet name ='PlentyBirth'></SoundSet>
</SoundType>
<SoundType name ='Exists'>
<SoundSet name ='PlentyExist'></SoundSet>
</SoundType>
</ProtoUnit></span><span style="color:Purple">
<protounit name='Temple'>
<soundtype name='Select'>
<soundset name='UI_Building_Military'/>
</soundtype>
<soundtype name='Death'>
<soundset name='BuildingDestruction'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='UI_Building_Military'/>
</soundtype>
</protounit></span><span style="color:red">
<protounit name='TempleGold'>
<soundtype name='Select'>
<soundset name='UI_Building_Military'/>
</soundtype>
<soundtype name='Death'>
<soundset name='BuildingDestruction'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='UI_Building_Military'/>
</soundtype>
</protounit></span>
<protounit name='Earthquake1'>
<soundtype name='Exists'>
<soundset name='EarthQuakee'/>
</soundtype>
</protounit>
<protounit name='Earthquake2'>
<soundtype name='Exists'>
<soundset name='EarthQuakee'/>
</soundtype>
</protounit>
<protounit name='AtlanteanFort'>
<soundtype name='Select'>
<soundset name='Wonder'/>
</soundtype>
<soundtype name='Death'>
<soundset name='WonderDeath'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='Wonder'/>
</soundtype>
</protounit>
<protounit name='Pig'>
<soundtype name='Select'>
<soundset name='PigSelect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='PigGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='PigDeath'/>
</soundtype>
<soundtype name='Acknowledge'>
<soundset name='PigAcknowledge'/>
</soundtype>
<SoundType name ='Ambient'>
<SoundSet name ='PigAmbient'></SoundSet>
</SoundType>
</protounit>
<protounit name='Tornado'>
<soundtype name='Death'>
<soundset name='TornadoDeath'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='TornadoBirth'/>
</soundtype>
<soundtype name='Exists'>
<soundset name='TornadoExist'/>
</soundtype>
</protounit>
<protounit name='Tornado2'>
<soundtype name='Death'>
<soundset name='TornadoDeath'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='TornadoBirth'/>
</soundtype>
<soundtype name='Exists'>
<soundset name='TornadoExist'/>
</soundtype>
</protounit>
<protounit name='TornadoLifespan20'>
<soundtype name='Death'>
<soundset name='TornadoDeath'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='TornadoBirth'/>
</soundtype>
<soundtype name='Exists'>
<soundset name='TornadoExist'/>
</soundtype>
</protounit>
<protounit name='Kastor'>
<soundtype name='Select'>
<soundset name='KastorSelect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='KastorGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='KastorDie'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='HeroBirth'/>
</soundtype>
<soundtype name='Acknowledge'>
<targetlogic>
<choice name='default'>
<soundset name='KastorMove'/>
</choice>
<choice name='enemy'>
<soundset name='KastorAttack'/>
</choice>
<!--
<choice name='build'/>
<choice name='Huntable'/>
<choice name='Tree'/>
<choice name='AbstractMine'/>
<choice name='AbstractFarm'/>
<choice name='AbstractResourceCrate'/>
<choice name='AbstractFruit'/>
-->
</targetlogic>
</soundtype>
<soundtype name='Claim'>
<soundset name='HeroRevived'/>
</soundtype>
<soundtype name='KnockOut'>
<soundset name='KastorGrunt'/>
</soundtype>
<soundtype name='KnockOutRevived'>
<soundset name='HeroRevived'/>
</soundtype>
</protounit>
<protounit name='ArkantosGod'>
<soundtype name='Select'>
<soundset name='ArkantosSelect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='ArkantosGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='ArkantosDie'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='ArkantosArrive'/>
</soundtype>
<soundtype name='Acknowledge'>
<targetlogic>
<choice name='default'>
<soundset name='ArkantosMove'/>
</choice>
<choice name='enemy'>
<soundset name='ArkantosAttack'/>
</choice>
<!--
<choice name='build'/>
<choice name='Huntable'/>
<choice name='Tree'/>
<choice name='AbstractMine'/>
<choice name='AbstractFarm'/>
<choice name='AbstractResourceCrate'/>
<choice name='AbstractFruit'/>
-->
</targetlogic>
</soundtype>
<soundtype name='Claim'>
<soundset name='HeroRevived'/>
</soundtype>
<soundtype name='KnockOut'>
<soundset name='ArkantosGrunt'/>
</soundtype>
<soundtype name='KnockOutRevived'>
<soundset name='HeroRevived'/>
</soundtype>
</protounit>
<protounit name='Arkantos'>
<soundtype name='Select'>
<soundset name='ArkantosSelect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='ArkantosGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='ArkantosDie'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='ArkantosArrive'/>
</soundtype>
<soundtype name='Acknowledge'>
<targetlogic>
<choice name='default'>
<soundset name='ArkantosMove'/>
</choice>
<choice name='enemy'>
<soundset name='ArkantosAttack'/>
</choice>
<!--
<choice name='build'/>
<choice name='Huntable'/>
<choice name='Tree'/>
<choice name='AbstractMine'/>
<choice name='AbstractFarm'/>
<choice name='AbstractResourceCrate'/>
<choice name='AbstractFruit'/>
-->
</targetlogic>
</soundtype>
<soundtype name='Claim'>
<soundset name='HeroRevived'/>
</soundtype>
<soundtype name='KnockOut'>
<soundset name='ArkantosGrunt'/>
</soundtype>
<soundtype name='KnockOutRevived'>
<soundset name='HeroRevived'/>
</soundtype>
</protounit>
<protounit name='TiTanBird'>
<soundtype name='Select'>
<soundset name='birdtitanselect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='birdtitanGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='birdtitanDie'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='birdtitanbirth'/>
</soundtype>
<soundtype name='Acknowledge'>
<targetlogic>
<choice name='default'>
<soundset name='birdtitanMove'/>
</choice>
<choice name='enemy'>
<soundset name='birdtitanselect'/>
</choice>
</targetlogic>
</soundtype>
</protounit>
</protounitsounddef></pre></div></td>
<td class='EditorRight' rowspan="3"/>
</tr>
<tr class='ButtonHeight'>
<td class='ButtonWidth' colspan="4"></td>
</tr>
</table> <h3>例如这里有两个定义单位语音的xml</h3>
<br/>
<table border=1 cellspacing=0 cellpadding=0 class='txtbox'>
<tr class='txtTop'>
<td class='txtTopLeft'/>
<td class='txtTopText'>
<span class='TextColor'> Pig_snds.xml - 记事本</span></td>
<td class='Text__'>
<span class='Color__'><b>__</b></td>
<td class='Textsquare'>
<span class='SquareColor'>□</td>
<td class='TextX'>
<span class='ColorX'>X</td>
<td class='txtTopRight'/>
</tr>
<tr class='SecondHeight'>
<td class='SecondLeft'/>
<td class='SecondText' colspan="4">
<span class='SecondTextColor'>文件(F) 编辑(E) 格式(O) 查看(V) 帮助(H)</td>
<td class='SecondRight'/>
</tr>
<tr class='ThirdHeight'>
<td class='ThirdLeft'/>
<td class='ThirdCenter' colspan="4"></td>
<td class='ThirdRight'/>
</tr>
<tr class='Left' style='height:460.1pt'>
<td class='EditorLeft' rowspan="3"/>
<td class='Editorbackground' colspan="4">
<div contentEditable='true' class='EditorDiv' style='height:460.1pt;overflow-y:auto;'><pre><?xml version="1.0" encoding="utf-8"?>
<protounitsounddef>
<protounit name='Pig'>
<soundtype name='Select'>
<soundset name='PigSelect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='PigGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='PigDeath'/>
</soundtype>
<soundtype name='Acknowledge'>
<soundset name='PigAcknowledge'/>
</soundtype>
<SoundType name ='Ambient'>
<SoundSet name ='PigAmbient'></SoundSet>
</SoundType>
</protounit>
</protounitsounddef></pre></div></td>
<td class='EditorRight' rowspan="3"/>
</tr>
<tr class='ButtonHeight'>
<td class='ButtonWidth' colspan="4"></td>
</tr>
</table>
<br/>
<table border=1 cellspacing=0 cellpadding=0 class='txtbox'>
<tr class='txtTop'>
<td class='txtTopLeft'/>
<td class='txtTopText'>
<span class='TextColor'> Tornado_snds.xml - 记事本</span></td>
<td class='Text__'>
<span class='Color__'><b>__</b></td>
<td class='Textsquare'>
<span class='SquareColor'>□</td>
<td class='TextX'>
<span class='ColorX'>X</td>
<td class='txtTopRight'/>
</tr>
<tr class='SecondHeight'>
<td class='SecondLeft'/>
<td class='SecondText' colspan="4">
<span class='SecondTextColor'>文件(F) 编辑(E) 格式(O) 查看(V) 帮助(H)</td>
<td class='SecondRight'/>
</tr>
<tr class='ThirdHeight'>
<td class='ThirdLeft'/>
<td class='ThirdCenter' colspan="4"></td>
<td class='ThirdRight'/>
</tr>
<tr class='Left' style='height:350.1pt'>
<td class='EditorLeft' rowspan="3"/>
<td class='Editorbackground' colspan="4">
<div contentEditable='true' class='EditorDiv' style='height:350.1pt;overflow-y:auto;'><pre><?xml version="1.0" encoding="utf-8"?>
<protounitsounddef>
<protounit name='Tornado'>
<soundtype name='Death'>
<soundset name='TornadoDeath'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='TornadoBirth'/>
</soundtype>
<soundtype name='Exists'>
<soundset name='TornadoExist'/>
</soundtype>
</protounit>
</protounitsounddef></pre></div></td>
<td class='EditorRight' rowspan="3"/>
</tr>
<tr class='ButtonHeight'>
<td class='ButtonWidth' colspan="4"></td>
</tr>
</table>
<br/>
<br/><h3>接下来我要将这两个合在一起</h3>
<br/>
<table border=1 cellspacing=0 cellpadding=0 class='txtbox'>
<tr class='txtTop'>
<td class='txtTopLeft'/>
<td class='txtTopText'>
<span class='TextColor'> Pig_snds.xml - 记事本</span></td>
<td class='Text__'>
<span class='Color__'><b>__</b></td>
<td class='Textsquare'>
<span class='SquareColor'>□</td>
<td class='TextX'>
<span class='ColorX'>X</td>
<td class='txtTopRight'/>
</tr>
<tr class='SecondHeight'>
<td class='SecondLeft'/>
<td class='SecondText' colspan="4">
<span class='SecondTextColor'>文件(F) 编辑(E) 格式(O) 查看(V) 帮助(H)</td>
<td class='SecondRight'/>
</tr>
<tr class='ThirdHeight'>
<td class='ThirdLeft'/>
<td class='ThirdCenter' colspan="4"></td>
<td class='ThirdRight'/>
</tr>
<tr class='Left' style='height:750.1pt'>
<td class='EditorLeft' rowspan="3"/>
<td class='Editorbackground' colspan="4">
<div contentEditable='true' class='EditorDiv' style='height:750.1pt;overflow-y:auto;'><pre><?xml version="1.0" encoding="utf-8"?>
<protounitsounddef>
<protounit name='Pig'>
<soundtype name='Select'>
<soundset name='PigSelect'/>
</soundtype>
<soundtype name='Grunt'>
<soundset name='PigGrunt'/>
</soundtype>
<soundtype name='Death'>
<soundset name='PigDeath'/>
</soundtype>
<soundtype name='Acknowledge'>
<soundset name='PigAcknowledge'/>
</soundtype>
<SoundType name ='Ambient'>
<SoundSet name ='PigAmbient'></SoundSet>
</SoundType>
</protounit>
<protounit name='Tornado'>
<soundtype name='Death'>
<soundset name='TornadoDeath'/>
</soundtype>
<soundtype name='Creation'>
<soundset name='TornadoBirth'/>
</soundtype>
<soundtype name='Exists'>
<soundset name='TornadoExist'/>
</soundtype>
</protounit>
</protounitsounddef></pre></div></td>
<td class='EditorRight' rowspan="3"/>
</tr>
<tr class='ButtonHeight'>
<td class='ButtonWidth' colspan="4"></td>
</tr>
</table> 之前有想过这样,没想到真的可以{:4_118:}
页:
[1]