Tom Jones
N/A
- Reaction score
- 437
I've written everything from scratch, that's just my naming convention.
Indeed, you may get what you want with regular jass, but that is no excuse as to not make it more efficient.
Some comments on your trigger:
You use an ability and a trigger to simulate a timer! I really do wonder why you didn't use a timer?
Triggeractions do not get destroyed with DestroyTrigger(...), which means that they leak. Note that I my code, I only add a condition and then use that condition to delegate the work out to other functions.
It's not very configurable.
You use way too many BJ functions, the number of acceptable BJ functions can be counted on three fingers.
In your pullback thingie, you set the victims position four times. Why? The thread get executed lightning fast, you'll only effectively see the last position your setting.
I know GetTriggerUnit() is constant and extremely fast, but there is still no reason as to not assign it a variable on your pullback thingie.
Indeed, you may get what you want with regular jass, but that is no excuse as to not make it more efficient.
Some comments on your trigger:
You use an ability and a trigger to simulate a timer! I really do wonder why you didn't use a timer?
Triggeractions do not get destroyed with DestroyTrigger(...), which means that they leak. Note that I my code, I only add a condition and then use that condition to delegate the work out to other functions.
It's not very configurable.
You use way too many BJ functions, the number of acceptable BJ functions can be counted on three fingers.
In your pullback thingie, you set the victims position four times. Why? The thread get executed lightning fast, you'll only effectively see the last position your setting.
I know GetTriggerUnit() is constant and extremely fast, but there is still no reason as to not assign it a variable on your pullback thingie.