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

Cant get my triggers to work when I have two!

Status
Not open for further replies.
Level 3
Joined
Mar 6, 2016
Messages
29
Cant get my triggers to work when I have two! [SOLVED]

Hello. So im trying to make a Hero Arena of sorts.

I've spent some time making a hero tavern and heroes, but the triggers wont work for me. My point of the map so far is to have it to be a 1 vs 1 map. So I'd of course want everything twice.

My trigger
v7etNvO
works fine for when it is only made for Red player. But whenever I make the exact same trigger for Blue Player it gets completely messed up, and Red Player gets send to blue spawn after hero has been chose. I'd really appreciate any help with this trigger!

Question two; How do I make a hero revive after X amount of time when he has fallen?

Help with especially question number 1 is much appreciated!

In case you have trouble seeing the image ( http://imgur.com/v7etNvO )
I've attached my map, please look it through and help out a noob :)

Kind regards,
Malthe22
 

Attachments

  • Hero Arena Malthe22.w3x
    23.6 KB · Views: 35
Last edited:
Level 17
Joined
Mar 21, 2011
Messages
1,611
  • Hero Sell red
    • Events
      • Unit - A unit sells a unit
    • Conditions
      • (Unit-type of (Selling unit)) equal to Hero Tavern
    • Actions
      • Unit - Remove (Buying unit) from the game
      • Unit - Move (Sold unit) instantly to (Center of Red spawn <gen>)
      • Camera - Pan camera for (Owner of (Buying unit)) to (Center of Red spawn <gen>) over 1.50 seconds
Imagine, this trigger triggers for BOTH players, that means even if blue buys a hero it will still move to the red spot. Having the same trigger just with another area will just move the unit to the red spawn and then imediately to the blue spawn.

  • Hero Sell
    • Events
      • Unit - A unit sells a unit
    • Conditions
      • (Unit-type of (Selling unit)) Gleich Hero Tavern
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Condition
          • (Owner of (Buying unit)) equal to Player 1 (Red)
        • 'THEN'-Actions
          • Unit - Move (Sold unit) instantly to (Center of Red spawn <gen>)
          • Camera - Pan camera for (Owner of (Buying unit)) to (Center of Red spawn <gen>) over 1.50 seconds
        • 'ELSE'-Actions
          • Unit - Move (Sold unit) instantly to (Center of Blue spawn <gen>)
          • Camera - Pan camera for (Owner of (Buying unit)) to (Center of Blue spawn <gen>) over 1.50 seconds
      • Unit - Remove (Buying unit) from the game
This should fix it. Just check if player 1 buys a unit and move it to red spawn, else move it to blue spawn (because you only have 2 players)
 
Level 3
Joined
Mar 6, 2016
Messages
29
Are you sure you changed all stats of player blue for this new trigger based on the same as player red.
Also to turn on this trigger.

I am 100% sure that I changed all the stats to the specific color

  • Hero Sell red
    • Events
      • Unit - A unit sells a unit
    • Conditions
      • (Unit-type of (Selling unit)) equal to Hero Tavern
    • Actions
      • Unit - Remove (Buying unit) from the game
      • Unit - Move (Sold unit) instantly to (Center of Red spawn <gen>)
      • Camera - Pan camera for (Owner of (Buying unit)) to (Center of Red spawn <gen>) over 1.50 seconds
Imagine, this trigger triggers for BOTH players, that means even if blue buys a hero it will still move to the red spot. Having the same trigger just with another area will just move the unit to the red spawn and then imediately to the blue spawn.

  • Hero Sell
    • Events
      • Unit - A unit sells a unit
    • Conditions
      • (Unit-type of (Selling unit)) Gleich Hero Tavern
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Condition
          • (Owner of (Buying unit)) equal to Player 1 (Red)
        • 'THEN'-Actions
          • Unit - Move (Sold unit) instantly to (Center of Red spawn <gen>)
          • Camera - Pan camera for (Owner of (Buying unit)) to (Center of Red spawn <gen>) over 1.50 seconds
        • 'ELSE'-Actions
          • Unit - Move (Sold unit) instantly to (Center of Blue spawn <gen>)
          • Camera - Pan camera for (Owner of (Buying unit)) to (Center of Blue spawn <gen>) over 1.50 seconds
      • Unit - Remove (Buying unit) from the game
This should fix it. Just check if player 1 buys a unit and move it to red spawn, else move it to blue spawn (because you only have 2 players)

I will for sure try it. Thanks

UPDATE: OK, great it works now. Thanks. So lets say I was to play with my friend, Jabba, the hero selection would work both ways for both me, as red player, and Jabba as blue player?
 
Last edited by a moderator:
Status
Not open for further replies.
Top