Spellpack Simple DotA Slams

waaaks!

Zinctified
Reaction score
256
MUI
JASS and GUI
Leakless

BTNSeaGiantWarStomp.gif

Ravage (JASS) : Requires New Gen

Slams the ground, causing waves of spikes to ring the hero in all directions. Deals damage and stuns.

Level 1 - Deals 250 damage. 1.2 seconds stun.
Level 2 - Deals 350 damage. 1.5 seconds stun.
Level 3 - Deals 450 damage. 1.8 seconds stun.



JASS:
globals
 constant integer RavSpellId = 'A000' //Ravage Spell Id
 constant integer RavDSpellId = 'A001' //Ravage(Dummy) Spell Id
 constant string RavOrderId = "impale" //Order string of the Ravage(Dummy) Spell
 constant integer RavDummy = 'u001' //Your Dummy unit
endglobals

struct Rdata
 unit caster
 unit dummy
 location loc
 location pol
 integer level
 integer n
endstruct

function Trig_Ravage_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == RavSpellId
endfunction

function Trig_Ravage_Actions takes nothing returns nothing
 local Rdata d = Rdata.create()
 set d.caster = GetTriggerUnit()
 set d.loc = GetUnitLoc(d.caster)
 set d.level = GetUnitAbilityLevel(d.caster, RavSpellId)
 set d.n = 1
 loop
  exitwhen d.n > 36
  set d.pol = PolarProjectionBJ(d.loc, 50.0, 10*d.n)
  set d.dummy = CreateUnit(GetOwningPlayer(d.caster), RavDummy, GetUnitX(d.caster), GetUnitY(d.caster), 10*d.n)
  call UnitApplyTimedLife(d.dummy, 'BTLF', 5.0)
  call UnitAddAbility(d.dummy, RavDSpellId)
  call SetUnitAbilityLevel(d.dummy, RavDSpellId, d.level)
  call IssuePointOrderLoc(d.dummy, RavOrderId, d.pol)
  set d.n = d.n + 1
 endloop
 call d.destroy()
endfunction

//===========================================================================
function InitTrig_Ravage takes nothing returns nothing
    set gg_trg_Ravage = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Ravage, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Ravage, Condition( function Trig_Ravage_Conditions ) )
    call TriggerAddAction( gg_trg_Ravage, function Trig_Ravage_Actions )
endfunction


BTNGolemThunderclap.gif

Reverse Polarity (GUI)

Through some unknown property of matter, the Magnataur sucks all nearby enemies to his position and stuns them with a powerful slam, dealing damage.

Level 1 - 2 second stun, deals 150 damage.
Level 2 - 3 second stun, dealing 225 damage.
Level 3 - 4 second stun, dealing 300 damage.



Code:
Reverse Polarity
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Reverse Polarity 
    Actions
        Set Rev_cast = (Triggering unit)
        Set Rev_loc = (Position of Rev_cast)
        Set Rev_group = (Units within 600.00 of Rev_loc matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an ally of (Owner of Rev_cast)) Equal to False)))
        Unit Group - Pick every unit in Rev_group and do (Actions)
            Loop - Actions
                Unit - Pause (Picked unit)
                Unit - Move (Picked unit) instantly to Rev_loc
                Unit - Unpause (Picked unit)
        Custom script:   call RemoveLocation(udg_Rev_loc)
        Custom script:   call DestroyGroup(udg_Rev_group)

Such simple spells Ive made, while theres nothing to do with my project LotAL

credits to Tinki3 for Spell's Test Map Template

feedbacks are welcome
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
@Reverse Polarity
You forgot to add 'Matching Unit is a Structure Equal to False' :p
Or do you want Structures to be sucked too?

Question: Why do you need to Pause the units?
 

NetherHawk

New Member
Reaction score
26
cant ravage be done simply with GUI too while being MUI too. >.> but i suppose Jass comes naturally to u

+rep!
 

NapaHero

Back from the dead...
Reaction score
43
Reverse Polarity, in DotA, stuns and deals damage, but you are pausing the units and not dealing damage. Fix your trigger, please.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
That's probably because the units are moved while the War Stomp has finished.
If I were to make this spell, I'd pick all units nearby (with conditions) and Storm Bolt them (according to level) each and move them (or move and then Storm Bolt, people won't notice anyway)
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>cant ravage be done simply with GUI too while being MUI too. >.>
True

>>Why do you need to Pause the units?
Erm...yeah, waaaks!. You don't need to pause when moving the units because your spell already has stun.

@Waaaks!
Why use struct..? It can be done easily without vJass syntax. :p
But as you like.

Anyway, add this method into your ravange's struct:
JASS:
method onDestroy takes nothing returns nothing
  set .caster = null
  set .dummy= null
    call RemoveLocation(loc)
    call RemoveLocation(pol)
  set loc = null
  set pol = null
endmethod

This method is ran everytime you destroy that struct. It helps you to remove leak...
And I think I found a leak:
Code:
loop
  exitwhen d.n > 36
  [color=red]set d.pol = PolarProjectionBJ(d.loc, 50.0, 10*d.n)[/color] //Keep setting without removing?
  set d.dummy = CreateUnit(GetOwningPlayer(d.caster), RavDummy, GetUnitX(d.caster), GetUnitY(d.caster), 10*d.n)
  call UnitApplyTimedLife(d.dummy, 'BTLF', 5.0)
  call UnitAddAbility(d.dummy, RavDSpellId)
  call SetUnitAbilityLevel(d.dummy, RavDSpellId, d.level)
  call IssuePointOrderLoc(d.dummy, RavOrderId, d.pol)
  set d.n = d.n + 1
 endloop
 

Naminator

Coming Back To Life
Reaction score
76
I don't want to be rude. But this 2 spell has already been made by emjlr3. Ravage in JASS and Reverse Polarity in GUI also. Look in the DotA Spell Index.

6 DotA Spells: (Made by emjlr3)
Rupture: Deals a mighty blow to the enemy causing any movement to result in bleeding and loss of life.
Freezing Field: Causes many random icy explosions in an area surrounding Rylai. Lasts 4 seconds.
Toss: Tiny grabs the nearest unit, friend or foe, and launches them at a location. Upon landing, the unit deals damage in an area as well as receiving 20% of that damage to themselves (this damage increases as your size increases).
Sprout: Sprouts a ring of trees around an enemy unit, trapping it in place.
Reverse Polarity: Through some unknown property of matter, the Magnataur sucks all nearby enemies to his position and stuns them with a powerful slam, dealing damage.
Ravage: Slams the ground, causing waves of spikes to ring the hero in all directions. Deals damage and stuns.

Good job by the way!
 

emjlr3

Change can be a good thing
Reaction score
395
yea these have been done

and there is no need for a strct in ravage, completely un necc.
 

waaaks!

Zinctified
Reaction score
256
lol i hate GUI stuffs..thats why i made ravage in jass

for the reverse polarity...it does damage, it doesnt damage in the trigger, but damages in the spell

i based it off with warstomp and give it a damage....well if im moving my unit, ill pause and unpause it after moving...maybe because it sometimes move the unit to somewhere in the map

for ravage...i tried to make it as an ordinary jass...but newgen gives me error when i tried to test it ingame...like there are locations made even i removed the leak already....thats why i tried structs...and when i used structs in ravage, new gen didnt give any errors in game
 

Sim

Forum Administrator
Staff member
Reaction score
534
Unapproved, reasons were already stated above.

As for the Reverse Polarity, it doesn't pause the units. The normal War Stomp AoE should do it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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