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

[General] Need help with basic triggers.

Status
Not open for further replies.
Level 25
Joined
Mar 23, 2008
Messages
1,813
Uhh so well, I decided to get on mapmaking a bit again after a couple of years out of it. I think I've probably forgotten everything, as I feel like my triggers are anything else than optimal. Anyway, some of my triggers does not behave in any logical way, there is two triggers that is bugging me. First one is;

  • Team1Spawning
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) belongs to an ally of Player 11 (Dark Green)) Equal to True
    • Actions
      • Unit - Change ownership of (Sold unit) to Player 11 (Dark Green) and Retain color
      • Unit - Move (Sold unit) instantly to (Random point in TEAM1CREEPSPAWN <gen>), facing (Position of Headquarters 0011 <gen>)
The thing that does not work with it is that the units that spawns change ownership to Player 12 and gets moved to TEAM2CREEPSPAWN (I have the same kind of trigger for the other team, and another region for those units) and not the region they should be moved to. I have no idea why that is. I am in the same force as Player 11.

Second trigger I am having trouble with is;
  • Team 1 wrong area
    • Events
      • Unit - A unit enters Team 2 area <gen>
    • Conditions
      • (Owner of (Triggering unit)) Not equal to Player 11 (Dark Green)
      • ((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of Team 1 area <gen>)
That one does work, but as soon as my unit gets teleported he gets teleported back again to the other side of the map.

I realize this is probably quite impossible to assist me with unless you can have a look at the triggers/regions/map itself, so I'll post up the map as well for you to check it out.
Help is greatly appreciated, thanks.

And it leaks, yes. I'll fix that.

Edit: removed the map from attachments.
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,243
@SeriousEnemy, you can simplify
  • Or - Any (Conditions) are true
    • Conditions
      • (Owner of (Sold unit)) Equal to Player 1 (Red)
      • (Owner of (Sold unit)) Equal to Player 2 (Blue)
      • (Owner of (Sold unit)) Equal to Player 3 (Teal)
      • (Owner of (Sold unit)) Equal to Player 4 (Purple)
into
  • Conditions
    • (Player number of (Owner of (Sold unit))) Less than 5
I'll mark the thread solved.
 
Status
Not open for further replies.
Top