• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Another trigger porblem

Status
Not open for further replies.
Level 3
Joined
Jun 7, 2007
Messages
30
Ok i have a trigger that says
  • Events
  • Map initialization
  • Conditions
  • Action
  • wait 15 seconds
  • Unit-Create 5 horde for player 12 at (center of bad spawn)
  • Unit group-Order (units in bad spawn) to attack move to (center of bad attack to)
  • Trigger-run this trigger.
Now about 10 edits ago the units would attack to the location and stay there. Now they go back to their spawning point. I dont want them to do that I want them to stay at the attack to location.
 
Last edited:
Level 3
Joined
Jun 7, 2007
Messages
30
Ok i have a trigger that says
  • Events
  • Map initialization
  • Conditions
  • Action
  • wait 15 seconds
  • Unit-Create 5 horde for player 12 at (center of bad spawn)
  • Unit group-Order (units in bad spawn) to attack move to (center of bad attack to)
  • Trigger-run this trigger.
Now about 10 edits ago the units would attack to the location and stay there. Now they go back to their spawning point. I dont want them to do that I want them to stay at the attack to location.
 
Level 21
Joined
Jan 5, 2005
Messages
3,515
ok two things, u dont need "trigger -run this trigger" and get rid of the wait then replace the map intialization with "Time elapsed 12 seconds"

its probably got something to do with the unit group being moved around to much or something...anyway try that out and see how it goes...and be careful how u post next time :p
 
Level 3
Joined
Jun 7, 2007
Messages
30
ok i did that and they are still running back to the spawn location. this is starting to get irritating. Thanx for helping me btw.
 
Level 35
Joined
Oct 9, 2006
Messages
6,394
Hmm... you have disbled AI and so....
Got an idea.. when your units have attacked which you told they do, why dont remove and replace them with som units of same type (If they dont attack, just order the replaced ones to do it). Then they wouldn't run back. And if you want this to be repeatet every 15 sek, use peridoic trigger or just some regions (enter region or something) but what is the purpose? If we knew it would be more likely to come up with a solution..
 
Level 3
Joined
Jun 7, 2007
Messages
30
Its a DOTA style map. The units are the ones that attack to the base. How can I upload the map to the post. I will upload it so you guys can take a look at it.
 
Level 18
Joined
May 27, 2007
Messages
1,689
i had a problem like this and at first, the trigger worked just like i wanted but then i couldnt seem to get it to work at all, so i had two triggers that ended up looking like this and since im guessing this map wont allow you to create units manually there shouldnt be any problem

  • Spawn Red
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is playing
    • Actions
      • Set TempPoint = (Center of redspwn <gen>)
      • Unit - Create (X) Any Unit for Player 1 (Red) at TempPoint facing 90.00 degrees
      • Custom script: call RemoveLocation (udg_TempPoint)
  • Move Red
    • Events
      • Unit - A unit enters redspwn <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
      • ((Triggering unit) is A Hero) Equal to False
    • Actions
      • Set TempPoint2 = (Random point in Battle Front <gen>)
      • Unit - Order (Triggering unit) to Attack-Move To TempPoint2
      • Custom script: call RemoveLocation (udg_TempPoint2)
hope that will help:infl_thumbs_up:
 
Status
Not open for further replies.
Top