Hi, as the title implies, can you have a trigger that has too many functions, in particular if conditions?
I'm aware of the 1ghz limitation of memory usage, but I'm pretty sure that that applies to simultaneous actions or functions being called.
But for this specific type of trigger I had to use a work-about to find the hero's primary attribute.
(Since there's no function in GUI or Jass that I can recall)
I'm basically checking one by one if the hero chosen is a [specific] hero and then adding them to a unit group so I can call them later.
Eg.
If (Unit-type of (Triggering unit)) Equal to Archmage)
Then Unit Group - Add (Triggering unit) to IntHeroes
If (Unit-type of (Triggering unit)) Equal to Blood Mage)
Then Unit Group -Add (Triggering unit) to IntHeroes
...
You get the idea.
Of course if anyone has a better way around this, I'd be more than welcome to hear it.
I'm aware of the 1ghz limitation of memory usage, but I'm pretty sure that that applies to simultaneous actions or functions being called.
But for this specific type of trigger I had to use a work-about to find the hero's primary attribute.
(Since there's no function in GUI or Jass that I can recall)
I'm basically checking one by one if the hero chosen is a [specific] hero and then adding them to a unit group so I can call them later.
Eg.
If (Unit-type of (Triggering unit)) Equal to Archmage)
Then Unit Group - Add (Triggering unit) to IntHeroes
If (Unit-type of (Triggering unit)) Equal to Blood Mage)
Then Unit Group -Add (Triggering unit) to IntHeroes
...
You get the idea.
Of course if anyone has a better way around this, I'd be more than welcome to hear it.