• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

How to make an Arena Duel

Status
Not open for further replies.
Level 4
Joined
Oct 6, 2009
Messages
85
hi need help plzz. can some one tell me how to make a trigger that when a unit enters a circle of power it teleports the entering unit to an arena and if another unit enters the circle it also teleports to the place and if there already 2 unit in the arena other unit cannot enter any more. and if 1 of those unit inside the arena dies the the killing unit gets a reward and get teleported back to the circle of power??????? sorry for my bad english realy need your help so tnx in advance :ogre_haosis:
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Here is the basic system:

http://www.hiveworkshop.com/forums/pastebin.php?id=unt7bu

You can polish it, add some special effects, text messages etc.

Notice that I set the locations in Map Initialization trigger.


  • Duel Enter
    • Events
      • Unit - A unit enters Region 001 <gen>
    • Conditions
    • Actions
      • Unit Group - Add (Triggering unit) to DuelGroup
      • Unit - Move (Triggering unit) instantly to DuelEnter
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in DuelGroup) Equal to 2
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn on Duel Death <gen>
        • Else - Actions
  • Duel Death
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is in DuelGroup) Equal to True
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit Group - Remove (Triggering unit) from DuelGroup
      • Unit Group - Pick every unit in DuelGroup and do (Actions)
        • Loop - Actions
          • Unit Group - Remove (Picked unit) from DuelGroup
          • Unit - Move (Picked unit) instantly to DuelExit
      • Wait 0.00 seconds
      • Trigger - Turn on Duel Enter <gen>
 
Level 4
Joined
Oct 6, 2009
Messages
85
tnx for the replay and it works! but i got another question how do i make them move not in just one region like when the unit enters it move it to the right side of the arena and the other get moved to the left side???
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
Create two regions, and use two point variables.

Set point1 = Center of region1 and point2 = center of region2.

Then if there are no units in the duel arena (you can use number of units in group comparison) move the unit to point1. If there is one unit there then move the unit to point2.
 
Level 4
Joined
Oct 6, 2009
Messages
85
plzzz make trigger like the one in the top so i can see how ^^

Edit

did you mean like this

  • Hero Enters
    • Events
      • Unit - A unit enters DuelArena Entrance <gen>
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Entering unit) is A Hero) Equal to True
          • ((Entering unit) is alive) Equal to True
          • ((Entering unit) belongs to an enemy of (Owner of (Entering unit))) Equal to False
    • Actions
      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Entering unit)) emitting Visibility across Spawn <gen>
      • Quest - Display to (All players) the Warning message: ((Name of (Owner of (Entering unit))) + Enters The Duel Arena Waiting For Other Players To Enter)
      • Unit Group - Add (Entering unit) to UnitGroup[(Integer(duel))]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in Spawn <gen>)) Equal to 0
        • Then - Actions
          • Unit - Move (Entering unit) instantly to Duel_Top
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in Spawn <gen>)) Equal to 1
            • Then - Actions
              • Unit - Move (Entering unit) instantly to Duel_Down
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in (Units in Spawn <gen>)) Equal to 2
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                  • Trigger - Turn on Hero Dies <gen>
                • Else - Actions
well doesnt move the unit

plzzz make trigger like the one in the top so i can see how ^^

Edit

did you mean like this

  • Hero Enters
    • Events
      • Unit - A unit enters DuelArena Entrance <gen>
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Entering unit) is A Hero) Equal to True
          • ((Entering unit) is alive) Equal to True
          • ((Entering unit) belongs to an enemy of (Owner of (Entering unit))) Equal to False
    • Actions
      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Entering unit)) emitting Visibility across Spawn <gen>
      • Quest - Display to (All players) the Warning message: ((Name of (Owner of (Entering unit))) + Enters The Duel Arena Waiting For Other Players To Enter)
      • Unit Group - Add (Entering unit) to UnitGroup[(Integer(duel))]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in Spawn <gen>)) Equal to 0
        • Then - Actions
          • Unit - Move (Entering unit) instantly to Duel_Top
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units in Spawn <gen>)) Equal to 1
            • Then - Actions
              • Unit - Move (Entering unit) instantly to Duel_Down
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in (Units in Spawn <gen>)) Equal to 2
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                  • Trigger - Turn on Hero Dies <gen>
                • Else - Actions
well doesnt move the unit

can just make a sample for me plzz
 
Last edited by a moderator:
Level 4
Joined
Oct 6, 2009
Messages
85
Ok im sorry now i got another Quiestion how can you make that if no heroes enter the arena for 10 seconds the waiting player will get teleported back to a region???? sorry if im realy annoying
 
Status
Not open for further replies.
Top