• 🏆 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!

[Trigger Basic] Duel Event - 1.1

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
I'm Fix Memory Leak in this version (Maybe have some small leak :D)
Change Log:
- Add some doodad,effect in duel arena :D
- Fix some leak
- Ilusion can't Come Duel
- ............
Please Admin (or Mod) Delete Topic "Duel Event V1.0" [Because this map have a big Leak]
Here Is Triggers:
I Set 4 Group and Set 4 Hero to can Pick Unit go to Duel arena
  • Map Intialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Group[1] = (Units owned by Player 1 (Red) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is an illusion) Equal to False)))
      • Unit Group - Pick every unit in Group[1] and do (Actions)
        • Loop - Actions
          • Set Hero[1] = (Picked unit)
      • Set Group[2] = (Units owned by Player 2 (Blue) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is an illusion) Equal to False)))
      • Unit Group - Pick every unit in Group[2] and do (Actions)
        • Loop - Actions
          • Set Hero[2] = (Picked unit)
      • Set Group[3] = (Units owned by Player 6 (Orange) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is an illusion) Equal to False)))
      • Unit Group - Pick every unit in Group[3] and do (Actions)
        • Loop - Actions
          • Set Hero[3] = (Picked unit)
      • Set Group[4] = (Units owned by Player 7 (Green) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is an illusion) Equal to False)))
      • Unit Group - Pick every unit in Group[4] and do (Actions)
        • Loop - Actions
          • Set Hero[4] = (Picked unit)
      • Custom script: call DestroyGroup (udg_Group[1])
      • Custom script: call DestroyGroup (udg_Group[2])
      • Custom script: call DestroyGroup (udg_Group[3])
      • Custom script: call DestroyGroup (udg_Group[4])
And Create Timer Window to can Expires
  • Create Timer Window
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • -------- 10 second to duel -->>> More...... --------
      • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 60.00 seconds
      • Countdown Timer - Create a timer window for DuelTimer with title Duel Event
      • Set TimerWindowDuel = (Last created timer window)
      • Countdown Timer - Show (Last created timer window)
This trigger is Display all player to this time is duel and Revial all hero to move duel arena
  • Timer Window End
    • Events
      • Time - DuelTimer expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy TimerWindowDuel
      • Trigger - Turn off Create Timer Window <gen>
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across duel region <gen>
          • Game - Display to (All players) the text: |cFFFF0000It's Time...
      • Set NeutralGroup = (Units within 99999.00 of (Center of (Playable map area)))
      • Unit Group - Pick every unit in NeutralGroup and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Invulnerable
      • Unit - Pause all units
      • Wait 4.00 seconds
      • Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of duel region <gen>) over 1.00 seconds)
      • -------- Team 1 --------
      • Set HeroPoint[1] = (Position of Hero[1])
      • Set HeroPoint[2] = (Position of Hero[2])
      • -------- Team 2 --------
      • Set HeroPoint[3] = (Position of Hero[3])
      • Set HeroPoint[4] = (Position of Hero[4])
      • Hero - Instantly revive Hero[1] at (Position of Hero[1]), Show revival graphics
      • Hero - Instantly revive Hero[2] at (Position of Hero[2]), Show revival graphics
      • Hero - Instantly revive Hero[3] at (Position of Hero[3]), Show revival graphics
      • Hero - Instantly revive Hero[4] at (Position of Hero[4]), Show revival graphics
      • Wait 2.00 seconds
      • Trigger - Run Move Duel <gen> (ignoring conditions)
      • Custom script: call DestroyGroup (udg_NeutralGroup)
After,When I Set and move all 4 player of hero to go arena,Set Life,reset cooldown and Display 3 second and order hero atack - move to center of arena
  • Move Duel
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set TempPoint = (Center of duel region <gen>)
      • Set PointOfArena[1] = (Center of Red <gen>)
      • Set PointOfArena[2] = (Center of Blue <gen>)
      • Set PointOfArena[3] = (Center of Orange <gen>)
      • Set PointOfArena[4] = (Center of Green <gen>)
      • Unit - Move Hero[1] instantly to PointOfArena[1]
      • Unit - Move Hero[2] instantly to PointOfArena[2]
      • Unit - Move Hero[3] instantly to PointOfArena[3]
      • Unit - Move Hero[4] instantly to PointOfArena[4]
      • -------- Set Life --------
      • Unit - Set life of Hero[1] to 100.00%
      • Unit - Set life of Hero[2] to 100.00%
      • Unit - Set life of Hero[3] to 100.00%
      • Unit - Set life of Hero[4] to 100.00%
      • -------- Reset Ability Cooldown --------
      • Unit - Reset ability cooldowns for Hero[1]
      • Unit - Reset ability cooldowns for Hero[2]
      • Unit - Reset ability cooldowns for Hero[3]
      • Unit - Reset ability cooldowns for Hero[4]
      • -------- You can set Mana Duer Hero to 100% --------
      • Floating Text - Create floating text that reads Duel Arena at (Center of duel region <gen>) with Z offset 0.00, using font size 12.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change the color of (Last created floating text) to (0.00%, 100.00%, 100.00%) with 2.00% transparency
      • Game - Display to (All players) the text: |cFFFF00003|r
      • Wait 1.00 seconds
      • Game - Display to (All players) the text: |cFFFF00002|r
      • Wait 1.00 seconds
      • Game - Display to (All players) the text: |cFFFF00001|r
      • Wait 1.00 seconds
      • Game - Display to (All players) the text: |cFF00FF00Duel Batt...
      • -------- After 3 s Change Invul to Vul,Pause to unpause and order atack --------
      • Unit - Make Hero[1] Vulnerable
      • Unit - Make Hero[2] Vulnerable
      • Unit - Make Hero[3] Vulnerable
      • Unit - Make Hero[4] Vulnerable
      • Unit - Unpause Hero[1]
      • Unit - Unpause Hero[2]
      • Unit - Unpause Hero[3]
      • Unit - Unpause Hero[4]
      • Unit - Order Hero[1] to Attack-Move To TempPoint
      • Unit - Order Hero[2] to Attack-Move To TempPoint
      • Unit - Order Hero[3] to Attack-Move To TempPoint
      • Unit - Order Hero[4] to Attack-Move To TempPoint
      • -------- Effect ........ --------
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Floating Text - Destroy (Last created floating text)
      • Trigger - Turn on Hero Dies <gen>
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call RemoveLocation (udg_PointOfArena[1])
      • Custom script: call RemoveLocation (udg_PointOfArena[2])
      • Custom script: call RemoveLocation (udg_PointOfArena[3])
      • Custom script: call RemoveLocation (udg_PointOfArena[4])
