| 06-21-2007, 09:04 PM | #1 |
I'm a little new to the whole Jass community but am slowly picking it up. I have gone through some of the user-submitted spells and found that each spell would also create it's own special effects within the same trigger. I'm a C++ coder by trade and was thinking why not separate the two. Have a system for for SpecialEffects where Spells can call also? And could that not be the better norm? I can see one drawback is the need for more resources. An extra trigger would be needed for the special effects and whatever other requirements but it seems more interchangable if I wanted a variation of the same spell... |
| 06-22-2007, 02:00 AM | #2 |
'twas the wrong forum, sadly. At any rate, what are the advantages? By having SFX and Effects in 1 trigger, you can control things like only showing SFX if Y condition happens, and you also get more precise timing. Additionally, more globals would be needed to pass things between the two triggers, I would assume. |
| 06-22-2007, 05:26 PM | #3 |
I see your point. I was working on some spells last night and found that separating the two can be costly in speed and performance also. Of course, it all depends on the spell and how well it's implemented. I'll play around a bit more... Thanx |
| 06-22-2007, 07:31 PM | #4 |
I'm curious as to what exactly you mean/have done and tried. Post up an example if you feel like it. |
| 06-24-2007, 02:48 AM | #5 |
Thanx for asking but that's ok... I'm slowly building my libraries for what I need. |
