# [Trigger]dummy(ies) casting in different points within same axis

Status
Not open for further replies.

#### Arcsol

Level 7
i don't know if you get the title at all, so I will try to explain better: what I'm trying to do is that on certain point a dummy (or dummies) will cast something that targets a point (like Shockwave) in different angles, so it may end at least like a cross. I've tried different ways:

At first I made Setting to integer A from 1 to 4, then create 1 dummy at X, facing (Integer A x 90) degrees, then I make Pick every unit of type Dummy in X area (Until this point I think I have no problem) - After that I make Add "Skill" to Picked unit and order to cast the skill at (Integer A x 90) However it didn't work. In the loop of integer A were all the triggers btw.

Then I reversed Pick and Integer A actions. I created four units at same time then Picked them and inside the unit group actions were: -Add Skill to picked unit. -For loop Integer A from 1 to 4. Then inside the Integer loop was order to cast at (Integer A x 90) and it didn't work either.

My last options were create 1 unit only and then order it inside the Integer A loop to cast the skill same as before (Integer A x 90) but it casted the spell only in one point. The other option was to create 4 dummies then set variable for each one and order each one, but I know there should be an easier option.

#### Gost

Level 10
Something to this effect should work.

• Untitled Trigger 001
• Events
• Conditions
• Actions
• For each (Integer A) from 1 to 4, do (Actions)
• Loop - Actions
• Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
• Unit - Add Shockwave to (Last created unit)
• Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 256.00 towards (90.00 x (Real((Integer A)))) degrees)

#### Arcsol

Level 7
Something to this effect should work.

• Untitled Trigger 001
• Events
• Conditions
• Actions
• For each (Integer A) from 1 to 4, do (Actions)
• Loop - Actions
• Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
• Unit - Add Shockwave to (Last created unit)
• Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 256.00 towards (90.00 x (Real((Integer A)))) degrees)

Whoa, that just did the trick! It's weird, since that what I was just thinking, maybe in the wrong order.

in any case, thanks a lot you deserve some rep

Level 10
Np man

#### Bomi

Level 4
Cleaning time!
• Untitled Trigger 001
• Events
• Conditions
• Actions
• For each (Integer A) from 1 to 4, do (Actions)
• Loop - Actions
• Set TMPLoc = Center of (Playable map area
• Unit - Create 1 Footman for Player 1 (Red) at (TMPLoc)) facing Default building facing degrees
• Unit - Add Shockwave to (Last created unit)
• Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (TMPLoc offset by 256.00 towards (90.00 x (Real((Integer A)))) degrees)
• Custom script: call RemoveLocation(udg_TMPLoc)

Last edited:

#### Arcsol

Level 7
I already did that, but thanks anyways

Status
Not open for further replies.

Replies
9
Views
922
Replies
2
Views
530
Replies
10
Views
1K
Replies
4
Views
679
Replies
11
Views
729