Discussion Warcraft 3 World Editor Attack-Move

jozef123

New Member
Reaction score
0
I have some trouble with the Attack-Move command in warcraft 3 world editor. I'm trying to create a unit by trigger and then attack move it to a region. When that unit moves it goes to that region but then it goes back to a spot when it was created. Its patrolling instead of attack moving. Can you please help me with that? The Allies1 is the spawning region and AlliesGoLeft1 is a region i want my unit to attack move to. So when i run this my attack moves to AlliesGoLeft1 but after reaching that region it goes back to Allies1 region without any reason. This is my only trigger in the game and i dont have any triggers that for AlliesGOLeft1 region. The Player 11(Dark Green) is a computer player and this only happens for computer players, because when I tried to put a user Red instead of computer the unit attack moves to the AlliesGOLeft1 region as it was suppose to. I really would appreciate some help.
Thanks

Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman for Player 11 (Dark Green) at (Random point in Allies1 <gen>) facing (Center of AlliesGOLeft1 <gen>)
Unit Group - Order (Last created unit group) to Attack-Move To (Random point in AlliesGOLeft1 <gen>)
 
You should use a "Unit - Issue Order Targeting Point" action rather than a Unit Group action because the action you have refers to the "Last Created Unit Group" rather than "Last Created Unit" (which is what you want).
 
Thanks for answering.
I tried to do what you said, but the unit is still patrolling instead of attack moving.

Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman for Player 11 (Dark Green) at (Random point in Allies1 <gen>) facing (Center of AlliesGOLeft1 <gen>)
Unit - Order (Last created unit) to Attack-Move To (Random point in AlliesGORight1 <gen>)
 
Go into the gameplay constants. Scroll down to the guard distance, set it to 999999.
 
I also created a new map and a unit is patrolling instead of attack moving. A unit spawns at region 002 and then it moves to region 000, but after reaching region 000 it goes back to region 002. Thats the only trigger i have on my new map.
Untitled Trigger 001
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman for Player 2 (Blue) at (Center of Region 002 <gen>) facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To (Center of Region 000 <gen>)
 
I only see Creeps-Guard Distance, and I changed it to 99999 as you said, but the unit is still patrolling.
Btw it only works with computer players, with a user player the unit is attack moving without going back.
Also, almost the same thing happens with Move-To. Except that first unit that spawned stays in the region that it was suppose to move to, and the rest of the units just go to that region and then back.

I'm not sure but i think there is something wrong with the AI.
 
Ok, I just changed the computer player to a user and it works fine. Can you guys tell me how to lock the slot of a user, so nobody would be able to pick it during the game?
Thanks a lot
 
No I'm pretty sure it's guard distance. Try adding the line,

Trigger:
  • AI - Ignore (Last created unit)&#039;s guard position


After you make the unit.
 
No I'm pretty sure it's guard distance. Try adding the line,

Trigger:
  • AI - Ignore (Last created unit)&#039;s guard position


After you make the unit.

I hate to bump an old post, but I have been trying to figure out this issue for years, off and on, with no success. The ignore guard position doesn't work. I have been trying to make a DoTA like map off and on for a very long time. I can pretty much do anything except make the units stop returning back to the point where they were created after a fight. When the minions meet, the fight each other and whatever minion gets the last hit on another, if there is nothing more for it to attack, it will return to base.

I have tried countless things, like a trigger for whenever a unit kills a unit, to reissue the attack-move order. I have tried a timer that every 5 seconds it issues the order, but it just makes the game lock up every 5 seconds for a very brief but noticeable amount. I have tried hundreds of suggestions and each time I am hopeful it will finally fix this problem, but it never does.

I don't know why the game does this, and I know there must be a way to make it work or DoTA wouldn't work... but for the life of me, I can't figure it out.
 
Well you should probably have created a New Fresher post, but maybe if they are computer owned units. Give that computer a vision modifier over the entire map, and setting the guard distance as above.

Otherwise, even if not efficient. You could set a trigger when a unit is killed and then reissue commands. Could use triggers to check if there are nearby enemies etc. But that is a last resort, it may mess up attacks and priorities etc.
 
Well you should probably have created a New Fresher post, but maybe if they are computer owned units. Give that computer a vision modifier over the entire map, and setting the guard distance as above.

Otherwise, even if not efficient. You could set a trigger when a unit is killed and then reissue commands. Could use triggers to check if there are nearby enemies etc. But that is a last resort, it may mess up attacks and priorities etc.

I have given them entire map vision and changed the guard distance (along with other distance modifiers). I have even set a trigger for when a unit is killed to reissue the command, along with several other triggers of the like and the units just ignore it and return to where they were created.
Thank you for the reply, I really appreciate it. :)
Anything else anyone can think of?
 
Now that I remember, I TRIED to give the computer visibility of the entire map but it doesn't work. I forgot about that, for some reason I can't disable fog of war at all. Visibility - Disable Fog of War does nothing.
 
Don't disable that. You gave a visibility modifier giving vision of all?
Hmm, it must be something to do with the Guard function. Perhaps when they reach specific regions order them new commands. Eg attack move to the final tower or something which ends the game.
Best of luck.
 
