HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

"Burrow Warp" o.0

05-22-2004, 07:41 PM#1
pappi.chullo
I tried to make an ability with orc burrows. What it is is simply moving all the peons inside of the burrow casting the abilty into a different burrow (completely random). Problem is, it only teleports all the peons, only that 1 goes inside the burrow, while 3 stand outside the burrow.

Heres the trigger:
Burrow Warp
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Burrow Warp
Actions
Set random_burrow = (Random unit from (Units owned by (Owner of (Casting unit)) of type Burrow))
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) matching (((Unit-type of (Matching unit)) Equal to Peon) and (((Matching unit) is loaded into (Casting unit)) Equal to True))) and do (Actions)
Loop - Actions
Unit - Order (Casting unit) to Orc Burrow - Stand Down
Unit - Move (Picked unit) instantly to (Position of random_burrow)
Unit - Order random_burrow to Orc Burrow - Battle Stations
05-22-2004, 11:16 PM#2
CynicalYouth
I think your problem might be with the last line in your loop:
Unit - Order random_burrow to Orc Burrow - Battle Stations

I would use Unit - Order picked unit to right-click random_burrow.

This should work just like if you clicked a peon and right-clicked a burrow while you were playing. This may fix your problem if not I will look at it more indepth later for you.
05-22-2004, 11:20 PM#3
MantisScreamer
Try using unit groups, that should work.