How "Legion Commander" from DotA works? please.

RueK

New Member
Reaction score
11
I wanna know how how the trigger for moment of courage works, i bet is not just the "an unit begins an attack" can someone post some trigger that will help me replicating it? i liked the idea. GUI please?

also i would like to know if it can be made so it only triggers only with an autocast spell like poison arrow.

Planing to do a DPS hero and this would help, please answer me, thanks!
 

Inflicted

Currently inactive
Reaction score
63
I have no idea what that ability/item does. Please give a descriptive explanation of what it does and looks like.

Perhaps abit of reasoning behind it too would help.

also i would like to know if it can be made so it only triggers only with an autocast spell like poison arrow.
Do you mean passive on attack? Or the actual meaning of Auto-Cast, being you can right click on it and it becomes on every attack. (Like Searing Arrows for example)
And yeah you could trigger this so that it is not 'orby' and kinda stacks. But it might be difficult.
 

zero9x

Active Member
Reaction score
1
To make this spell, you need to:
Creat a dummy, delete his model and add Inventory, Locust to him.
Set Vampiric Poison ability to 0.20/0.40/0.60/0.80% Life Steal and 0.5s duration and make an item with Vampiric Poison
Set Unholy Frenzy to 3.0 Atk speed bonus and 0.5s duration (0 manacost)

Trigger:

Trigger:
  • Events
    • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to (==) True
      • (Level of Moment of the Courage for (Attacking unit)) Greater than (>) 0
    • Actions
      • Set AALoc1 = (Position of (Attacking unit))
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Random percentage) Less than or equal to (<=) (((Real((Level of Moment of the Courage for (Attacking unit)))) x 2) + 14)
          • Then - Actions
            • Unit - Create 1 Dummy for (Owner of (Attacking unit)) at AALoc1 facing Default building facing (270.0) degrees
            • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
            • Unit - Add Unholy Frenzy to (Last created unit)
            • Hero - Create Vampiric Poison Item and give it to (Last created unit)
            • Item - Set charges remaining in (Last created item) to 1
            • Unit - Set level of Conjure Image Dummy Ability for (Last created unit) to (Level of (Ability being cast) for (Attacking unit))
            • Hero - Order (Last created unit) to use (Last created item) on (Attacking unit)
            • Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Attacking unit)
          • Else - Actions
      • Custom script: call RemoveLocation(udg_AALoc1)


Good luck and have fun :)
 

Inflicted

Currently inactive
Reaction score
63
wut?
That made no sense, why would you make "Vampiric Poison" (I think you meant vampiric POTION) set to 0.5 seconds on a dummy unit?

I understand your usage of casting Unholy Frenzy for that short attack speed bonus.
But, what is "Moment of Courage"?

I still await clarification from the OP.
 

zero9x

Active Member
Reaction score
1
From newest heroes of DotA map:

Moment of Courage
Passive
When Tresdin is attacked, he has a chance to gain a moment of courage, instantly attacking again with bonus 20/40/60/80% lifesteal.
Cooldown: 0.75
• Chance: 16/18/20/22%
• Cannot proc more than once every 0.9 seconds. The lifesteal is not an orb effect.
• Moment of Courage checks for triggering whenever an attack against Tresdin begins, not when Tresdin is actually damaged by said attack.
 

Inflicted

Currently inactive
Reaction score
63
Ah that makes more sense, why not have it give that lifesteal bonus with a long amount of time, and when the attack event is complete just remove the buff?

As for cooldown, is your map only one hero per player? It could be easily done with Boolean Arrays if it only needs to be MPI.
 

RueK

New Member
Reaction score
11
To make this spell, you need to:
Creat a dummy, delete his model and add Inventory, Locust to him.
Set Vampiric Poison ability to 0.20/0.40/0.60/0.80% Life Steal and 0.5s duration and make an item with Vampiric Poison
Set Unholy Frenzy to 3.0 Atk speed bonus and 0.5s duration (0 manacost)

Trigger:

Trigger:
  • Events
    • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to (==) True
      • (Level of Moment of the Courage for (Attacking unit)) Greater than (>) 0
    • Actions
      • Set AALoc1 = (Position of (Attacking unit))
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Random percentage) Less than or equal to (<=) (((Real((Level of Moment of the Courage for (Attacking unit)))) x 2) + 14)
          • Then - Actions
            • Unit - Create 1 Dummy for (Owner of (Attacking unit)) at AALoc1 facing Default building facing (270.0) degrees
            • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
            • Unit - Add Unholy Frenzy to (Last created unit)
            • Hero - Create Vampiric Poison Item and give it to (Last created unit)
            • Item - Set charges remaining in (Last created item) to 1
            • Unit - Set level of Conjure Image Dummy Ability for (Last created unit) to (Level of (Ability being cast) for (Attacking unit))
            • Hero - Order (Last created unit) to use (Last created item) on (Attacking unit)
            • Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Attacking unit)
          • Else - Actions
      • Custom script: call RemoveLocation(udg_AALoc1)


Good luck and have fun :)

Oh sorry, i misstyped, i wanted so it can be triggered when i cast or autocast an orb based spell like poison arrows.

I know how to do it now thanks!

You know i am making a combined spell, like the Glaives of Wisdom + Moment of Courage but triggering when the hero attacks so it makes some kind of Double Attack? i think ima use the damage detect system of the Glaives of wisdom skill, but your trigger helped a lot and its a good reference i added it to my trigger list. thanks! you can now guys close this.
 

Juggernaut

I don't know what to change it to
Reaction score
33
You can just add the lifesteal and 100% attack speed on a spell book, add the spell book to the hero, disable the spell book, start a timer or wait for some seconds 0.5 or more( so that the buff doesn't last longer than one attack) and then remove the spell book.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top