I kinda have the feeling that he will need it for more events as just being attacked HaniBon...
I have heard people talk about damage detection systems, but I never used those so I don't know D:
Then use a condition.
Eventually set the SOMETHING to a "random number between 0 and
- (Integer((Life of (Attacked Unit)))) Equal to SOMETHING
(Max Life of (Attacked Unit))"
Mate, that wont work... he needs an Action not an Condition...
Could this work?
Edit: And YES I know it needs more actions, but basicly, that would work right?
- Initialization
- Events
- Map initialization
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Loop - Actions
- Trigger - Add to Your Trigger <gen> the event (Unit - (Picked unit) Takes damage)
No, that's not the problem, the problem is that with the "A unit is attacked" event, the event is registered when the unit starts the attack animation, not when it deals damage, so it makes it possible to animation cancel (spamming stop) to make it trigger way more times than it should.