• 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] Duel system not working

Status
Not open for further replies.
Level 1
Joined
Aug 17, 2008
Messages
3
ok, im making an angel arena map (like so many people have done in the past :xxd:) and am having troubles with the dueling system now, i replaced character selection with taverns and these triggers

  • Tavern1
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Hero Tavern
    • Actions
      • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of (Playable map area)) over 0.00 seconds
      • Unit - Move (Sold unit) instantly to (Center of Hero Start Spawn <gen>)
      • Unit - Remove (Buying unit) from the game
(one for every tavern)

  • Hero Select Red
    • Events
      • Unit - A unit enters Hero Start Spawn <gen>
    • Conditions
      • ((Triggering unit) is in (Units owned by Player 1 (Red))) Equal to True
    • Actions
      • Set Heroes[(Player number of Player 1 (Red))] = (Random unit from (Units owned by Player 1 (Red) matching (((Random unit from (Units owned by Player 1 (Red))) is A Hero) Equal to True)))
      • Camera - Pan camera for Player 1 (Red) to (Center of Hero Start Spawn <gen>) over 0.00 seconds
      • Trigger - Turn off (This trigger)
(theres one for every color)

so now sometimes the duels dont work. sometimes no players enter the arena or only one will. can someone pls help me with this?:cry:
 
Level 13
Joined
Jul 3, 2008
Messages
1,098
make it in one trigger
event:
Unit - A unit Sells a unit
condition:
(Unit-type of (Triggering unit)) Equal to Hero Tavern
ovner of buyng unit equal to player 1
action:your actions

i saw another thing, try to remove turn of this trigger
 
Status
Not open for further replies.
Top