• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

trigger loop

Status
Not open for further replies.
Level 4
Joined
Jul 29, 2009
Messages
49
hi, im editing one of my maps, and as i test the triggers, it seems that they're put into a loop. the trigger i put together should have the units stop at a region, the region does not have any commands attached to it. but when the units get to the region, they turn around and go back to where they came from! can someone help me?
 
You must edit an AI command for this. It is often experienced when you don't edit default triggers. Or construct a trigger like this. The destination of the unit(s) must be in a region.

  • Stop unit
    • Events
      • Unit - A unit enters <destination of unit(s)>
    • Conditions
      • //If you need
    • Actions
      • Unit - Order (Triggering unit) to stop
Sorry if I create a trigger for him in the wrong section.

@mogar: If you are asking for triggers or something, post this thread in the 'World Edtior Help Zone'. (I want to help the moderators to highly implement this)
 
Last edited:
here is the trigger. after reaching the destination, the unit turns back! do i need to edit AI to fix this?
 

Attachments

  • Untitled.png
    Untitled.png
    166.8 KB · Views: 115
I can't see it clearly, but I can see some of it. Fix your trigger to this:
1. Remove the "and"
2. The action leaks, save it into a variable and remove it.
  • Trigger 1
    • Events
      • Unit - A unit enters Training Facility...
    • Condtions
      • (Unit Type of (Triggering Unit)) equal to Marine
      • ((Triggering Unit) is a hero) equal to true
      • ((Triggering Unit) belongs to an enemy of Player 1 (Red)) equal to true
    • Actions
      • Set ArmyMovePoint = Center of tt ____ east <gen>
      • Unit - Order (Triggering Unit) to attack move to ArmyMovePoint
      • Custom script: call RemoveLocation(udg_ArmyMovePoint)
After that, add this
  • Trigger 2
    • Events
      • Unit - A unit enters tt ____ east <gen>
    • Conditions
      • (Unit Type of (Triggering Unit)) equal to Marine
      • ((Triggering Unit) is a hero) equal to true
      • ((Triggering Unit) belongs to an enemy of Player 1 (Red)) equal to true
    • Actions
      • Unit - Order (Triggering Unit) to stop
You can specify the conditions yourself, I just did this based on the trigger you gave.
 
Status
Not open for further replies.
Back
Top