SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: Hero Ability Help

Results 1 to 2 of 2
  1. #1

    Hero Ability Help

    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>
    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.

  2. #2
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •