| 03-14-2008, 06:33 PM | #1 |
Hey guys, i'm working on a critical strike aura at the persent. The only problem is, it doesn't work -.- After having read most of the tutorials (respect ^^ ) on this site, i decided to ask the real pros. So, i want to make a critical strike aura for an aura tower, which affects nearby towers in a 1000 range. DUmmy aura and a dummy buff is created, including the most triggers. But i can't make it. So, can anyone please get me out of this crappy state ? regards ;) |
| 03-14-2008, 10:03 PM | #2 |
Triggered auras are a difficult thing to do, and many things can go wrong. Your best bet is using an aura template of sorts to make your life easier. My ABuff system, for example, allows you to make triggered auras very easily. |
| 03-19-2008, 08:12 AM | #4 |
Would it not be more efficient to use a periodic timer every 0.05 seconds? Not only would a periodic timer cut a line or two off the code... but using 0.05 seconds is probably better, how often will you need to be THAT accurate? Not even physics engines need to be. |
| 03-19-2008, 10:26 AM | #5 |
lol i just think it looks prettier. just change the wait to 0.05 then. not a problem =) aura referesh rate is like 8 seconds anyway lol |
| 03-19-2008, 03:16 PM | #6 |
There are some methods for creating trigger auras i know: 1. Via events "Unit enters/leaves region". 2. Via event "Unit within range". 3. Via event "Unit learns a skill". 4. Via event "Unit is attacked". 5. Via timers (or periodical triggers). 5th method is simple and looks pretty but picking all units on map - ... ~_~' Second method is a some type of 5th method modification, but more efficient, i think. When the event triggers, we add unit to group & add ability to unit. Special timer picks every unit in group & checks for an aura buff. If unit has not buff (i.e. not in aura radius), it should be removed from the group & an ability should be removed from unit. and sorry for my english >_< |
| 03-20-2008, 07:28 AM | #7 |
well if you want it to be narrowed down, then you could use groups, add all units with the buff to the group, then check to see if they still have it. Well about the 2nd being better, i think that the game will still check every unit on the map, so i doubt its faster. Its probably negligable even if it is faster... yes, ur last part is right, and will work the same as mine, except mine has no global groups. |
