Editing XML/Skills

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 402: Line 402:
 
<sound-file path="sounds/shot.ogg"/>
 
<sound-file path="sounds/shot.ogg"/>
 
</sound>  
 
</sound>  
<attack-strength value="90"/>
+
<attack-strenght value="90"/>
 
<attack-var value="40"/>
 
<attack-var value="40"/>
 
<attack-range value="20"/>
 
<attack-range value="20"/>
 
<attack-type value="bite"/>
 
<attack-type value="bite"/>
<unit value="unit_name" amount="1" spawnAtTarget="false"/>
+
<unit value="unit_name" amount="1" spawnAtTarget="true"/>
 
<attack-fields>
 
<attack-fields>
 
<field value="land"/>
 
<field value="land"/>
Line 440: Line 440:
  
 
===unit===
 
===unit===
An optional attribute which is used to spawn units each time this attack is commenced. If this feature is not used, the tag should be excluded completely
+
A MegaGlest only feature which spawns a unit of the specified name and quantity each time this attack is commenced. If this feature is not used, the tag should be excluded completely. Currently, it is not checked if the spawned units are dead before creating more. This feature is most useful for creating a custom unit such as a suicide bomb, or such which will destroy itself eventually. Include this in the projectile-tag to let the unit spawn when the projectile arrives at the target.
"value" is the unitType that is spawned
 
"amount" is used to set the number of units that are spawned
 
"spawnAtTarget" is a boolean which let the unit spawn at the target Unit if set to true.
 
  
===attack-strength===
+
===attack-strenght===
The base damage an attack will deal, in HP. Note: in older versions you had to use the misspelling "attack-strenght" in order for the tag to work.
+
The base damage an attack will deal, in HP. Note the misspelling in the element tag, it must be spelled as "attack-strenght" in order for the tag to work.
  
 
===attack-var===
 
===attack-var===

Please note that all contributions to MegaGlest are considered to be released under the Creative Commons Attribution Share Alike (see MegaGlest:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: