trigger move

vonahs

New Member
Reaction score
0
ok is there a trigger event action combination that forces a unit to move to a certain area while it is in a region? saying that even if you stop the unit it will force him to move again? cuz all i see is enter region but once he passes that region if you stop him, he is done moving, i want all unit in that region to continue their route and it be passed on player.
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
Make a periodic trigger that order all units in your region to move to the point they want to.
 

vonahs

New Member
Reaction score
0
so something like

Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit - Order (Entering unit) to Attack-Move To (Center of (Playable map area))

but what would condition be? something like this?

Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.05 seconds of game time
      • Unit - A unit leaves No region
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Unit - Order (Entering unit) to Attack-Move To (Center of (Playable map area))
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
You would want to do something like this:
Trigger:
  • trig
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in Your Region owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To Point

That would continually order all units in your region owned by Player 1 to move to a point.
 

TomTTT

New Member
Reaction score
44
Exactly what Ryushi said, but you can also add the units into a unit group whenever they enter the region
Trigger:
  • Enters
    • Events
      • Unit - A unit enters REGION
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Unit Group - Add (Triggering unit) to UnitGroup

And whenever they leave you'll need a trigger like that
Trigger:
  • Leaves
    • Events
      • Unit - A unit leaves REGION
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Unit Group - Remove (Triggering unit) from UnitGroup

And then you'll need a periodic event to move all units...
Trigger:
  • Move
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set Point = (Center of (Playable map area))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To Point
      • Custom script: call RemoveLocation(udg_Point)

Now you've got it :p
 

vonahs

New Member
Reaction score
0
You would want to do something like this:
Trigger:
  • trig
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in Your Region owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To Point

That would continually order all units in your region owned by Player 1 to move to a point.

this did not work the way it needs to. here see for your self
 

Attachments

  • Lunar Tug A War.w3x
    380.1 KB · Views: 117

vonahs

New Member
Reaction score
0
the thing is they never leave the region cuz the region im using is also the region for fog of war off.
 

Squeekems

TH.net Regular
Reaction score
11
When you order a unit to move, take control from the player. <(o_- )> Set it to neutral or something like that.

Let's see the player order the unit to stop when it isn't even their unit.
 

Squeekems

TH.net Regular
Reaction score
11
Yeah... Sad part about neutral is that you need to give all of the commands to the unit, otherwise the computer AI will do some other random commands. :/

There's probably some way to take the command options away from the unit for the player, but still have it moving. Maybe make the player go into a cinematic? Would that work, I wonder? (I'm just thinking of random things, now. Lol.)
 

vonahs

New Member
Reaction score
0
i just scrapped the command and just made the map 3v3 with each person has a computer partner that some what controlls units for them.
Trigger:
  • create
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • -------- Team 1 --------
      • -------- Red/ Orange --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Foot Soldier for Player 6 (Orange) at (Player 6 (Orange) start location) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (Center of BottomTarget &lt;gen&gt;)
        • Else - Actions
          • Do nothing
      • -------- Blue/ Purple --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 2 (Blue) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Foot Soldier for Player 4 (Purple) at (Player 4 (Purple) start location) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (Center of BottomTarget &lt;gen&gt;)
        • Else - Actions
          • Do nothing
      • -------- Teal/ Dark Green --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 3 (Teal) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Foot Soldier for Player 11 (Dark Green) at (Player 11 (Dark Green) start location) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (Center of BottomTarget &lt;gen&gt;)
        • Else - Actions
          • Do nothing
      • -------- Team 2 --------
      • -------- Green/ Yellow --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 7 (Green) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Foot Soldier for Player 5 (Yellow) at (Player 5 (Yellow) start location) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (Center of Top Target &lt;gen&gt;)
        • Else - Actions
          • Do nothing
      • -------- Pink/ Light Blue --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 8 (Pink) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Foot Soldier for Player 10 (Light Blue) at (Player 10 (Light Blue) start location) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (Center of Top Target &lt;gen&gt;)
        • Else - Actions
          • Do nothing
      • -------- Gray/ Brown --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 9 (Gray) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Foot Soldier for Player 12 (Brown) at (Player 12 (Brown) start location) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (Center of Top Target &lt;gen&gt;)
        • Else - Actions
          • Do nothing
 

Squeekems

TH.net Regular
Reaction score
11
Cool.

Too bad you couldn't keep it as 6v6, but at least the map will work. <(^_^)>
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
I think it's possible. But since you already threw that idea away..
 

vonahs

New Member
Reaction score
0
well when i did as suggested it would stop the foot soldiers at a certain spot. there map i uploaded here shows that. granted i could always trigger it. but this works just as well since computer for the 6 teams are just doing the same thing. and your upgrades affect the computer ur paired with.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top