Priorities all the same?

shiFt

Member
Reaction score
8
What would happen if I set all the priorities of all the units in a map the same, would attack selection from towers be completely random?

How does dotas creep pull system work, if u attack a hero the creeps attack you??
 

Sartan

New Member
Reaction score
23
thinks so,

dotas pull systems works as if you attack a hero with a hero you automatic get agro from the creeps if you are within a specific range (like 600), only works with normal attack (like order: smart and attack) you wont get agro if you uses spell or "orb walk"
do do this, check if the attacked units attacking units order is attack or smart and attacking unit is a hero then do, pick every (autospawn unit), order picked unit to attack attacking unit
 

shiFt

Member
Reaction score
8
what is smart and what are the autospawn units?

If I order enemy creeps in range of attacked Hero to attack a hero would that not mean they would not stop attacking that hero till it dies? Wouldnt it make sense to have my creeps attack the creep trying to attack me?
 

Sartan

New Member
Reaction score
23
what is smart and what are the autospawn units?

If I order enemy creeps in range of attacked Hero to attack a hero would that not mean they would not stop attacking that hero till it dies? Wouldnt it make sense to have my creeps attack the creep trying to attack me?

smart is an order string, like when you left click with your mouse to move or when you attack move.
yes they will ont stop attack the hero until they die or the hero geto ut of sight, and thats how it is in dotA.
Thats up to you how you want your creeps to act.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
DotA Creeps stop attacking the hero after 3 sec not when out of sight
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
With a trigger. Unit attacked. Attacked unit hero. Attacking unit hero. Pick all creeps within 950 of attaced unit and order them to attack attacking unit
 

shiFt

Member
Reaction score
8
yes but how owuld u set the stop attacking hero after 3seconds? and would these orders not mess up creep pathing through lanes?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
You start a count down time that expirers in 3 second and have another trigger with the event timer expires then pick creeps again then order then to go where the were supose to go in the first place
 

ChaosWarlock

New Member
Reaction score
7
In DotA the units do not attack you for 3 sec. They just start attacking you and when you back away they will acquire a new target. I believe that this happens because they use the "attack once" order and not the "attack" order.
 

RaiJin

New Member
Reaction score
40
yeah i always sucked at creep AI i want to see how this is done + rep to anyone who can duplicate dota's
 

ChaosWarlock

New Member
Reaction score
7
Here ya go. I haven't tested it but it should work just fine.

Just change 300 to whatever you want and Player 1 (red) to whatever player controls your creeps.

Trigger:
  • Creep Agro
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) is A Hero) Equal to (==) True
      • ((Attacking unit) is A Hero) Equal to (==) True
    • Actions
      • Set Temp_Point = (Position of (Attacking unit))
      • Set Temp_UnitGrp = (Units within 300.00 of Temp_Point matching (((Matching unit) is owned by Player 1 (Red)) Equal to (==) True))
      • Unit Group - Pick every unit in Temp_UnitGrp and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack Once (Attacking unit)
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Custom script: call DestroyGroup(udg_Temp_UnitGrp)
 

waaaks!

Zinctified
Reaction score
256
Here ya go. I haven't tested it but it should work just fine.

Just change 300 to whatever you want and Player 1 (red) to whatever player controls your creeps.

Trigger:
  • Creep Agro
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) is A Hero) Equal to (==) True
      • ((Attacking unit) is A Hero) Equal to (==) True
    • Actions
      • Set Temp_Point = (Position of (Attacking unit))
      • Set Temp_UnitGrp = (Units within 300.00 of Temp_Point matching (((Matching unit) is owned by Player 1 (Red)) Equal to (==) True))
      • Unit Group - Pick every unit in Temp_UnitGrp and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack Once (Attacking unit)
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Custom script: call DestroyGroup(udg_Temp_UnitGrp)
this will work, but not the same as DotA

I believe dota didn't triggered the system, they act like normal units and they have some kind of priorities in them

1. if u attack a hero, the creeps will attack you, order your hero to attack an allied unit that is currently attacking an enemy unit and the enemy creeps will stop attacking you (this is common seen in towers attacking you and stop them by attacking an allied unit)

2. if you trigger it, when the creeps starts to attack you and you stop attacking the hero and at the same time your creeps attacks the creeps that attacks you, they will never target the creeps instead focus on attacking you which is weird

3. if you trigger it, when the creeps targets an attack to you and you get out of sight from them (i.e. invisiblity, blink, dies, teleports, out of sight range) then they will stop in their position, not resuming their orders to attack to that certain region

and last, ive found a map that has that kind of system (looks like it is dota template and some custom map i played), I looked into their triggers and found nothing
 

ChaosWarlock

New Member
Reaction score
7
Well if this method has so many faults then I would be interested in seeing how it is actually done in DotA. The only other thing that I can think of is Stats - Priority (upri) in the unit editor. Maybe if you change these numbers it will affect it somehow.
 

shiFt

Member
Reaction score
8
it looks like waaaks has put alot of effort into this matter, so it seems that this isnt triggered maybe just proper use of priorities? But does any1 knw what they are?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Chaoswarlock. Dota doesnt use attack once. If so you can attack the enemy hero and keep running away then the creep will just keep folowing you until the get the attack in which is not the case
 

waaaks!

Zinctified
Reaction score
256
I really want to know how the hell I've done this system into my RotG v1.34 last time, I didn't triggered it, its just there.
 

ChaosWarlock

New Member
Reaction score
7
Stats - Priority (Integer)
Defines at what point the unit/building/hero will be attacked when within a group of units/buildings/heroes being attacked. The values entered can range from 0 to 20, with 0 meaning that the unit/building/hero will be attacked last, and 20 meaning that it will be attacked first.

From http://world-editor-tutorials.thehelper.net/uniteditor.php

If you look at the defaults for units heroes seem to be higher than normal units. So maybe all you have to do is simply up heroes to a high priority.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top