• 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.

How do you make a trigger LOOP!

Status
Not open for further replies.
Level 3
Joined
Nov 3, 2004
Messages
32
I am trying to make it so that...

Unit enters region..

Change ownership to curret player.

And if there is such a thing...

Preserve trigger (so that it loops the trigger)

I cannot find this trigger.
 
Level 6
Joined
Sep 17, 2005
Messages
276
hm... btw if you dont turn off the trigger it is looped automatically. but depends a bit of your event and conditions.

For example this would loop auto and fire everytime a unit enters:

Code:
EVENT:          unit-a unit enters <area>
CONDITION:
ACTION:         change ownership of triggering unit to...
 
Level 10
Joined
Jul 2, 2004
Messages
690
preserve isnt in warcraft 3, only in starcraft.
what sunny said. just put in the event and the action.
 
Level 3
Joined
Nov 3, 2004
Messages
32
Los_Tacos said:
The action is called:
Trigger - Run (Ignoring/Checking conditions)

Leave it as:
Run (This trigger) ignoring/checking conditions

I think the ignoring/checking conditions is self-explanatory.

I have found those triggers and have tryed them.

What I got, game crashed. Don't know why... I have tryed both.
 
Level 3
Joined
Nov 3, 2004
Messages
32
Sunny_D said:
hm... btw if you dont turn off the trigger it is looped automatically. but depends a bit of your event and conditions.

For example this would loop auto and fire everytime a unit enters:

Code:
EVENT:          unit-a unit enters <area>
CONDITION:
ACTION:         change ownership of triggering unit to...

This idea I have also tryed. This is the main reason that I am posting about looping the trigger because that idea you presented there did not fire but yet only worked once.
 
Level 7
Joined
Aug 5, 2005
Messages
218
By loop I thought you meant repeat the trigger... But repeating a trigger with a 0 second gap will make it try to run infinity times instantly, of course causing it to crash. By the way I haven't done Starcraft mapping.

But why such a simple trigger doesn't work is beyond me. Please copy it as text (right click on the name of the trigger right above "Events" then click copy as text) and paste it in your next post so we can see it.
 
Level 10
Joined
Jul 2, 2004
Messages
690
Code:
    Events
        Unit - A unit enters (Region)
    Conditions
        ((Entering unit) belongs to an enemy of Player) Equal to True
    Actions
        Unit - Change ownership of (Entering unit) to (Player) and Change color
 
Level 6
Joined
Sep 17, 2005
Messages
276
Well.. i tried the trigger i posted above and it worked perfectly.
So there must be a problem somewhere else so please - as los tacos already said - offer the whole trigger plz.
 
Status
Not open for further replies.
Top