does this make this event happen 10 timesFor each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Yes it does. And the integer A is a temporary variable.does this make this event happen 10 times
sorry for the noob question
the integer A is by default a global, so make sure you don't have another trigger running at the same time that also uses AYes it does. And the integer A is a temporary variable.
What exactly will this do?Trigger:
- Unit Group - Pick every unit in (Units within 512.00 of (YourUnit)) matching (((Matching unit) belongs to an enemy of YourPlayer) Equal to True)) and do (Unit Group - Add (Picked unit) to (UnitGroup))
Picks all the units within a range of YourUnit (the building?) who are an enemy of the player in matter, you can exchange "YourPlayer" with "owner of YourUnit". And what it does with the picked units is to add them to a UnitGroup, so you know which units are nearby your building.What exactly will this do?
This is leaking.Trigger:
- Actions
- Unit - Create 1 Dummy for (Owner of (YourUnit)) at (YourPosition)) facing SomeDegree
- Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units within 512.00 of (YourUnit)) matching (((Matching unit) belongs to an enemy of YourPlayer) Equal to True)) and do (Unit Group - Add (Picked unit) to (UnitGroup))
- Unit - Order Unit to DoSomeSpell (Random unit from (Last created unit group))
You could, of course save all your units and variables etc. That should work, though.