• 🏆 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] Is there something wrong with my demonic circle?

Status
Not open for further replies.
Demonic circle:
cast 1: puts demonic circle at the position of the warlock.

cast 2: teleports the warlock at the demonic circle.

Note: the spell is not meant to be MUI.

  • Demonic Circle
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Demonic Circle (Warlock)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Warlock_DC_CanTel Equal to False
        • Then - Actions
          • Set Units_CheckGr[7] = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Warlock))
          • Unit Group - Pick every unit in Units_CheckGr[7] and do (Actions)
            • Loop - Actions
              • Set Warlock_DC_Loc = (Position of (Picked unit))
          • Special Effect - Create a special effect at Warlock_DC_Loc using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
          • Set Warlock_DC_Effect = (Last created special effect)
          • Custom script: call DestroyGroup(udg_Units_CheckGr[7])
          • Set Warlock_DC_CanTel = True
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Warlock_DC_CanTel Equal to False
        • Then - Actions
          • Set Units_CheckGr[7] = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Warlock))
          • Unit Group - Pick every unit in Units_CheckGr[7] and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to Warlock_DC_Loc
              • Camera - Pan camera for (Owner of (Picked unit)) to Warlock_DC_Loc over 0.00 seconds
          • Custom script: call DestroyGroup(udg_Units_CheckGr[7])
          • Special Effect - Destroy Warlock_DC_Effect
          • Custom script: call RemoveLocation(udg_Warlock_DC_Loc)
          • Set Warlock_DC_CanTel = False
          • Skip remaining actions
        • Else - Actions
 
Status
Not open for further replies.
Top