Make units uncontrollable

Arberden

Active Member
Reaction score
0
Hi, i am currently making a 6v6 map that is an aos.I made a post before asking how this was done and i had a reply.They said use neutral victim and neutral extra or use player 1 and 7 but make the units uncontrollable.
I tried the neutral victim and extra but they were attacked by my hero and even gave gold for their kill.I tried the other method but cant seem to make a unit uncontrollable. Thanks in advance
 

0WN3D

New Member
Reaction score
15
Im nvr rly sure about that as i dont bother to make 6v6... i think you can do it with forces property.... If ait fails you can always trigger the unit to stop...
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Hi, i am currently making a 6v6 map that is an aos.I made a post before asking how this was done and i had a reply.They said use neutral victim and neutral extra or use player 1 and 7 but make the units uncontrollable.
I tried the neutral victim and extra but they were attacked by my hero and even gave gold for their kill.I tried the other method but cant seem to make a unit uncontrollable. Thanks in advance

If you use neutral, you'll need to use triggers to change the aspects of alliances.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
basically at initialization make players 1 through 6 allied to neutral victim and against neutral passive and players 7 through 12 do it visa versa, then when a unit owned by one of the neutrals is created change the color to one you choose. its how dota 6v6 was made.
 

Ayanami

칼리
Reaction score
288
To make a unit uncontrollable, you'll need to do a bit of things.

You need to give the unit the "ward" classification. This basically removes all command icons (such as Move, Patrol, etc) from the unit. However, this still allows the player to give the unit a "smart" order. Thus, you need a trigger to combat this.

Trigger:
  • Remove Control
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Triggering unit)) Equal to Player 1 (Red)
          • (Owner of (Triggering unit)) Equal to Player 7 (Green)
    • Actions
      • Trigger - Turn off (this trigger)
      • Set TempPoint = SomePoint <-- This is set to the location where you want the creeps to attack-move to
      • Unit - Order (Triggering unit) to Attack-Move To TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Trigger - Turn on (this trigger)


This will cause the units to continually attack-move towards the specified location. The only problem with this method it's not actually making units uncontrollable. It simply causes the units to be given an attack-move order when receiving any other order.
 

Arberden

Active Member
Reaction score
0
To make a unit uncontrollable, you'll need to do a bit of things.

You need to give the unit the "ward" classification. This basically removes all command icons (such as Move, Patrol, etc) from the unit. However, this still allows the player to give the unit a "smart" order. Thus, you need a trigger to combat this.

Trigger:
  • Remove Control
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Triggering unit)) Equal to Player 1 (Red)
          • (Owner of (Triggering unit)) Equal to Player 7 (Green)
    • Actions
      • Trigger - Turn off (this trigger)
      • Set TempPoint = SomePoint <-- This is set to the location where you want the creeps to attack-move to
      • Unit - Order (Triggering unit) to Attack-Move To TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Trigger - Turn on (this trigger)


This will cause the units to continually attack-move towards the specified location. The only problem with this method it's not actually making units uncontrollable. It simply causes the units to be given an attack-move order when receiving any other order.

It works but i have a question.How do i do the same for the towers .Must i use Gfreak45 method.If so can explain how to make neutral team with other players
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Use this function.

Trigger:
  • Alliance
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Player - Make Neutral Victim treat (Player((Integer A))) as an Ally with shared vision
          • Player - Make (Player((Integer A))) treat Neutral Victim as an Ally with shared vision
      • For each (Integer A) from 7 to 12, do (Actions)
        • Loop - Actions
          • Player - Make Neutral Extra treat (Player((Integer A))) as an Ally with shared vision
          • Player - Make (Player((Integer A))) treat Neutral Extra as an Ally with shared vision
 

DioD

New Member
Reaction score
57
this will make every projectile visible over fog of war...

try to read embedded comments of GUI, you shoud never share vision of neutrals.
 

Arberden

Active Member
Reaction score
0
Eh this problem has been solved but now i have a new problem. After fighting for awhile, the creeps will run away from battle. I unchecked the can flee but it was useless. I do not want to edit the neutral return range in gameplay constants as i still have neutral hostile that is not helping any team
 

evilwolf

Member
Reaction score
11
Hmmm...
Thats the first problem I run into when making an AOS map...
Try these methods:

1. If a Hero cast an ability on the creep and the creep won't move, do this:
Unit-A unit finishes casting an ability,
Action- Order Target unit of ability being cast to attack-move to position of ....

2. If you creeps runs away at low hp try this.
Unit- A unit is attacked
Condition - Life of attacked unit lesser or equal to 50
Action- Order attacked to attack-move to position of ....

3. If you have this action: Use meele Ai for computer players then DELETE it!

4. Make multiple regions, I just spam like 20 regions, if a creep enters any of them they will be forced to attack the enemy base.
No running away!

5. Periodic Order:
Every 1 second of the game
Pick every unit in all units and do
Order picked unit to attack enemy base.

6. Edit the neutral return range
Create a region where your creeps are, if the creep leaves it will be forced to go back.

Thats is all...
 

Arberden

Active Member
Reaction score
0
1.The creeps just retreat even if no hero is selected.That makes your first point useless.
2.I have a fountain in the middle of the map so when they retreat it is around full hp
3.I don't understand what you mean by that
4.I am trying that now.
5.Will try that if 4 doesnt work.
6.Isn't that the same as 4?

EDIT: 4: doesnt work. it will make the creeps go in the correct direction but they keep turning round and round and gather around the middle
5:It works but it causes the units to stop every second after a new command is given which is not good
Can anyone tell me how icefrog does his dota 6v6.If u dont have the map heres the link http://www.epicwar.com/maps/160421
 

evilwolf

Member
Reaction score
11
1.The creeps just retreat even if no hero is selected.That makes your first point useless.
2.I have a fountain in the middle of the map so when they retreat it is around full hp
3.I don't understand what you mean by that
4.I am trying that now.
5.Will try that if 4 doesnt work.
6.Isn't that the same as 4?

EDIT: 4: doesnt work. it will make the creeps go in the correct direction but they keep turning round and round and gather around the middle
5:It works but it causes the units to stop every second after a new command is given which is not good
Can anyone tell me how icefrog does his dota 6v6.If u dont have the map heres the link http://www.epicwar.com/maps/160421
Weird, cause all of those ideas worked for me...
3 means that is you have this action:
Melee Game - Run melee AI scripts (for computer players)
Then Delete it! It often screws up your game...
6 is not the same as 4, 6 means that edit your creep return range/time, then create a region where your NEUTRAL HOSTILE creeps are, when ever your NE creep steps out of the region it will be forced to go back...
Heres another method:
Make a custom AI
Go to targeting priorities...
Add "Common alliance target" and Enemy- "Any Town"
And make sure you have a enemy town hall in the enemy base.
Then import and run the AI for Neutral players.
Turn off the trigger after running the AI though...
 

evilwolf

Member
Reaction score
11
Problem solved, it has to do with neutral return range!
Heres a Demo map, its simple but it works perfectly!
 

Attachments

  • (12)6v6 Hero Defense Demo Map.w3x
    21 KB · Views: 437
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top