| 07-12-2007, 12:05 AM | #1 |
Hi everybody can somebody help me to understand why this spell isn't working? The things u need to know are these Torturer - Hero Dreadful Scream - Based on Howl of terror Evaluate Enemy - Normal skill (Critical) Torturer Haste - Ability made from gloves of haste,invisible and put in the hero Evaluatelevel - integer variable Trigger: i dont get it why it isn't working |
| 07-12-2007, 12:24 AM | #2 |
"Attacking Unit" does not work after a wait; the event response that does is "Triggering Unit". You'll need to use a variable. |
| 07-12-2007, 12:32 AM | #3 |
yea btw ... but it doesn't even give haste .... it doesn't increase the level ... |
| 07-12-2007, 12:48 AM | #4 |
Well, you didn't specify what wasn't working; I took a wild guess. Aside from that, it should work. Albeit in the wrong manner; the "attacked" event fires when a unit begins the attack, not at the point the damage happens. Thus, you can gain the attackspeed bonus without actually attacking a unit. |
| 07-12-2007, 12:53 AM | #5 |
always use triggering unit if its possible, you can avoid SO many cheats that way... i mean lots of cheats. The only time you shouldnt use that is things like Attacked Unit, Trained Unit, where the unit being modified is affected by Triggering Unit |
| 07-12-2007, 12:57 AM | #6 |
Well ill fix that but i still don't understand when i do the scream the units gets that buff and still it when attack doesn't get the bonus T_T |
| 07-12-2007, 01:34 AM | #7 |
Because you do a check that the attacking unit has to be your hero. Of course the haste won't be added at all to other units. |
| 07-12-2007, 11:56 AM | #8 |
its not even that the hero haves that haste and he is supposed to gain speed when attacks a unit with the Dreadful scream buff... I'm sorry its my mistake i didn't explain well on the beginning T_T |
| 07-12-2007, 01:13 PM | #9 |
Some item abilities aren't leveled properly, I'm not sure if gloves of haste is one of them though, I only know of the life and mana bonus abilities for sure. Also, attacking unit should work after a wait. You can't use triggering unit anyway because that would refer to the attacked unit. You make a bunch of rookie mistakes, though. One is using the attack event rather than damage event, but that isn't really an issue for this spell because the effect you get on this event is not stackable so spaming attacks without finishing them in order to ignore the attack cooldown gives you no benefit. A bigger problem is that you wait for 15 seconds and then remove the attack speed bonus. Now, what would happen if your hero attacked a unit, and then 14 seconds later attacked it again? He would get the speed bonus again the second time, but it would only last one second because the trigger from the earlier attack would remove it then. Not to mention that you probably attack a bunch of times, so this will just put a bunch of triggers on the stack each waiting for 15 seconds, the result being chaotic. What you need to do is use a timer, the same timer every time, so the duration renews itself with each attack. This will not be easy to accomplish if you want the spell to be multi-instanceable, though. |
| 07-12-2007, 01:27 PM | #10 |
I tried the same trigger for movement speed and its working fine ... i also think this is working because i noticed that the movement speed didn't become Green when the movement speed bonus worked but with the attack speed i cant notice a change in the attack delay ... ill try to set 300% bonus attack speed EDIT : nope i tried looks like haste is bugged in that leveling part ... but i don't get it ... |
