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

Duel/Challenge System

Status
Not open for further replies.
Level 10
Joined
Feb 20, 2008
Messages
448
after some failed searched i tryed to find an e-z duel, challenge system:

How the system should be
exemple :player 2 type "Challenge p1" Than Player 1 type "Accept" if teh challenged player accept both player unit are teleport into the Battle zone.

While those 2 unit are fighting other unit cannot Challenge other player until its end . When the challenge ends by death of a player or timer end(2min) both unit are teleported to the spot they was before challenging and the winner receive a Prize

This system is for my map i am making now, + rep and credits will be give for helper. IM sure this system is probably very e-z to make.

if any questions regards my system u can pm me here :)
 
Level 9
Joined
Jun 25, 2009
Messages
427
I already did this in your Triggers/scripts section, and if you want the timer just in my trigger where actions, start countdown timer for 120seconds, create a trigger that event is timer expires and then move to the places, but for this you'll need to set the hero'ses place before teleporting to arena :)

  • Duel
    • Events:
      • Player - Player 1 (red) writes Duel as a substring
      • Player - Player 2 (Blue) writes Duel as a substring
      • Player - Player 3 (Teal) writes Duel as a substring
      • Player - Player 4 (Purple) writes Duel as a substring
      • Player - Player 5 (Yellow) writes Duel as a substring
    • Conditions:
    • Actions:
      • Set Dueler=(Triggering Player)
      • Set Duelist=Entered chat string (5,6)
      • If (All conditions are true) then (do actions):
        • If - Conditions:
          • Player(Duelist) is an enemy of Dueler
        • Then - Actions:
          • Set Units=(Units in (Playable map area) owned by Dueler
          • Unit Group - Pick all (units) in Units group and (do actions):
            • If (All conditions are true) then (do actions):
              • If - Conditions:
                • (Picked Unit) is a Hero equal to True
              • Then - Actions:
                • Unit - Move (Picked Unit) to Arena <gen>
                • Custom Script: call DestroyGroup(udg_Units)
                • Else - Actions:
                  • Set Units=(Units in (Playable map area) owned by Player(Duelist)
                  • Unit Group - Pick all (units) in Units group and (do actions):
                  • If (All conditions are true) then (do actions):
                    • If - Conditions:
                      • (Picked Unit) is a Hero equal to True
                    • Then - Actions:
                      • Unit - Move (Picked Unit) to Arena <gen>
                      • Custom Script: call DestroyGroup(udg_Units)
        • Else - Actions:
          • Game - Write to (Triggering Player): You cannot fight with your teammate!!
 
Status
Not open for further replies.
Top