• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Duel request

Status
Not open for further replies.
Level 3
Joined
Dec 12, 2008
Messages
41
Duel request

Hi, im making a hero arena, but what's a hero arena with out duels?
if some one wishes to help me for my project what i wil need is something like this:
-every 6 minutes 2 random heros(on from each team) are chosen and warped to an area(i alredy did the are)
-They will stay there until one of them dies
-when someone dies the other player will be warped back at his base

i would like this to be done with only trigers/jass no tird party programs

:grin:
 
Level 3
Joined
Dec 12, 2008
Messages
41
simple for you.... im not that good at triggers, could you plzzz help me by doing it, it wont take that long for someone that goodmaybe 20-30 mins or less idk... Me it would take me abouth 6hours searching for the good triggers
 
Well I gotta re-install it :/

  • Events
  • Melee Initialization
  • Conditions
  • Actions
  • Set Counter = 1
  • Set UnitGroupA = units in playable map area
  • Unit - pick all units in unit group(UnitGroupA)
    • Set picked unit = CustomValueIntegerVariable(counter)
    • Set Counter = Counter + 1
  • Events
  • Periodic Event - Every 2 seconds
  • Conditions
  • BattleBoolean = false
  • Actions
  • Set BattleBoolean = true
  • For each integer X do action 1 - 2
  • Pick randomunit in unit group (UnitGroupA)
    • If/then/else
      • Condition
        • CustomValueBoolean(custom value of unit(picked unit)) = false
      • then
        • set CustomValueBoolean(custom value of unit(picked unit)) = True
          • if/then/else
            • conditions
              • BattleUnit1Selected = False
            • then
              • set battleunit1selectedboolean = True
              • Set BattleUnit(1) = Picked Unit
            • else
              • Set BattleUnit(2) = Picked Unit
              • Move BattleUnit(1) to location X
              • Move BattleUnit(2) to location Y
      • else
  • Set Aspect of Alliance - Owner of unit(battleunit(1) = enemy of battleunit(2))
  • Set Aspect of Alliance - Owner of unit(battleunit(2) = enemy of battleunit(1))
 
Status
Not open for further replies.
Top