帝国3制作临时性科技(卡片)
不知道各位有没有想过在帝国3制作临时效果科技,例如士兵在1分钟内增加20%生命值,30秒内增加移动速度、攻击力、视野、采集效率等功能都是可以实现的。虽然帝国3没有定义科技持续时间这个功能,但是不代表不能实现,只要换个思维去思考就可以达成了。<br/>
<br/>
方法:运送一个隐身单位单位,然后给这个单位设定类型为air,视野为0,增加光环,增加<Flag>NotSelectable</Flag>不可选取、<Flag>Invulnerable</Flag>不可受到伤害、<Flag>DoNotShowOnMiniMap</Flag>在小地图不显示这个单位等属性,最后用Lifespan让其自动死亡。
<br/>
<br/>
<table border=1 cellspacing=0 cellpadding=0 class='txtbox' style='table-layout:fixed;word-wrap:break-word;word-break;break-all;'>
<tr class='txtTop'>
<td class='txtTopLeft'/>
<td class='txtTopText'>
<span class='TextColor'> protoy.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:400.1pt'>
<td class='EditorLeft' rowspan="3"/>
<td class='Editorbackground' colspan="4">
<div contentEditable='true' class='EditorDiv' style='height:400.1pt;overflow-y:auto;'><pre> <Unit id="0" name="test1234">
<DBID>20</DBID>
<ObstructionRadiusX>0.1000</ObstructionRadiusX>
<ObstructionRadiusZ>0.1000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MovementType>air</MovementType>
<AnimFile>effects\projectiles\musket_ball.xml</AnimFile>
<Lifespan>60.0000</Lifespan>
<LOS>0.0000</LOS>
<UnitType>EmbellishmentClass</UnitType>
<Flag>NotSelectable</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotShowOnMiniMap</Flag>
<Tactics>test1234.tactics</Tactics>
</Unit></pre></div></td>
<td class='EditorRight' rowspan="3"/>
</tr>
<tr class='ButtonHeight'>
<td class='ButtonWidth' colspan="4"></td>
</tr>
</table>
<br/>
<br/>这个是速度光环:范围1024为全屏(地图大小最大为1024)
<br/>
<table border=1 cellspacing=0 cellpadding=0 class='txtbox'>
<tr class='txtTop'>
<td class='txtTopLeft'/>
<td class='txtTopText'>
<span class='TextColor'> test1234.tactics - 记事本</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:400.1pt'>
<td class='EditorLeft' rowspan="3"/>
<td class='Editorbackground' colspan="4">
<div contentEditable='true' class='EditorDiv' style='height:400.1pt;overflow-y:auto;'><pre><?xml version="1.0" encoding="utf-8"?>
<tactics>
<action>
<name>Bonus</name>
<type>AutoRangedModify</type>
<modifyabstracttype>Unit</modifyabstracttype>
<active>1</active>
<maxrange>1024</maxrange>
<persistent>1</persistent>
<modifytype>Speed</modifytype>
<modifymultiplier>1.25</modifymultiplier>
<targetenemy>0</targetenemy>
<modifyexclusive>1</modifyexclusive>
</action>
<tactic>
Normal
<action>Bonus</action>
</tactic>
</tactics></pre></div></td>
<td class='EditorRight' rowspan="3"/>
</tr>
<tr class='ButtonHeight'>
<td class='ButtonWidth' colspan="4"></td>
</tr>
</table>
<br/>
<br/>
<br/>
<br/>
<br/>如果是科技,不是船运,那么还应该给那个科技添加<Flag>CheckLandHCGatherPoint</Flag>检测是否有主城集结点,以防在没有主城集结点的时候误点。 厉害,我也想过弄一个日本忍者傀儡术 千鹤寻 发表于 2020-2-15 00:30
厉害,我也想过弄一个日本忍者傀儡术
说下你的想法吧,说不定我能帮你实现{:4_88:}
之前我差点就弄成了无限自动循环科技,可惜有延迟bug
页:
[1]