function Leak takes nothing returns unit
local unit u = whatever
return u
//the function stops here so there's no point in adding a "set u = null", but does it leak?
endfunction
So in the case my trigger isn't temporary and this action's leak issue has no influence, does the slightly faster fire compensates the boolean return?
One more question, using conditions in the filter of TriggerRegisterPlayerEvent leaks the boolexpr? Is it better than using a return true...
The problem is that it was already discussed on post #7, AccName quotted it on post #8, Slapshot pointed it again on post #9 and I quoted one more time on post #16.
Then you reply like there was no mention ever to Acid Bomb and you just had this great idea. Looks like someone weren't reading the...
tommerbob I appreciate your effort trying to help me but it would be infinitely better if you actually READ MY REPLIES BEFORE POSTING YOURS
I'm done with quoting and you simply ignoring it. :)
Well, it's definely a communication problem. Maybe I did not make it clear enough.
Let me try again:
>>I am already using the damage event
>>NONE of my triggers use the attack event
I know that, that's why all my spell's damage is triggered.
Anyway, making the buff placer trought a dummy...
The only problem with that Slapshot would be the lack off a debuff, for both the visual and the easy "purgeability" if you get what I mean.
But you guys gave me so much ideas that I think I finnaly got it. Back to testing! :)
Then again
What about the unit having more than one orb effect? I'm doing these to avoid the wc3 orb/buff placers limitations as I said in post number 3.
Even IF I would use just the first orb effect on inventory for each unit, when the damage event triggers, removing the other orbs won't...
Delay of Attack / Attack Orders
Unlike many people think, setting both the unit's Animation Damage Point and Attack Cooldown Time to 0.000 won't make its attack instantly.
The result will be even worse if we use the action Unit - Issue Order(Attack) Targeting A Unit
I created this tread to...
Can someone help me with this one from the start?
What does it have to do with GetEnumUnit() and GetFilterUnit()?
As I searched everywhere for some kind of tutorial and found nothing but discussions about its applications that I can't use to understand the basics of it.
WOW!
Actually the damage is being dealt instantly, you can easily check it. But the TestTimer is just going nutz! o.o'
It displays the 0.000 for the first run but then it gets completely insane and starts shooting random number from 0.750~3.500 (always with the 0.025 multiplier ofc) from what I...
Actions
Set tempPoint = Position of YourHero
Camera - Pan camera for (Owner of YourHero) to (tempPoint) over 0.00 seconds
Custom script: call RemoveLocation(udg_tempPoint)
That was harsh :P
So what you're saying is even if I don't add the triggger conditions function it will still try to check for the return of a nonexistent function??
Like:
<<
function Trig_test_Actions takes nothing returns nothing
endfunction...
Please point me out what's wrong at this map then.
In my previous post I just explained why I don't want to use either of these spells.
EDIT: Press esc and see the delay between issuing the order and the damage actually being applied.
Wow! You mean you stick to GUI?? That's something I would honestly never expect from someone with that much rep and posts. I'm not saying it's bad though.
Anyway I just can't get what's his point. I mean:
>Option 1: Put your whole code inside the Conditions Function and delete the Actions...
Can you explain me why put your whole code inside the condition function instead of the action function is better, since conditions returns a boolean and actions return nothing?
Exactly. But even if I were using spells instead of attacks to apply the buff the delay between the order been issued and the spell actually hitting is still 0.110 seconds (I think).
And I am using attack buff placers mostly because there's no spell to apply a frost/cold/slowed buff that you...
I just want someone to explain me why would use conditions instead of actions for the whole trigger be better, since conditions returns a boolean and actions return nothing?
Wouldn't it be the same the opposite way? If all my code stand in the actions function and I insert no condition function?