help with deathmatch arena plz

bboykonjo

New Member
Reaction score
1
:confused: in my game, every 5 minutes theres a pvp deathmatch, i've already triggered the units to be ported to the arena but i have no clue on how to trigger the winner.


I want the deathmatch to be : last-man-standing styl. The last unit standing gets 200 gold and should be ported back to the (normal area<gen> (which is the not the arena for deathmatch))

How do i trigger this???

tnx in advance guys
:banghead:
 

Ashlebede

New Member
Reaction score
43
Needs a timer & timer window variable (if there is a time-limit).

Trigger:
  • //Hand-written : @mapInit
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Set ArenaTimerWindow = Create a timer window for ArenaTimer with title Arena Time


If not all players are in the arena at the same time, you'll need an ArenaPlayers "Player group" variables.

Trigger:
  • //Hand-written : Arena start trigger
    • Events
      • -------- Whatever you already had --------
    • Conditions
      • -------- Ditto --------
    • Actions
      • -------- Ditto --------
      • Trigger - Turn on {Other trigger} &lt;gen&gt;
      • -------- If there is a time limit : --------
      • Countdown Timer - Start ArenaTimer as a One-shot timer that will expire in {Arena maximum time} seconds
      • Set Temp_Force = (All players)
      • Countdown Timer - Show TimerWindow for Temp_Force
      • Custom Script : call DestroyForce(udg_Temp_Force)
      • Player Group - Add {Whatever players are in the arena} to ArenaPlayers


Trigger:
  • //Hand-written : End by unit death
    • Events
      • Unit - A unit dies
    • Conditions
      • (Triggering unit) is in {Arena Region} &lt;gen&gt; Equal to True
    • Actions
      • -------- You could also check if the (Matching unit) is a hero (if there are summons) --------
      • Set Temp_Group = (Units in {Arena Region} matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit)))
      • If (All conditions are true) then do (then actions) else do (else actions)
        • If - Conditions
          • (Count units in (Temp_Group)) Equal to 0
        • Then - Actions
          • Player Group - Remove (Owner of (Triggering unit)) from ArenaPlayers
        • Else - Actions
      • -------- If ends --------
      • Custom Script : call DestroyGroup(udg_Temp_Group)
      • If (All conditions are true) then do (then actions) else do (else actions)
        • If - Conditions
          • (Count players in (ArenaPlayers)) Equal to 1
        • Then - Actions
          • Countdown Timer - Pause ArenaTimer
          • Trigger - Turn off (This trigger)
          • -------- And whatever you have to do when the fight ends --------
        • Else - Actions
      • -------- If ends --------


And the facultative one, if there is a time limit :

Trigger:
  • //Hand-written : Time-limit
    • Events
      • Time - ArenaTimer expires
    • Conditions
    • Actions
      • -------- Whatever goes here to end arena with no winner --------
      • Trigger - Turn off {End by unit death} &lt;gen&gt;
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top