- Joined
- Jan 9, 2016
- Messages
- 1,487
Everything About Basic Atacks
This tutorial is mainly for older patches, new natives to modify attack values exist in the later versions.
Table of contents:
1. Basic Attacks, what are they?
2. Requirements to Detect Basic Attacks
3. Detecting Basic Attacks
4. Resetting the Basic Attack Timer
5. Various Examples of Cool Basic Attack Related Abilities
6. Credits
1. Basic Attacks, what are they?
2. Requirements to Detect Basic Attacks
3. Detecting Basic Attacks
4. Resetting the Basic Attack Timer
5. Various Examples of Cool Basic Attack Related Abilities
6. Credits
1. Basic Attacks, what are they? |
Basic attacks are the normal attacks all units uses (If their attacks aren't disabled in the object editor). At first, these basic attacks are not very modify-able because the editor doesn't actually have any natives that can change or even detect basic attacks. In this tutorial, I will explain how to do exactly that |
2. Requirements To Detect Basic Attacks |
Now keep in mind that the World Editor does not have anything that we can use to benefit from the basic attacks. Bash and Critical Strike may sound like a good idea,but using the "Ability being cast Equal to" condition for said abilities will not work. We have to get creative on this. Using Bribe's magnificent Damage Engine System, we can create a workaround on how to detect basic attacks. First of, we need to create an ability based on "Item Attack Corruption Bonus" and also a new buff that the ability will use. I recommend naming them both to "Basic Attack". Now change all the data values (Armor Penalty, Damage Bonus Dice, Enable Attack Index) to 0 but keep the duration to at least 0.01, like so: Simply add the ability to your units, and it's basic attacks will apply the Basic Attack buff that we're going to use. Of course, adding it to ALL units may sound cumbersome, but you can always make a trigger that runs on the map initialization that adds the ability to units in the playable map region OR check if units enter playable map area, and then add the ability to it. |
3. Detecting Basic Attacks |
Now we proceed onto the triggering part of this tutorial. To detect when a basic attack is landed, we have to use the following triggers:
With this trick, we can use basic attacks to make all sorts of crazy spells and abilities that relies on basic attacks to be proc'ed. We'll get to that in a moment. |
4. Resetting the Basic Attack Timer |
Some of you might not know what this is, but as a LoL player, basic attack resetting is pretty important there. These here are several examples of a Basic Attack Reset: We can easily do this with an attack speed boosting spell. By raising the attack speed it gives up to 400% (4.00 in data value) for a 0.60 seconds, a unit will mimic the art of basic attack reset. Simply remove the buff the ability gives when it lands its first basic attack using the method at No.3, and you get yourself a basic attack reset! yay! |
5. Various Examples of Cool Basic Attack Related Abilities |
All of these abilities are included in the test map down below Red = Passive abilities Blue = Active abilities
|
6. Credits |
Bribe's Damage Engine Punishing Strikes icon (-Berz-) Endorser's Determination icon (-Berz-) Colossal Smash icon (The Panda) Hammer Swing icon (NFWar) Nature's Wrath icon (Hemske) |
TO AVOID PROBLEMS, PLEASE SET THE BUFF DURATION TO 0.01 INSTEAD OF 0.05. FURTHER TESTING CONVINCED ME THAT LOWER DURATION REDUCES THE CHANCES OF CONFLICTS. THE TEST MAP BELOW USES 0.05 BUFF DURATION, SO PLEASE EDIT THAT IF YOU DOWNLOAD IT. THANK YOU FOR READING THIS OBNOXIOUSLY LARGE TEXT.
Attachments
Last edited by a moderator: