Spell Terra Crush

Hatebreeder

So many apples
Reaction score
381
You know those days, where your all bored and stuff, and you just can't think of what to do? Well, I came up with this in my Boredome.
Terra Crush:
TerrVrushShot.jpg
What it does:
- Pushes all enemy Units in a 225 AOE around the caster 300 Units away, and deals damage equal to X * his Strength.

It's non-MUI
No Lagg
I also didn't find any leaks, so I guess it's leakless.
You don't need to give Credits.
Now to you people, Gimme Feedback

Code:
Terra Crush Init
    Event
        Unit - A unit starts the effect of an Ability
    Condition
        (Ability being cast) Equal Terra Crush 
    Actions
        Custom script:   set udg_TC_Group[2] = CreateGroup()
        Set TC_Caster = (Casting unit)
        Set TC_CasterLocation = (Position of TC_Caster)
        Specialeffect - Create a special effect at TC_CasterLocation using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
        Specialeffect - Destroy (Last created special effect)
        Set TC_NumberOfUnits = (Number of units in (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is a Structure) Equal to False) and ((((Matching unit) is Immun against Magic) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_Group[2] Equal to false)))))
        For each (Integer A) from 1 to TC_NumberOfUnits, do (Actions)
            Loop - Actions
                Set TC_Group[1] = (Random 1 units from (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is a Structure) Equal to False) and ((((Matching unit) is Immun against Magic) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_Group[2] Equal to false))))
                Einheitengruppe - Pick every unit in TC_Group[1] and do (Actions)
                    Loop - Actions
                        Set TC_Units[(Integer A)] = (Picked unit)
                        Set TC_UnitsLocation[(Integer A)] = (Position of TC_Units[(Integer A)])
                        Set TC_Angle[(Integer A)] = (Angle from TC_CasterLocation to TC_UnitsLocation[(Integer A)])
                        Set TC_Distance[(Integer A)] = 300.00
                        Unit-Group - Add TC_Units[(Integer A)] to TC_Group[2]
                        Unit - Cause TC_Caster to damage TC_Units[(Integer A)], dealing ((3.00 x (Real((Level of Terra Crush  for TC_Caster)))) x (Real((Kraft of TC_Caster (Including bonuses))))) damage of attack type Held and damage type Normal
                        Floating Text - Create floating text that reads (String(((3 x (Level of Terra Crush  for TC_Caster)) x (Kraft of TC_Caster (Including bonuses))))) at TC_UnitsLocation[(Integer A)] with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                        Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
                        Floating Text - Change (Last created floating text): Deaktivieren permanence
                        Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
                        Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
                        Custom script:   call RemoveLocation(udg_TC_UnitsLocation[GetForLoopIndexA()])
                Custom script:   call DestroyGroup(udg_TC_Group[1])
                Trigger - Turn on Terra Crush Effect <gen>
Code:
Terra Crush Effect
    Event
        Zeit - Every 0.03 seconds of game time
    Condition
    Action
        For each (Integer A) from 1 to TC_NumberOfUnits, do (Actions)
            Loop - Actions
                Set TC_UnitsLocation[(Integer A)] = (Position of TC_Units[(Integer A)])
                Set TC_MoveLocation[(Integer A)] = (TC_UnitsLocation[(Integer A)] offset by 12.00 towards TC_Angle[(Integer A)] degrees)
                Unit - Move TC_Units[(Integer A)] instantly to TC_MoveLocation[(Integer A)], facing TC_Angle[(Integer A)] degrees
                Set TC_Distance[(Integer A)] = (TC_Distance[(Integer A)] - 12.00)
                Specialeffect - Create a special effect at TC_MoveLocation[(Integer A)] using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
                Specialeffect - Destroy (Last created special effect)
                Custom script:   call RemoveLocation(udg_TC_UnitsLocation[GetForLoopIndexA()])
                Custom script:   call RemoveLocation(udg_TC_MoveLocation[GetForLoopIndexA()])
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    'IF'-Conditions
                        TC_Distance[(Integer A)] smaller equal 0.00
                    'THEN'-Actions
                        Set TC_Count = (TC_Count + 1)
                    'ELSE'-Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            'IF'-Conditions
                TC_Count Greater equal TC_NumberOfUnits
            'THEN'-Actions
                Set TC_Count = 0
                Unit-Group - Remove all units from TC_Group[2]
                Custom script:   call DestroyGroup(udg_TC_Group[2])
                Custom script:   call RemoveLocation(udg_TC_CasterLocation)
                Trigger - Turn off (This trigger)
            'ELSE'-Action

*Edit* Fixed a Leak, and added Implementation Instuctions ^^
 

Attachments

  • TerraCrushByHatebreeder.w3x
    58.3 KB · Views: 613

Hatebreeder

So many apples
Reaction score
381
looks pretty nice from the screenshot, you may wanna add a ! after the damage figure, just to make it look nice ^^

off-topic: lol, you changed your avatar back to the crazy zoom-in thingy ^^

Zoom-in thingy FTW !! :D
You know whats funny?
TrollVottel knows that I don't have leaks without even looking at the Map (Well, no one has Downloaded it yet) xD
 

Hatebreeder

So many apples
Reaction score
381
Post code.

Code:
Terra Crush Init
    Event
        Unit - A unit starts the effect of an Ability
    Condition
        (Ability being cast) Equal Terra Crush 
    Actions
        Custom script:   set udg_TC_Group[2] = CreateGroup()
        Set TC_Caster = (Casting unit)
        Set TC_CasterLocation = (Position of TC_Caster)
        Specialeffect - Create a special effect at TC_CasterLocation using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
        Specialeffect - Destroy (Last created special effect)
        Set TC_NumberOfUnits = (Number of units in (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is a Structure) Equal to False) and ((((Matching unit) is Immun against Magic) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_Group[2] Equal to false)))))
        For each (Integer A) from 1 to TC_NumberOfUnits, do (Actions)
            Loop - Actions
                Set TC_Group[1] = (Random 1 units from (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is a Structure) Equal to False) and ((((Matching unit) is Immun against Magic) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_Group[2] Equal to false))))
                Einheitengruppe - Pick every unit in TC_Group[1] and do (Actions)
                    Loop - Actions
                        Set TC_Units[(Integer A)] = (Picked unit)
                        Set TC_UnitsLocation[(Integer A)] = (Position of TC_Units[(Integer A)])
                        Set TC_Angle[(Integer A)] = (Angle from TC_CasterLocation to TC_UnitsLocation[(Integer A)])
                        Set TC_Distance[(Integer A)] = 300.00
                        Unit-Group - Add TC_Units[(Integer A)] to TC_Group[2]
                        Unit - Cause TC_Caster to damage TC_Units[(Integer A)], dealing ((3.00 x (Real((Level of Terra Crush  for TC_Caster)))) x (Real((Kraft of TC_Caster (Including bonuses))))) damage of attack type Held and damage type Normal
                        Floating Text - Create floating text that reads (String(((3 x (Level of Terra Crush  for TC_Caster)) x (Kraft of TC_Caster (Including bonuses))))) at TC_UnitsLocation[(Integer A)] with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                        Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
                        Floating Text - Change (Last created floating text): Deaktivieren permanence
                        Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
                        Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
                        Custom script:   call RemoveLocation(udg_TC_UnitsLocation[GetForLoopIndexA()])
                Custom script:   call DestroyGroup(udg_TC_Group[1])
                Trigger - Turn on Terra Crush Effect <gen>
Code:
Terra Crush Effect
    Event
        Zeit - Every 0.03 seconds of game time
    Condition
    Action
        For each (Integer A) from 1 to TC_NumberOfUnits, do (Actions)
            Loop - Actions
                Set TC_UnitsLocation[(Integer A)] = (Position of TC_Units[(Integer A)])
                Set TC_MoveLocation[(Integer A)] = (TC_UnitsLocation[(Integer A)] offset by 12.00 towards TC_Angle[(Integer A)] degrees)
                Unit - Move TC_Units[(Integer A)] instantly to TC_MoveLocation[(Integer A)], facing TC_Angle[(Integer A)] degrees
                Set TC_Distance[(Integer A)] = (TC_Distance[(Integer A)] - 12.00)
                Specialeffect - Create a special effect at TC_MoveLocation[(Integer A)] using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
                Specialeffect - Destroy (Last created special effect)
                Custom script:   call RemoveLocation(udg_TC_UnitsLocation[GetForLoopIndexA()])
                Custom script:   call RemoveLocation(udg_TC_MoveLocation[GetForLoopIndexA()])
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    'IF'-Conditions
                        TC_Distance[(Integer A)] smaller equal 0.00
                    'THEN'-Actions
                        Set TC_Count = (TC_Count + 1)
                    'ELSE'-Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            'IF'-Conditions
                TC_Count Greater equal TC_NumberOfUnits
            'THEN'-Actions
                Set TC_Count = 0
                Unit-Group - Remove all units from TC_Group[2]
                Custom script:   call DestroyGroup(udg_TC_Group[2])
                Custom script:   call RemoveLocation(udg_TC_CasterLocation)
                Trigger - Turn off (This trigger)
            'ELSE'-Action

Damn, took me 45 minutes to translate all >.<
Arman, you owe me 45 minutes of your Life.
 

duyen

New Member
Reaction score
214
Code:
Terra Crush Init
    Event
        Unit - A unit starts the effect of an Ability
    Condition
        (Ability being cast) Equal Terra Crush 
    Actions
        Custom script:   set udg_TC_Group[2] = CreateGroup()
        Set TC_Caster = (Casting unit)
        Set TC_CasterLocation = (Position of TC_Caster)
        Specialeffect - Create a special effect at TC_CasterLocation using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
        Specialeffect - Destroy (Last created special effect)
        Set TC_NumberOfUnits = (Number of units in (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is a Structure) Equal to False) and ((((Matching unit) is Immun against Magic) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_Group[2] Equal to false)))))
        For each (Integer A) from 1 to TC_NumberOfUnits, do (Actions)
            Loop - Actions
                Set TC_Group[1] = (Random 1 units from (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is a Structure) Equal to False) and ((((Matching unit) is Immun against Magic) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_Group[2] Equal to false))))
                Einheitengruppe - Pick every unit in TC_Group[1] and do (Actions)
                    Loop - Actions
                        Set TC_Units[(Integer A)] = (Picked unit)
                        Set TC_UnitsLocation[(Integer A)] = (Position of TC_Units[(Integer A)])
                        Set TC_Angle[(Integer A)] = (Angle from TC_CasterLocation to TC_UnitsLocation[(Integer A)])
                        Set TC_Distance[(Integer A)] = 300.00
                        Unit-Group - Add TC_Units[(Integer A)] to TC_Group[2]
                        Unit - Cause TC_Caster to damage TC_Units[(Integer A)], dealing ((3.00 x (Real((Level of Terra Crush  for TC_Caster)))) x (Real((Kraft of TC_Caster (Including bonuses))))) damage of attack type Held and damage type Normal
                        Floating Text - Create floating text that reads (String(((3 x (Level of Terra Crush  for TC_Caster)) x (Kraft of TC_Caster (Including bonuses))))) at TC_UnitsLocation[(Integer A)] with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                        Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
                        Floating Text - Change (Last created floating text): Deaktivieren permanence
                        Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
                        Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
                        Custom script:   call RemoveLocation(udg_TC_UnitsLocation[GetForLoopIndexA()])
                Custom script:   call DestroyGroup(udg_TC_Group[1])
                Trigger - Turn on Terra Crush Effect <gen>
Code:
Terra Crush Effect
    Event
        Zeit - Every 0.03 seconds of game time
    Condition
    Action
        For each (Integer A) from 1 to TC_NumberOfUnits, do (Actions)
            Loop - Actions
                Set TC_UnitsLocation[(Integer A)] = (Position of TC_Units[(Integer A)])
                Set TC_MoveLocation[(Integer A)] = (TC_UnitsLocation[(Integer A)] offset by 12.00 towards TC_Angle[(Integer A)] degrees)
                Unit - Move TC_Units[(Integer A)] instantly to TC_MoveLocation[(Integer A)], facing TC_Angle[(Integer A)] degrees
                Set TC_Distance[(Integer A)] = (TC_Distance[(Integer A)] - 12.00)
                Specialeffect - Create a special effect at TC_MoveLocation[(Integer A)] using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
                Specialeffect - Destroy (Last created special effect)
                Custom script:   call RemoveLocation(udg_TC_UnitsLocation[GetForLoopIndexA()])
                Custom script:   call RemoveLocation(udg_TC_MoveLocation[GetForLoopIndexA()])
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    'IF'-Conditions
                        TC_Distance[(Integer A)] smaller equal 0.00
                    'THEN'-Actions
                        Set TC_Count = (TC_Count + 1)
                    'ELSE'-Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            'IF'-Conditions
                TC_Count Greater equal TC_NumberOfUnits
            'THEN'-Actions
                Set TC_Count = 0
                Unit-Group - Remove all units from TC_Group[2]
                Custom script:   call DestroyGroup(udg_TC_Group[2])
                Custom script:   call RemoveLocation(udg_TC_CasterLocation)
                Trigger - Turn off (This trigger)
            'ELSE'-Action

Damn, took me 45 minutes to translate all >.<
Arman, you owe me 45 minutes of your Life.

You misspelled my name and you could of just posted it in your native language.
 

Trollvottel

never aging title
Reaction score
262
>You misspelled my name and you could of just posted it in your native language.
err aRman? it IS english.... look for the code before posting crap, there are only 2-4 words in german left, use a translator ^^
 

Flare

Stops copies me!
Reaction score
662
read what anman said properly ^^ ill assume that he thought hatebreeder's native language is german

you could of just posted it in your native language.

btw, LOL at the !. did you Paint those in?

also, if you copy-pasted that into google translator (in the german form obviously) would it translate it all, considering all the spaces and stuff ^^
 

Hatebreeder

So many apples
Reaction score
381
read what anman said properly ^^ ill assume that he thought hatebreeder's native language is german



btw, LOL at the !. did you Paint those in?

also, if you copy-pasted that into google translator (in the german form obviously) would it translate it all, considering all the spaces and stuff ^^

Yes I did do it by Paint xD :D Should be a small Gag :)
Well, I had o translate it, or else no one would understand shit what is written in there (Yes, some Words were so messed up, because TH doesn't have specific letters)

PS: Google translator sucks.
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
> and ((((Matching unit) is Immun against Magic)
=>
and ((((Matching unit) is Magic Immune)

> Deaktivieren permanence
=>
Disable permanence?

> Zeit - Every 0.03 seconds of game time
=>
Time - Every 0.03 seconds of game time
;)
 

Hero

─║╣ero─
Reaction score
250
This is not MUI by the way. The trigger is turned on and off.

To make it MUI make it in JASS.
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
You have no importing instructions, this spell will not be approved until you write them.
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
There is a leak in your spell:

Code:
Set TC_NumberOfUnits = (Number of units in (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_G

You got a unit group leak there. I didn't find any other leaks, so once you fix this one and write importing instructions the spell will be approved.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top