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: 115

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.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top