PDA

View Full Version : Hero Ability Help



Broodax
11-11-2009, 01:44 AM
<?xml version="1.0" encoding="UTF-8"?>
<ability
name="Ability_Name1"

icon="icon.tga"

maxlevel="4"
requiredlevel="1,3,5,7"

actiontype="passive"
>
<onattack>
<chance threshold="0.15,0.20,0.25,0.30">
<bonusdamageadd target="source_entity" a="source_maxhealth" b="0.25" op="mult">
</chance>
</onattack>
</ability>

As you can see, its a simple ability. Its going to give you bonus damage based on your max HP. But It wont show up on my hero when I spawn it in the game.

joshfiles
11-12-2009, 10:23 PM
chances are if your ability does not show up at all in game, its because you have a syntax error. in this case it looks like you forgot to end the bonusdamageadd tag.

<bonusdamageadd target="source_entity" a="source_maxhealth" b="0.25" op="mult">

should be

<bonusdamageadd target="source_entity" a="source_maxhealth" b="0.25" op="mult"/>

the ending forward slash being the difference.