raul. . . . . . . .
What your saying makes absoultly no sense.
Learn to jass properly then you can help in this type of question.
firstly
SetUnitLifeBJ()
WT% your meant to DAMAGE not remove HP from the target, this will cause HORIABLE bugs like a unit dieing with no one having killed it and even crashes if the unit is linked to a trigger that requires a killer.
Worse this is a BJ call and among the worst, it links to about 3 diffrent functions so just call the proper one.
and as you might have read I noticed my mistake and also suggested a solution
also that BJ whatever you mean by it is a part of the native that returns the attacking unit and I have no idea what you find as "converted" in it
I maybe am not the best JASSer around but ur for sure the most arrogant and I'm sure ur also not the best...
P.S. I tested the condition like I wrote it returning the time taken for the trigger and there was no difference to ur version, dude....
Why dont you show off at ur smaller brother.
Your talking rubish raul. . .
and as you might have read I noticed my mistake and also suggested a solution. . .
Its obovious to anyone who has even played with GUI triggers and even people who have played WC3 alot that GetUnitDamage() or whatever only works with the single unit takes damage event since unit is attacked event only fires when a unit is about to atttack (launch projectile) not when the attack deals damage and further more it might fire with out the attacking unit even inflicting damage due to it is triggered when it starts attack animation not when the attack is launched.
also that BJ whatever you mean by it is a part of the native that returns the attacking unit. . .
BJ calls LINK to other functions that can be directly called thus adding more strain to your computer than necssary.
Some BJ calls are good to call though since they run a group of functions thus saving map size through triggering. Such BJ calls are the BJErumDestructablesInCircle() or whatever it is called and other like it.
By "converted" he means that that trigger you gave was a GUI trigger that you used "convert to text" on and posted to try and fool people into thinking you are smart since thats exactly how GUI writes.
I tested the condition like I wrote it returning the time taken for the trigger and there was no difference to ur version. . .
LOL . . . You take things too lituraly.
When he says "faster" he means in processing speed.
Call the condition 100000 times and call the other the same amount and see which is faster to stop lagging. . .
You should notice that the direct return one is way supperior.
I admit he is wrong to say it is faster since they both are phicialy as fast in game and both fire instantly but the one will not lag as much if you are "over calling" functions.
I maybe am not the best JASSer around but ur for sure the most arrogant and I'm sure ur also not the best. . .
. . . Why dont you show off at ur smaller brother.
Yes raul why do you not show off to your 3-4 year old brother or sister since atleast you can fool him or her into thinking you know triggers.
You made a complete fool of your self in this topic and if I was you I would be very imbarresed and get back to reading about jass.
PurplePoot knows a HECK of alot more about jass than you do although he should not say a function is faster since it can be misleading and understood wrongly also raul you should not rant about things you do not under stand to a great degree.
Your grammars attrotious and your perseption of the world is selfish.
I my self know jass where as my OLDER brother does not, so do not think that just because someone is younger does not mean they will not understand things.