[Spell] Help- Battle Trance - Troll DotA

Status
Not open for further replies.
Level 2
Joined
Sep 23, 2016
Messages
11
Hola, que tal, this is the first time I write here, I need help, as you can see I'm trying to do the skill of troll wardlord of dota2. If anyone knows how to do it please be obliged him much. The description of the spell is this:

Troll's presence on the battlefield Increases the attack speed of himself and all allied heroes

Radius
: Global

Attack Speed Bonus: 60/120/180

Duration: 5


Excuse my English. The spell could be in GUI
 
Level 11
Joined
Jun 2, 2004
Messages
849
Upon casting the spell, give the hero an attack speed aura (endurance aura will work) with the appropriate attack speed boost and as big as possible of a range. Then make the trigger wait 5 seconds, and remove endurance aura from the hero. Make sure the spell to cast it has at least a 5 second cooldown to avoid bugs.

There are some fancy things to make it better (like hiding the icon of endurance aura), but what I told you will at least give you the mechanics you asked for.


EDIT: Fixed name of ability after what poke said.
 
Last edited:
Level 13
Joined
Mar 24, 2013
Messages
1,105
Command aura will not work, as command is attack damage, not speed.

Something like Endurance Aura could work. Although I'm rather certain its not an Aura in DotA.

When troll casts the spell. It is likely a dummy unit is created and casts a bloodlust with duration of 5 seconds with only attack speed and no scaling value on all allied heroes

The dummy needs global cast range, no cd on the bloodlust, and no animation times.
 
Level 2
Joined
Sep 23, 2016
Messages
11
Sure, it's a dummy skill which would bloodlust, but I have no idea how empesarlo, someone could give me some example, please.
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
  • BT
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to BT
    • Actions
      • Set TempUnit = (Triggering unit)
      • Set TempPoint = (Position of TempUnit)
      • Unit - Create 1 Dummy for (Owner of TempUnit) at TempPoint facing Default building facing degrees
      • Set TempUnit2 = (Last Created Unit)
      • Unit - Add a X second Generic expiration timer to TempUnit2
      • Unit - Add Bloodlust to TempUnit2
      • Unit - Set level of Bloodlust for TempUnit2 to (Level of BT for TempUnit)
      • Set TempGroup = (Units in (Playable map area))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Set TempUnit3 = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (TempUnit3 is A Hero) Equal to True
              • (TempUnit3 belongs to an ally of (Owner of TempUnit)) Equal to True
              • other conditions
            • Then - Actions
              • Unit - Order TempUnit2 to Orc Shaman - Bloodlust TempUnit3
            • Else - Actions
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyGroup(udg_TempGroup)

If you know the specific other heroes you could create a unit group with them rather than going over the whole map.
 
Level 2
Joined
Sep 23, 2016
Messages
11
if.gif
other conditions

as I get that, I'm new
 
Level 41
Joined
Feb 27, 2007
Messages
5,233
Replace udg_TempPoint and udg_TempGroup with "udg_" + <the name of your variable in the variable editor>. The top two lines of the trigger he posted are the variables in question, one is a group another a point. Look in the tutorials about how to fix leaks-- basically by not including those custom script lines the game is allocating memory for objects and never getting rid of them so it will use up lots of RAM over time. Not a good thing for performance.

User
Designated
Global

Also you can right click any line in the trigger editor and disable it. The compiler will ignore all disabled lines so if there's an error you can get around it that way,
 
Level 41
Joined
Feb 27, 2007
Messages
5,233
Do you have a dummy caster unit? Did you type the variable names right? The function names? When you get an error say what line caused it and what error it was. You can select some or your trigger and right click > "copy as text" and then paste here between [trigger][/trigger] tags.
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
I think you need to spend some time exploring things on your own. Read some tutorials, try to figure things out. It's difficult to help if you have such a narrow knowledge base that some of the most basic tasks are throwing errors.
 
Status
Not open for further replies.
Top