• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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