Spell Terra Crush

Hatebreeder

So many apples
Reaction score
380
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: 610

Hatebreeder

So many apples
Reaction score
380
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
380
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
380
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 The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/
  • The Helper The Helper:
    Here is another comfort food favorite - Million Dollar Casserole - https://www.thehelper.net/threads/recipe-million-dollar-casserole.193614/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top