How to deal damage of agility?

nabbig2

New Member
Reaction score
43
How do I have an ability so that when the hero casts it, it does the hero's agility X a certain number? Thanks.
 
Event:
A unit begins casting an ability
Conditions:
Ability being cast = [Your Ability Here]
Actions:
Make Triggering unit to deal [2 x Agility of Triggering Unit] damage to Target Unit of ability being cast.
 
Here's a tutorial :D: http://www.thehelper.net/forums/showthread.php?t=50629

Here's a trigger ^_^:

Code:
[B]AgilityStrike[/B]
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Agility Strike 
    Actions
        Set Agility = (Agility of (Casting unit) (Include bonuses))
        Set Convert = (Real(Agility))
        Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 2.00) damage of attack type Spells and damage type Normal
 
just use the if/then/else action

If ((Level of Ability for (Casting Unit) Equal to 1) then do Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 2.00) damage of attack type Spells and damage type Normal else do nothing

just modify that for each level
 
If your damage is incremental, then it would be easy..

Example. if it is increment by 2 times the agility, then it can be done by this..

Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((Integer(Agility of (Triggering Unit))) x (2.00 x (Level of <ability> for (Triggering Unit))) damage of attack type Spells and damage type Normal

Also, just make sure that the Arithmetics is like this, (agility (2 x level))
 
well use the level of the ability as a constant in demage formula i cannot remember the codes im meaning something like this:

Demage=level of ability X Agility of unit X another constant

Lvl 1 demage = 1 X 20 X 10 = 200
lvl 2 demage = 2 X 21 x 10 = 420
lvl 3 demage = 3 X 22 X 10 = 660

well to be simple its like this well u can use more smart formulas to reduce the demage increament on levels
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top