Hi, i'm doing an AoS map and try to create a skill: depending how many enemy unit the attacking creature has around it, more powerful your cleave attack will be.
So... 1 unit around = 0 cleave. 10 units = 40% cleave, etc...
I did a trigger and expected it works and, in fact, works in some way.... But, when there are a bunch of units around the unit, the game lag as hell! Here is the trigger
So... 1 unit around = 0 cleave. 10 units = 40% cleave, etc...
I did a trigger and expected it works and, in fact, works in some way.... But, when there are a bunch of units around the unit, the game lag as hell! Here is the trigger
-
Iron Cleaver
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Level of Iron Cleaver (Ironwood)(DUMMY) for (Attacking unit)) Greater than 0
-
Actions
- Set IronCleaverGroup = (Number of units in (Units within 425.00 of (Position of (Attacking unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True)))
- Unit - Add Iron Cleaver to (Attacking unit)
- Unit - Set level of Iron Cleaver for (Attacking unit) to ((Level of Iron Cleaver (Ironwood)(DUMMY) for (Attacking unit)) x IronCleaverGroup)
-
Events