in my map I have a huge damage detection trigger that checks lots of buffs, condition, absorbs damage, increse resist,.
in a few words, all skills related with damage are inside this trigger.
whe I open this trigger it takes 2 seconds to open, and Im starting to think that I only have 4 heroes yet, and in future it will take like 10 secs to open.
my qustion is:
can I use
to split my huge trigger in a lot of small ones?
question 2, all units named as triggering unit in the first trigger will also be the triggering unit in the last trigger of my trigger sequence?
Because Im afraid that if I split my triggers it won't work if two units takes damage at the same time.
question 3: the new trigger runs when all events of the first trigger ends or in the EXACT moment it is ordered to run ?
example:
trigger 1 starts running
trigger 1 orders trigger 2 to run
trigger 2 starts running
trigger 2 orders trigger 3 to run
trigger 3 starts running
trigger 3 finishes running
trigger 2 finishes running
trigger 1 finishes running
problem solved, I did this:
I place 1 footman, 1 knight, 1 priest in the same place, and then:
when My units were killed I received my messages in this sequence:
priest
priest
priest
footman
footman
footman
knight
knight
knight
it means that when I run trigger that trigger runs in the middle of my trigger.
in a few words, all skills related with damage are inside this trigger.
whe I open this trigger it takes 2 seconds to open, and Im starting to think that I only have 4 heroes yet, and in future it will take like 10 secs to open.
my qustion is:
can I use
Trigger:
- run trigger (ignoring conditions)
to split my huge trigger in a lot of small ones?
question 2, all units named as triggering unit in the first trigger will also be the triggering unit in the last trigger of my trigger sequence?
Because Im afraid that if I split my triggers it won't work if two units takes damage at the same time.
question 3: the new trigger runs when all events of the first trigger ends or in the EXACT moment it is ordered to run ?
example:
trigger 1 starts running
trigger 1 orders trigger 2 to run
trigger 2 starts running
trigger 2 orders trigger 3 to run
trigger 3 starts running
trigger 3 finishes running
trigger 2 finishes running
trigger 1 finishes running
problem solved, I did this:
I place 1 footman, 1 knight, 1 priest in the same place, and then:
Trigger:
- testando
- Events
- Time - Elapsed game time is 3.00 seconds
- Conditions
- Actions
- Unit - Cause Footman 0000 <gen> to damage circular area after 0.00 seconds of radius 500.00 at (Center of (Playable map area)), dealing 1000000000.00 damage of attack type Spells and damage type Normal
- Events
Trigger:
- tsting
- Events
- Unit - A unit Dies
- Conditions
- Actions
- Set x = (Triggering unit)
- Game - Display to (All players) the text: (Name of (Triggering unit))
- Trigger - Run testingo <gen> (ignoring conditions)
- Events
Trigger:
- testingo
- Events
- Conditions
- Actions
- Game - Display to (All players) the text: (Name of (Triggering unit))
- Game - Display to (All players) the text: (Name of x)
when My units were killed I received my messages in this sequence:
priest
priest
priest
footman
footman
footman
knight
knight
knight
it means that when I run trigger that trigger runs in the middle of my trigger.