• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Moving newly created units?

Status
Not open for further replies.

bgc

bgc

Level 1
Joined
Nov 27, 2008
Messages
5
Ive been trying to make a small battle but I cant figure out the action that will do this. I want to create 8 men in a region then move them all to Attack-Move To another region. This is what I found that could, but it doesn't work properly.
  • Rebel Spawn
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 8 Rebel Footman for Player 11 (Dark Green) at (Random point in Rebel footman spawn <gen>) facing 240.00 degrees
      • Unit Group - Order (Units in Rebel footman spawn <gen>) to Attack-Move To (Random point in Imperial Base <gen>)
Instead of moving all 8 it will move 4 or sometimes 5. What do I have to change?
 
Level 6
Joined
Jan 2, 2007
Messages
189
the unit group-order trigger has limits i believe to how many units can be ordered. it would be best to do a trigger like this:
Rebel Spawn

  • Events
    • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
    • Unit - Create 8 Rebel Footman for Player 11 (Dark Green) at (Random point in Rebel footman spawn <gen>) facing 240.00 degrees
    • Unit Group - Pick every unit in (Units in (region)) and do (Unit - Order (Picked unit) to Attack Move To (region)))
 

bgc

bgc

Level 1
Joined
Nov 27, 2008
Messages
5
Thank you! It worked perfect, though I screwed up the first action, I wrote to give 8 rebels to DG when they are going into DG's base, thanks again :)
 
why not do it with a loop?

  • blabla
  • for each integer A from 1 to 8 do actions
    • loop - actions
      • create one bla for player bla at random point bla facing degrees
      • order last created unit to move-attack random point in playable map area bla

if u understand what i mean, it should work ;)

PS: +rep would be welcome

EDIT: 100th post!!!
 
Last edited:

bgc

bgc

Level 1
Joined
Nov 27, 2008
Messages
5
Uh well, Hopefully I understood this all, thx for everything, I think I'm done with this trigger, you can close it unless you guys wanna go on and make this trigger absolutely out of the question perfect (I don't need/want you too)
 
Status
Not open for further replies.
Top