- Joined
- Feb 22, 2012
- Messages
- 74
This is just a question about theory really, because one of these options is clearly much easier to work with.
My map has several heroes who each have about 6 spells, and all of the spells are triggered. I have thought about doing triggered spells in 2 different ways:
Method 1
For each ability, have a trigger beginning like this:
For each hero, have a trigger beginning like this
Method 2 has the advantage of being 1 spell trigger per hero, but each trigger is very large.
I am wondering if either method has any difference performance wise. To give you an idea of the scope, my map will have about 6 hero classes; each hero has 5 spells that are only 1-level, a single spell that has 5 levels, and a passive ability that has 5 levels.
My map has several heroes who each have about 6 spells, and all of the spells are triggered. I have thought about doing triggered spells in 2 different ways:
Method 1
For each ability, have a trigger beginning like this:
- Events
- A unit starts the effect of an ability
- Conditions
- Ability being cast is equal to X
- Actions
For each hero, have a trigger beginning like this
- Events
- A unit starts the effect of an ability
- Conditions
- Unit type of triggering unit is equal to CLASS
- Actions
- If ability being cast is equal to X, then
- else
- If ability being cast is equal to Y, then
- else
- If ability being cast is equal to Z, then
- else
Method 2 has the advantage of being 1 spell trigger per hero, but each trigger is very large.
I am wondering if either method has any difference performance wise. To give you an idea of the scope, my map will have about 6 hero classes; each hero has 5 spells that are only 1-level, a single spell that has 5 levels, and a passive ability that has 5 levels.