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

Reapet thingy

Status
Not open for further replies.
Level 6
Joined
Dec 7, 2004
Messages
137
Why dos this not work..
I have now tried to do almost everything to it and it just wont work..

Code:
Al
    Events
        Unit - A unit Begins casting an ability
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Transmute Spikes (Al)
            Then - Actions
                Wait 0.25 seconds
                Set Al = (Casting unit)
                Set Real = 1.00
                For each (Integer A) from 1 to 6, do (Actions)
                    Loop - Actions
                        Set Loc1 = ((Position of Al) offset by 50.00 towards Real degrees)
                        Unit - Create 1 Dummy Caster for (Owner of (Casting unit)) at Loc1 facing Real degrees
                        Unit - Add Impale (al) to (Last created unit)
                        Unit - Set Level of Impale (al) for (Last created unit) to (Level of Transmute Spikes (Al) for Al)
                        Set Loc2 = ((Position of (Last created unit)) offset by 100.00 towards Real degrees)
                        Unit - Order (Last created unit) to Undead Crypt Lord - Impale Loc2
                        Set Real = (Real + 60.00)
                        Custom script: call RemoveLocation( udg_Loc1 ) 
                        Custom script: call RemoveLocation( udg_Loc2 ) 
                Set Real = 0.00
            Else - Actions

I'm getting so annoying cause i can not find any faults with it :(
 
Status
Not open for further replies.
Top