|
|
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.Code:<?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>
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.