• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Triggering Optimization

Status
Not open for further replies.
Level 4
Joined
Aug 5, 2007
Messages
49
Is it better to create multiple starts effect of an ability triggers, or to create 1 and use if then else?

I have a couple abils that turn on periodic triggers, was wondering if I should truncate into 1 with if then else.
 
Level 37
Joined
Jul 22, 2015
Messages
3,485
It would be better to have one trigger that checks which ability is casted, and to then run the associated trigger with the ability. There are actually two resources in our database that does just that:
As Chaosy mentioned, the difference would be too small for you to notice if you only have a couple abilities.
 
Status
Not open for further replies.
Top