Unable to move unit

kasilopana

New Member
Reaction score
1
Red player has a footman. The footman is in Red Player's possesion.

- How do I make it so, Red can't move the footman, without making him another player's possesion.
 

Laiev

Hey Listen!!
Reaction score
188
event - a unit is ordered point/notarget/etc..
condi - if triggering unit equal to fooman and if owner of triggering unit equal to player 1
action - order triggering unit to stop


and don't double post...

i don't know if is what you want... :p
 

kasilopana

New Member
Reaction score
1
I've set the unit to auto-run right after being trained from a building (owned by player red) and when he is being trained, I dont want player red to control him.
 

Ayanami

칼리
Reaction score
288
Are you trying to do something similar to Castle Fight unit's where you can't control them? Then the solution is simple.

Trigger:
  • Trigger
    • Events
      • Unit - A unit is Issued an order with no target
      • Unit - A unit is Issued an order targeting a point
      • Unit - A unit is Issued an order targeting an object
    • Conditions
      • <Add Your Conditions>
    • Actions
      • Trigger - Turn off (This trigger)
      • Set TempPoint = (Center of (MyAttackOrderRegion))
      • Unit - Order (Triggering unit) to Attack-Move To TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Trigger - Turn on (This trigger)


TempPoint is a point variable. "MyAttackOrderRegion" should be your region in which you want your unit to attack move to.

To remove all the icons for your Attack, Move, Patrol, etc. ad the "Ward" classification under "Stats - Unit Classification".
 

Dwarvenfrog

New Member
Reaction score
2
Mkay!

I don't see how that can be done, at least not off the top of my head. If you just wanting to keep the units color to red then use:

Trigger:
  • Unit - Change ownership of (Last created unit) to Player 12 (Brown) and Retain color


Or something along that line.
 

kasilopana

New Member
Reaction score
1
I don't see how that can be done, at least not off the top of my head. If you just wanting to keep the units color to red then use:

Trigger:
  • Unit - Change ownership of (Last created unit) to Player 12 (Brown) and Retain color


Or something along that line.

Yeah, but when i does that, he stops auto-run.
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
If you want it to be unselectable, add then remove locust (at once)

P.S i would go with Glenphir solution, it looks to be exactly what you want
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
If you want it to be like in Castle-Defense then Glenphirs solution is exactly what you got to do.
If you dont order your footman to a rect but rather a variable location you may use rally points to save them individually for each unit.

Con's to Locust:
Unit will lose collision-size and hitpoints will be hidden for the owner.
 

HappyPeasant

New Member
Reaction score
8
Why dont you give all units spawned to a neutral computer player but dont change the color?
-if he stops running then changed the move trigger to after the change position.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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