Editing MG/Attack-boost
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
<unit-type name="name" /> | <unit-type name="name" /> | ||
</target> | </target> | ||
− | <max-hp value="0" regeneration="0" value-percent- | + | <max-hp value="0" regeneration="0" value-percent-multipler="false" /> |
− | <max-ep value="0" regeneration="0" value-percent- | + | <max-ep value="0" regeneration="0" value-percent-multipler="false" /> |
− | <sight value="0" value-percent- | + | <sight value="0" value-percent-multipler="false" /> |
− | <attack- | + | <attack-strenght value="0" value-percent-multipler="false" /> |
− | <attack-range value="0" value-percent- | + | <attack-range value="0" value-percent-multipler="false" /> |
− | <armor value="0" value-percent- | + | <armor value="0" value-percent-multipler="false" /> |
− | <move-speed value="0" value-percent- | + | <move-speed value="0" value-percent-multipler="false" /> |
− | <production-speed value="0" value-percent- | + | <production-speed value="0" value-percent-multipler="false" /> |
<particles value="true"> | <particles value="true"> | ||
<originator-particle-file path="glow_particles.xml" /> | <originator-particle-file path="glow_particles.xml" /> | ||
Line 29: | Line 29: | ||
All tags except <tt><allow-multiple-boost></tt>, <tt><radius></tt>, and <tt><target></tt> are optional. | All tags except <tt><allow-multiple-boost></tt>, <tt><radius></tt>, and <tt><target></tt> are optional. | ||
− | The <tt>value-percent- | + | The <tt>value-percent-multipler</tt> attribute causes the value to be treated as a multiple to ''add''. So if a unit has a base speed of 100 and you set the speed value of the attack boost to 150 with <tt>value-percent-multipler</tt> true, then the speed will be increased by <math>100 \times 1.50 = 150</math> for a total of 250 speed. The value can be negative to decrease the stat by the multiple. |
− | If <tt>value-percent- | + | If <tt>value-percent-multipler</tt> is false, the stat is simple added. |
− | |||
− | |||
===allow-multiple-boosts=== | ===allow-multiple-boosts=== | ||
Line 44: | Line 42: | ||
This tag defines who gets effected by the attack boosts. The value defines the broad characteristic, either <tt>all</tt> (any unit, regardless of alliances), <tt>ally</tt> (only allied units), <tt>foe</tt> (only opposing units), or <tt>faction</tt> (only units in the same faction). | This tag defines who gets effected by the attack boosts. The value defines the broad characteristic, either <tt>all</tt> (any unit, regardless of alliances), <tt>ally</tt> (only allied units), <tt>foe</tt> (only opposing units), or <tt>faction</tt> (only units in the same faction). | ||
− | This tag | + | This tag must have a<tt>unit-type</tt> children which can limit them down to only the listed units that fit the broader characteristic previously listed. However, it's also possible to use just these broader characteristics. For example, having just <tt><target value="ally" /></tt> allows it to effect all unit types of all allies. However, you can give it <tt>unit-type</tt> children tags to allow it to effect those types of units only if they are allies. For example, you might want it to only boost allied melee units, where you'd set the target value to ally and give a child <tt>unit-type</tt> tag to each melee unit. |
The <tt>include-self</tt> tag defines whether or not the unit with the attack boost should be included as a target. | The <tt>include-self</tt> tag defines whether or not the unit with the attack boost should be included as a target. | ||
Line 51: | Line 49: | ||
===max-hp=== | ===max-hp=== | ||
− | max | + | How much to effect the max HP by. Negative numbers can decrease the skill. The <tt>regeneration</tt> attribute affects HP regeneration. |
===max-ep=== | ===max-ep=== | ||
− | + | How much to effect the max EP by. Negative numbers can decrease the skill. The <tt>regeneration</tt> attribute affects EP regeneration. | |
===sight=== | ===sight=== | ||
Line 88: | Line 86: | ||
<unit-type name="swordman" /> | <unit-type name="swordman" /> | ||
</target> | </target> | ||
− | <max-hp value="110" value-percent- | + | <max-hp value="110" value-percent-multipler="true" /> |
<max-ep value="0"/> | <max-ep value="0"/> | ||
<sight value="0"/> | <sight value="0"/> | ||
Line 110: | Line 108: | ||
<radius value="10" /> | <radius value="10" /> | ||
<target value="foe" include-self="false" /> | <target value="foe" include-self="false" /> | ||
− | <move-speed value="80" value-percent- | + | <move-speed value="80" value-percent-multipler="true" /> |
</attack-boost> | </attack-boost> | ||
</syntaxhighlight> | </syntaxhighlight> |