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

I need a spell

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to *your ability*
  • Actions
    • Set tempunit = (Target unit of ability being cast)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • IF - Conditions
        • (Unit-type of (Triggering Unit)) Equal to *your unit*
        • (Unit-type of tempunit) Equal to *your second unit*
      • Then - Actions
        • Set temppoint = (Position of (Triggering Unit))
        • Set temppoint2 = (Position of tempunit2)
        • Special Effect - Create a special effect at temppoint using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
        • Special Effect - Destroy (last created special effect)
        • Einheit - Replace (Triggering Unit) with a *your new unit* using Old unit: Rel. life and mana
        • Special Effect - Create a special effect at temppoint2 using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
        • Special Effect - Destroy (last created special effect)
        • Unit - Remove tempunit
        • Custom script: call RemoveLocation(udg_temppoint)
        • Custom script: call RemoveLocation(udg_temppoint2)
        • Else - Actions
          • (..)
    • Else - Actions
      • (..)
If you want more units to be able to fuse, you have to put another if/then/else-loop in the 'first' Else-Actions
 
Status
Not open for further replies.
Top