| 01-11-2009, 07:56 AM | #1 |
Yeah, I'd like to know... |
| 01-11-2009, 07:58 AM | #2 |
Name me one instance where you think you need them and I'll tell you why you don't. |
| 01-11-2009, 08:01 AM | #3 |
I know I can use timers instead of death and range events and such, but yeah... Dialog button events? [offtopic]Why is there a new AotZ logo? :o[/offtopic] |
| 01-11-2009, 08:01 AM | #4 | |
No, I'm serious. It depends on what you're using them for. Quote:
|
| 01-11-2009, 08:04 AM | #5 |
How about damage detection? I'm just curious, no offense intended Dusk. Thanks! |
| 01-11-2009, 08:10 AM | #6 |
There are multiple options for DDS':
|
| 01-11-2009, 08:33 AM | #7 | |
Quote:
and what to do when you only need DamageDetection for ..lets say one spell, to know when some spell-missile hits the target ..? |
| 01-11-2009, 08:41 AM | #8 |
Depending on the spell, you could just use a timer checking for a buff it leaves? |
| 01-11-2009, 08:47 AM | #9 | |
Quote:
If you need to detect when your hero attacks and deals damage to a unit for a custom on-attack passive, you will need a DDS. It is not a problem to use one, not at all. Some DDS' can be installed as necessary, and others are designed to be integrated into the map (but with the reward of being incredibly easy to use and control your map with). Is it a problem to use a system for one spell? No way! That the system exists means that if you do want to use it again, it's very easy to do so and you don't have to waste or copy/paste code! That's a good thing! And seriously, the 4kb overhead (Let's point out that leaking a rect is already worse than that) is nothing. People overreact with the events, they're by far the lesser of the evils, if you can call them an evil at all in the first place. |
| 01-11-2009, 08:53 AM | #10 |
I was serious about dialog buttons :s |
| 01-11-2009, 01:27 PM | #11 |
Doing any sort of silly thing for dialogs is... silly. Notice this: You can only show one dialog per player |
| 01-11-2009, 01:35 PM | #12 | |
Quote:
IsUnitInRange on "real" projectiles ..doesnt work .. |
| 01-11-2009, 01:37 PM | #13 |
Not like dynamic triggers would be any help in that case. |
| 01-11-2009, 02:43 PM | #14 | |
You can avoid dynamic triggers in all cases (or in most cases) except when making damage detection, in which case Quote:
Rising_Dusk advices the use of DD systems for such a case, whereas I don't see any real advantage for doing so: http://www.wc3campaigns.net/showthread.php?t=104036 For more information please see thread: http://www.wc3campaigns.net/showthre...+triggers+evil There is no specific scheme for avoiding dynamic triggers, it all depends on the case. See some of my spell, The "Stupid Penguin" was my first spell where I avoided the use of dynamic triggers using Table and TimerUtils. |
| 01-11-2009, 04:27 PM | #15 | ||||
Quote:
Quote:
______________________________________________
Quote:
Quote:
|