Well, just like HydraRancher said it's about the unit's guard position. Maybe you just place the trigger at the wrong place. Try to do it something like this...
Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Footman for Player 11 (Dark Green) at (Random point in Allies1 &lt;gen&gt;) facing (Center of AlliesGOLeft1 &lt;gen&gt;)
      • AI - Ignore (Last created unit)&#039;s guard position
      • Unit - Order (Last created unit) to Attack-Move To (Random point in AlliesGOLeft1 &lt;gen&gt;)

I already tested this and it works. Hope this helps :D
 
I also had this problem fixed with guard distance changes in cons gameplay but now if you order a unit to attack move a region, and somewhere down the line he has a target and that target dies, they just go back; they don't continue to get to the region which frustrates me a little bit. Need to find a fix for this
 
As I read it, you've set it to a computer player. Did you turn the melee AI off in the Triggers section? If you don't, it will sometimes do weird stuff.
 
Oooor. Make a periodic trigger that orders the creep to attack-move to the location.
Say, every 5 seconds?
 
Or look at the age of the thread and realize its more then 3 years old.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    I should have had all of this like a month ago but whatever, it's fine. He's trying a thing, idk it's his menu I don
  • Varine Varine:
    I don't care.
  • Varine Varine:
    Fuck I need more saturday nights off. Turns out I'm much cooler to drunk girls. If I hang out with enough people like that, eventually I'll meet one that likes me sober too
  • Varine Varine:
    idk if anyone has ever done IT. I am not IT but I just got off a 20 minute phone call with the general manager asking me how to make her new computer print. I do adore her, like I know her personally, but I asked three times if the printer was on. She apologized for bothering me, and Chef Ben walked in a few minutes later, turned the printer on apparently, and then called to ask if I was trying to print shit from my house again
  • Varine Varine:
    So I have a newfound appreciation
  • Varine Varine:
    And also I'm going to remove that one from my secondary career options
  • Varine Varine:
    As I get older I'm not thinking I can do this forever anymore, and I'm kind of dead end right now. I get a fine salary and fair raises, like I can easily live my lifestyle on this normally, but I don't know if I can do this in ten years, and I don't think I want to. I don't really have any desire to take over another restaurant, and I don't want to try and own one, and I doubt I'll luck out like I did with that taco place in Texas
  • Varine Varine:
    I have a math degree but that was a while ago and I'm not positive I actually deserved that. It was kind of just given to me I feel like cuz I was in school so long. Like for a bit as a teenager I got real into the mormon thing, and my dad grew up kind of similarly. Much like he fell out of it
  • Varine Varine:
    Anyway he started coming to church with me for a bit, and they gave home the I think Melchizedek? idk how to spell it, but it's the 'upper' priesthood, like he had a whole blessing thing after I got baptized, and it WAS a very neat experience. And the only reason I think they did they did that was cuz he was like late 30s, and that is kind of the age that they have the last chance at that
  • Varine Varine:
    And I mean its not, but like... I'm pretty well set in my lack of religious beliefs, I guess. And I'm a bit younger than my dad would have been then.
  • Varine Varine:
    And then I got real into, he got bored and was like you do you dude, and that's how I got a huge amount of freedom when I started doing drugs as a teenager
  • Varine Varine:
    In hindsight my parents were fantastic. but they were too fucking tired to raise kids like me. And their jobs were easier with better benefits.
  • Varine Varine:
    Anyway idk where I'm going here, but I asked ChatGPT some of the same things and holy shit was it way more strict and just gave me (importantly the wrong) phone number to a hotline
  • Varine Varine:
    TH, I gotta say, though, I'm amazed you keep this up. I feel like there are you and Ghan doing whatever you're doing, Tom posting news, and then me using the chatbox as a journal every once in a while.
    +1
  • Varine Varine:
    Thanks for letting me do that, also. I know I'm not using it correctly, but somewhere along the line I went from arguing with Cheshire to using this as a kind of void for my frustrations and hopes. I like to think of the whole thing as an enigma of sorts
  • Varine Varine:
    It's not, you guys could probably blackmail me if you went back far enough. I doubt anyone would, you've always been very kind, and I'm glad to have been a part of all this! I hope you enjoy me too, cuz I'm going to keep doing it.
    +1
  • Varine Varine:
    In my defense I was high for a lot of that though
  • V-SNES V-SNES:
    Thanks for sharing @Varine
  • The Helper The Helper:
    Brother how long we been here together? You guys are some of my best friends and I have never even met any of you. I dont know what I would if I did not have my Varine rant to look at when I get on. How could I possibly ever shut this site down? We have been here in this little chat box through a lot of shit for a long time. I love you guys!
    +2
  • tom_mai78101 tom_mai78101:
    I missed out on a lot of chat messages. But yeah, we're planning for my mom's funeral back in Taiwan. I'm really glad I work remotely, so I can try to leverage that and go to places outside of US while still working in US.
    +1
  • tom_mai78101 tom_mai78101:
    If it wasn't for my mom, I wouldn't be able to work in the US. Let alone being able to work until our office closed, and I became a full-time remote employee.
  • tom_mai78101 tom_mai78101:
    Really important though, get your wills and last testaments ready. We avoided like 2 to 3 months of waiting for probate court to get back to us.
    +2
  • The Helper The Helper:
    V-SNES I got good news I got your stuff packed for shipping and just need to get to the post office to get shipping cost!
    +1
  • jonas jonas:
    Oh man Cheshire, I often wonder what happened to her and most of the other people who used to be here
  • V-SNES V-SNES:
    @The Helper that's great! Looking forward to getting them!

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top