• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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