- Joined
- Jun 27, 2010
- Messages
- 2,710
Hi, I have an item that when you buy it you automatically use it and the trigger repairs all buildings with some percentage. It's based on item agility gain. Also I set the agility gain of item agility gain to 0.But this here is not working, can you tell me why?
-
repair buildingss
-
Events
- Unit - A unit Uses an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Repair
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A structure) Equal to True) and ((Race of (Owner of (Triggering unit))) Equal to (Race of (Matching unit))))) and do (Actions)
-
Loop - Actions
- Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) + 90.00)%
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A structure) Equal to True) and ((Race of (Owner of (Triggering unit))) Equal to (Race of (Matching unit))))) and do (Actions)
-
Events