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: 616

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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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