• 🏆 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!

[JASS] Having one or multiple triggers...

Status
Not open for further replies.
Level 4
Joined
Aug 12, 2004
Messages
76
When I want to have a lot of triggered spells, is it better to make seperate triggers each with the event, unit begins casting, and different conditions or one event with if/then/else functions?
 
Level 11
Joined
Feb 18, 2004
Messages
394
if/then/else is a language construct / set of statements, not a function in any sense of the word.

It depends mostly on your design needs. If you have many abilities which are all linked together in some way, then you would use a single trigger. If you have only a few abilities, each with a complex implementation, you would use multiple triggers.

Its not really a question of efficiency, but of design.
 
Status
Not open for further replies.
Top