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

MUI Spell Traps v1

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
This simple map shows how to create a MUI spells.
I think you like, the lens shift is determined by the speed and position of the target (genial XD)

This is the first Spell that public!

Keywords:
spell,mui,traps
Contents

MUI Spell (Map)

Reviews
12th Dec 2015 IcemanBo: Too long time as NeedsFix. Rejected. 15:38, 6th Feb 2010 The_Reborn_Devil: This leaks. (Position of Intrappola_Caster) leaks, as well as all the others. Status: Rejected until updated Rating: N/A PM me or...

Moderator

M

Moderator

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

15:38, 6th Feb 2010
The_Reborn_Devil:

This leaks. (Position of Intrappola_Caster) leaks, as well as all the others.

Status: Rejected until updated
Rating: N/A

PM me or another mod once you've fixed this to get the spell reviewed again. Have a nice day!
 
Level 14
Joined
Jan 5, 2009
Messages
1,127
Hmmm the triggers look ok....
I'll post them:
  • Spell Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Set A = (A + 1)
      • Set Intrappola_Caster[A] = (Triggering unit)
      • Set Intrappola_Target[A] = (Target unit of ability being cast)
      • Set Intrappola_BOOL[A] = True
      • -------- --------
      • Special Effect - Create a special effect attached to the origin of Intrappola_Target[A] using Abilities\Spells\Human\AerialShackles\AerialShacklesTarget.mdl
      • Set Intrappola_Effect1[A] = (Last created special effect)
      • Lightning - Create a Magic Leash lightning effect from source (Position of Intrappola_Caster[A]) to target (Position of Intrappola_Target[A])
      • Set Intrappola_Light[A] = (Last created lightning effect)
  • Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer i) from 1 to A, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Intrappola_BOOL[i] Equal to True
            • Then - Actions
              • -------- Muovo il target e l'effetto fulmine --------
              • Unit - Turn collision for Intrappola_Target[i] Off
              • Unit - Pause Intrappola_Target[i]
              • Set Intrappola_Count[i] = (Intrappola_Count[i] + 1)
              • Set Intrappola_Distance[i] = (Distance between (Position of Intrappola_Caster[i]) and (Position of Intrappola_Target[i]))
              • -------- La velocitÃ* di spostamento del target è proporzionale a quella del Caster --------
              • Unit - Move Intrappola_Target[i] instantly to ((Position of Intrappola_Target[i]) offset by ((Current movement speed of Intrappola_Caster[i]) x (0.03 x ((Intrappola_Distance[i] / 400.00) - (0.45 + 0.00)))) towards (Angle from (Position of Intrappola_Target[i]) to (Position of Intrappola_Caster[i])) degre
              • Lightning - Move Intrappola_Light[i] to source (Position of Intrappola_Caster[i]) and target (Position of Intrappola_Target[i])
              • -------- Per ora è disattivato, permette di danneggiare le unitÃ* vicine al target --------
              • Unit Group - Pick every unit in (Units within 50.00 of (Position of Intrappola_Target[i])) and do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Intrappola_Target[i] Not equal to (Picked unit)
                    • Then - Actions
                      • Unit - Cause Intrappola_Target[i] to damage (Picked unit), dealing 2.00 damage of attack type Spells and damage type Spirit Link
                    • Else - Actions
              • -------- Questo serve solo per distruggere i distruttibili --------
              • Destructible - Pick every destructible in (Region centered at (Position of Intrappola_Target[i]) with size (150.00, 150.00)) and do (Actions)
                • Loop - Actions
                  • Destructible - Kill (Picked destructible)
              • -------- Quando si verifica una delle seguenti condizioni INTERROMPO il ciclo --------
              • -------- Timer scaduto --------
              • -------- Caster Morto --------
              • -------- Target Morto --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Or - Any (Conditions) are true
                    • Conditions
                      • Intrappola_Count[i] Greater than or equal to 200
                      • (Intrappola_Caster[i] is dead) Equal to True
                      • (Intrappola_Target[i] is dead) Equal to True
                • Then - Actions
                  • -------- Faccio tornare tutto normale --------
                  • Set Intrappola_BOOL[i] = False
                  • Special Effect - Destroy Intrappola_Effect1[i]
                  • Unit - Turn collision for Intrappola_Target[i] On
                  • Unit - Unpause Intrappola_Target[i]
                  • Lightning - Destroy Intrappola_Light[i]
                • Else - Actions
            • Else - Actions
 
Level 19
Joined
Feb 4, 2009
Messages
1,313
How can I stop the cycle when the spell for that 'i' ending? @resolved..
mmh help me,
Custom script: call RemoveLocation(udg_Variable_name) << wrong
How i do? thx (I never used custom scripts)


use udg_i instead
i would be a local variable
udg_ is for globals
all variables you create are called "udg_"something

I just tested your spell and let it run while eating (for like 20 minutes) and after that I wasn't able to close wc3 cause of leaks (it leaked 200 mbyte!!!!!)
 
Top