Finaly,the Killer First hero dies Is Winner ^_^ And change all unit in map to unpause and vulnerble.after finaly,Run Create Timer :D
  • Hero Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Set ArenaGroup = (Units in duel region <gen>)
      • Set TempPoint = (Center of duel region <gen>)
      • Game - Display to (All players) the text: ((|cFF00FFFFTeam + (Name of (Owner of (Killing unit)))) + Win !|r)
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Floating Text - Destroy Float
      • Unit Group - Pick every unit in ArenaGroup and do (Actions)
        • Loop - Actions
          • Unit - Pause (Picked unit)
      • Wait 4.00 seconds
      • Unit - Unpause all units
      • Hero - Instantly revive Hero[1] at HeroPoint[1], Hide revival graphics
      • Unit - Move Hero[1] instantly to HeroPoint[1]
      • Camera - Pan camera for (Owner of Hero[1]) to HeroPoint[1] over 0.00 seconds
      • Hero - Instantly revive Hero[2] at HeroPoint[2], Hide revival graphics
      • Unit - Move Hero[2] instantly to HeroPoint[2]
      • Camera - Pan camera for (Owner of Hero[2]) to HeroPoint[2] over 0.00 seconds
      • Hero - Instantly revive Hero[3] at HeroPoint[3], Hide revival graphics
      • Unit - Move Hero[3] instantly to HeroPoint[3]
      • Camera - Pan camera for (Owner of Hero[3]) to HeroPoint[3] over 0.00 seconds
      • Hero - Instantly revive Hero[4] at HeroPoint[4], Hide revival graphics
      • Unit - Move Hero[4] instantly to HeroPoint[4]
      • Camera - Pan camera for (Owner of Hero[4]) to HeroPoint[4] over 0.00 seconds
      • Set NeutralGroup = (Units within 99999.00 of (Center of (Playable map area)))
      • Unit Group - Pick every unit in NeutralGroup and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Vulnerable
      • Wait 0.50 seconds
      • Trigger - Run Create Timer Window <gen> (ignoring conditions)
      • Custom script: call RemoveLocation (udg_HeroPoint[1])
      • Custom script: call RemoveLocation (udg_HeroPoint[2])
      • Custom script: call RemoveLocation (udg_HeroPoint[3])
      • Custom script: call RemoveLocation (udg_HeroPoint[4])
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup (udg_NeutralGroup)
      • Custom script: call DestroyGroup (udg_ArenaGroup)
      • Trigger - Turn off (This trigger)
You can Add a killer unit some gold of lumber and change effect,Text,.......
Have Fun This Map @_@

Keywords:
  • Duel Event V1.1
  • ..........................
Contents

Just another Warcraft III map (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. 11:07, 14th Oct 2012 Magtheridon96: Check my first post in the thread.

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

11:07, 14th Oct 2012
Magtheridon96: Check my first post in the thread.
 
Next time, instead of re-uploading, you can use the Update button in the Top Right corner of the resource thread.

Also, you didn't fix the Multi-instanceability :/
No matter what, a resource needs to be Multi-instanceable.

This was my previous review:

Magtheridon96 said:
19:58, 13th Oct 2012
Magtheridon96:

The system uses waits, leaks, it's not MI (Multi-Instanceable). (Or more known as MUI/MPI)

These will help you:
- How to fix leaks
- Hashtables
- Multi-Instance-ability

These links should help you fix the leaks and make the system Multi-instance-able.

We don't accept any form of Waits in systems/spells here because of all the disadvantages they have, and there are tons of workarounds for them. In fact, they don't need to be considered workarounds, because they're not as redundant and stupid as most of the things people consider to be "workarounds".

The last tutorial I linked should help you replace the waits with periodic triggers.
 
Level 7
Joined
Sep 2, 2011
Messages
350
Saying discouraging things won't make the spell better. Just point out the things that aren't right in this system to make it better.
 
Top