• 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] Please Help My With My Map

Status
Not open for further replies.
Level 5
Joined
Jul 31, 2011
Messages
103
Hi, I wanted to ask a little help on my map.
I'm doing a Hero Arena map type

is as follows http://www.epicwar.com/maps/224029/

I would like to help me on the following:

duel-system (not working the game closes out error):vw_wtf:

-the want multiboard says state where I go if hero is alive or not (if not alive to see the timer which will take to revive)

-the multiboard say whether the hero's on Board 1 or 2 (Player 1 to 4 are Team 1, Player 5 to 8 are team 2.

thank you very much I hope your help.
 
Level 9
Joined
Apr 23, 2010
Messages
312
Here is a duel system I made a long time ago, it probably needs some tweaks and changes though.
  • Duel Timer
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for nextduel with title Next Duel in..
      • Countdown Timer - Start nextduel as a Repeating timer that will expire in 300.00 seconds
  • Duel Start
    • Events
      • Time - nextduel expires
    • Conditions
    • Actions
      • Countdown Timer - Pause nextduel
      • Quest - Display to (All players) the Hint message: Time for a Duel!
      • Unit - Pause all units
      • Wait 2.00 seconds
      • Set T1_Player = (Random player from (All players matching ((((Matching player) slot status) Equal to Is playing) and (((((Matching player) controller) Equal to User) and (((Random unit from (Units owned by (Matching player) matching (((Matching unit) is A Hero) Equal to True
      • Set T1_Rep = (Random unit from (Units owned by T1_Player matching (((Matching unit) is A Hero) Equal to True)))
      • Unit - Move T1_Rep instantly to (Center of T1 Rep <gen>), facing (Center of T2 Rep <gen>)
      • Set T2_Player = (Random player from (All players matching ((((Matching player) slot status) Equal to Is playing) and (((((Matching player) controller) Equal to User) and (((Random unit from (Units owned by (Matching player) matching (((Matching unit) is A Hero) Equal to True
      • Set T2_Rep = (Random unit from (Units owned by T2_Player matching (((Matching unit) is A Hero) Equal to True)))
      • Unit - Move T2_Rep instantly to (Center of T2 Rep <gen>), facing (Center of T1 Rep <gen>)
      • Camera - Pan camera for Player 1 (Red) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 2 (Blue) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 3 (Teal) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 4 (Purple) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 5 (Yellow) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Set the camera bounds for Player 1 (Red) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 2 (Blue) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 3 (Teal) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 4 (Purple) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 5 (Yellow) to Dual Area <gen>
      • Camera - Pan camera for Player 7 (Green) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 8 (Pink) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 9 (Gray) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 10 (Light Blue) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 11 (Dark Green) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Set the camera bounds for Player 7 (Green) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 8 (Pink) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 9 (Gray) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 10 (Light Blue) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 11 (Dark Green) to Dual Area <gen>
      • Unit - Remove All buffs from T1_Rep
      • Unit - Remove All buffs from T2_Rep
      • Unit - Set life of T1_Rep to 100.00%
      • Unit - Set life of T2_Rep to 100.00%
      • Unit - Set mana of T1_Rep to 100.00%
      • Unit - Set mana of T2_Rep to 100.00%
      • Wait 5.00 seconds
      • Quest - Display to (All players) the Hint message: 3
      • Wait 1.00 seconds
      • Quest - Display to (All players) the Hint message: 2
      • Wait 1.00 seconds
      • Quest - Display to (All players) the Hint message: 1
      • Wait 1.00 seconds
      • Quest - Display to (All players) the Hint message: FIGHT!
      • Unit - Unpause T1_Rep
      • Unit - Unpause T2_Rep
  • Duel End
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
      • Unit - A unit owned by Player 2 (Blue) Dies
      • Unit - A unit owned by Player 3 (Teal) Dies
      • Unit - A unit owned by Player 4 (Purple) Dies
      • Unit - A unit owned by Player 5 (Yellow) Dies
      • Unit - A unit owned by Player 7 (Green) Dies
      • Unit - A unit owned by Player 8 (Pink) Dies
      • Unit - A unit owned by Player 9 (Gray) Dies
      • Unit - A unit owned by Player 10 (Light Blue) Dies
      • Unit - A unit owned by Player 11 (Dark Green) Dies
    • Conditions
      • (Dual Area <gen> contains (Dying unit)) Equal to True
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Quest - Display to (All players) the Hint message: ((Name of (Owner of (Killing unit))) + Has won the Duel!)
      • Wait 3.00 seconds
      • Player - Add 500 to (Owner of (Killing unit)) Current gold
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
        • Then - Actions
          • Unit - Move (Killing unit) instantly to (Center of Team 1 <gen>)
          • Camera - Pan camera for (Owner of (Killing unit)) to (Center of Team 1 <gen>) over 1.00 seconds
        • Else - Actions
          • Unit - Move (Killing unit) instantly to (Center of Team 2 <gen>)
          • Camera - Pan camera for (Owner of (Killing unit)) to (Center of Team 2 <gen>) over 1.00 seconds
      • Unit - Unpause all units
      • Camera - Set the camera bounds for Player 1 (Red) to (Playable map area)
      • Camera - Set the camera bounds for Player 2 (Blue) to (Playable map area)
      • Camera - Set the camera bounds for Player 3 (Teal) to (Playable map area)
      • Camera - Set the camera bounds for Player 4 (Purple) to (Playable map area)
      • Camera - Set the camera bounds for Player 5 (Yellow) to (Playable map area)
      • Camera - Set the camera bounds for Player 7 (Green) to (Playable map area)
      • Camera - Set the camera bounds for Player 8 (Pink) to (Playable map area)
      • Camera - Set the camera bounds for Player 9 (Gray) to (Playable map area)
      • Camera - Set the camera bounds for Player 10 (Light Blue) to (Playable map area)
      • Camera - Set the camera bounds for Player 11 (Dark Green) to (Playable map area)
      • Countdown Timer - Start nextduel as a Repeating timer that will expire in 300.00 seconds
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,994
Here is a duel system I made a long time ago, it probably needs some tweaks and changes though.
  • Duel Timer
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for nextduel with title Next Duel in..
      • Countdown Timer - Start nextduel as a Repeating timer that will expire in 300.00 seconds
  • Duel Start
    • Events
      • Time - nextduel expires
    • Conditions
    • Actions
      • Countdown Timer - Pause nextduel
      • Quest - Display to (All players) the Hint message: Time for a Duel!
      • Unit - Pause all units
      • Wait 2.00 seconds
      • Set T1_Player = (Random player from (All players matching ((((Matching player) slot status) Equal to Is playing) and (((((Matching player) controller) Equal to User) and (((Random unit from (Units owned by (Matching player) matching (((Matching unit) is A Hero) Equal to True
      • Set T1_Rep = (Random unit from (Units owned by T1_Player matching (((Matching unit) is A Hero) Equal to True)))
      • Unit - Move T1_Rep instantly to (Center of T1 Rep <gen>), facing (Center of T2 Rep <gen>)
      • Set T2_Player = (Random player from (All players matching ((((Matching player) slot status) Equal to Is playing) and (((((Matching player) controller) Equal to User) and (((Random unit from (Units owned by (Matching player) matching (((Matching unit) is A Hero) Equal to True
      • Set T2_Rep = (Random unit from (Units owned by T2_Player matching (((Matching unit) is A Hero) Equal to True)))
      • Unit - Move T2_Rep instantly to (Center of T2 Rep <gen>), facing (Center of T1 Rep <gen>)
      • Camera - Pan camera for Player 1 (Red) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 2 (Blue) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 3 (Teal) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 4 (Purple) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 5 (Yellow) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Set the camera bounds for Player 1 (Red) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 2 (Blue) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 3 (Teal) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 4 (Purple) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 5 (Yellow) to Dual Area <gen>
      • Camera - Pan camera for Player 7 (Green) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 8 (Pink) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 9 (Gray) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 10 (Light Blue) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Pan camera for Player 11 (Dark Green) to (Center of Dual Area <gen>) over 1.00 seconds
      • Camera - Set the camera bounds for Player 7 (Green) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 8 (Pink) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 9 (Gray) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 10 (Light Blue) to Dual Area <gen>
      • Camera - Set the camera bounds for Player 11 (Dark Green) to Dual Area <gen>
      • Unit - Remove All buffs from T1_Rep
      • Unit - Remove All buffs from T2_Rep
      • Unit - Set life of T1_Rep to 100.00%
      • Unit - Set life of T2_Rep to 100.00%
      • Unit - Set mana of T1_Rep to 100.00%
      • Unit - Set mana of T2_Rep to 100.00%
      • Wait 5.00 seconds
      • Quest - Display to (All players) the Hint message: 3
      • Wait 1.00 seconds
      • Quest - Display to (All players) the Hint message: 2
      • Wait 1.00 seconds
      • Quest - Display to (All players) the Hint message: 1
      • Wait 1.00 seconds
      • Quest - Display to (All players) the Hint message: FIGHT!
      • Unit - Unpause T1_Rep
      • Unit - Unpause T2_Rep
  • Duel End
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
      • Unit - A unit owned by Player 2 (Blue) Dies
      • Unit - A unit owned by Player 3 (Teal) Dies
      • Unit - A unit owned by Player 4 (Purple) Dies
      • Unit - A unit owned by Player 5 (Yellow) Dies
      • Unit - A unit owned by Player 7 (Green) Dies
      • Unit - A unit owned by Player 8 (Pink) Dies
      • Unit - A unit owned by Player 9 (Gray) Dies
      • Unit - A unit owned by Player 10 (Light Blue) Dies
      • Unit - A unit owned by Player 11 (Dark Green) Dies
    • Conditions
      • (Dual Area <gen> contains (Dying unit)) Equal to True
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Quest - Display to (All players) the Hint message: ((Name of (Owner of (Killing unit))) + Has won the Duel!)
      • Wait 3.00 seconds
      • Player - Add 500 to (Owner of (Killing unit)) Current gold
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
        • Then - Actions
          • Unit - Move (Killing unit) instantly to (Center of Team 1 <gen>)
          • Camera - Pan camera for (Owner of (Killing unit)) to (Center of Team 1 <gen>) over 1.00 seconds
        • Else - Actions
          • Unit - Move (Killing unit) instantly to (Center of Team 2 <gen>)
          • Camera - Pan camera for (Owner of (Killing unit)) to (Center of Team 2 <gen>) over 1.00 seconds
      • Unit - Unpause all units
      • Camera - Set the camera bounds for Player 1 (Red) to (Playable map area)
      • Camera - Set the camera bounds for Player 2 (Blue) to (Playable map area)
      • Camera - Set the camera bounds for Player 3 (Teal) to (Playable map area)
      • Camera - Set the camera bounds for Player 4 (Purple) to (Playable map area)
      • Camera - Set the camera bounds for Player 5 (Yellow) to (Playable map area)
      • Camera - Set the camera bounds for Player 7 (Green) to (Playable map area)
      • Camera - Set the camera bounds for Player 8 (Pink) to (Playable map area)
      • Camera - Set the camera bounds for Player 9 (Gray) to (Playable map area)
      • Camera - Set the camera bounds for Player 10 (Light Blue) to (Playable map area)
      • Camera - Set the camera bounds for Player 11 (Dark Green) to (Playable map area)
      • Countdown Timer - Start nextduel as a Repeating timer that will expire in 300.00 seconds

You know there are some leaks, right?
 
You know there are some leaks, right?

Some ? There's a lot of leaks especially since it gets run multiple times

Anything tht uses a position ( like center of ...) leaks if not put into a variable and removed

Also in the trigger end duel u start up the countdown timer. Just Unpause it since u pause it in the duel start trigger
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,994
the only leaks are there are the unit group and points, its some not so many, deathismyfriend lol.
@13oot-Me group is created in those triggers by this way: unit owned by player, as you can see it is a group (unless you are blind). pausing timer is pointless if its time is 0
 
Status
Not open for further replies.
Top