Meepo net spell [GUI]

Powergoat

New Member
Reaction score
0
I am in need of something like the aoe net spell from the hero Meepo in DotA.
For you who doesn't know how it works it's a target aoe spell that ensnares hit targets. I've searched but only found JASS solutions so far...

Grateful for help :thup:
 

Ithladir

Member
Reaction score
5
How about first, using a AoE spell like flamestrike. Then removing all effects damage etc. then making a dummy to cast ensnare.

Example:
Code:
AoE Net
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to AoE Net
    Actions
        Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
        Unit Group - Pick every unit in (Units within 250.00 of (Position of (Summoned unit)) matching (((Picked) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
            Loop - Actions
        Unit - Order (Summoned unit) to Orc Raider - Ensnare (Picked unit)
        Unit - Remove (Summoned unit) from the game

This might just work :l haven't tried myself though :l and it requires that you know dummies i guess.

The Ensnare spells is simply the raiders standard spell, try setting the cooldown to 0 and cost to 0. Hope this works :l and good luck
 

vypur85

Hibernate
Reaction score
803
My version. Change the art yourself. The immobilising ability is based off Entangling Roots not Ensnare.

It's MUI and easily implemented.

Code:
Net Init
    Events
        Map initialization
    Conditions
    Actions
        Set Abi_Net = Net 
        Set Abi_Net_EntanglingRoots = Entangling Roots 
        Set UnitType_Net_Dummy = Dummy
        Set Real_Net_NetMoveRate = 6.00

Code:
Net
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Abi_Net
    Actions
        Set Pt_Net_TriggerPos = (Position of (Triggering unit))
        Set Pt_Net_TargetPos = (Target point of ability being cast)
        Unit - Create 1 UnitType_Net_Dummy for (Owner of (Triggering unit)) at Pt_Net_TriggerPos facing (Facing of (Triggering unit)) degrees
        Unit - Set the custom value of (Last created unit) to (Integer(((Distance between Pt_Net_TriggerPos and Pt_Net_TargetPos) / Real_Net_NetMoveRate)))
        Unit - Add Abi_Net to (Last created unit)
        Unit - Set level of Abi_Net for (Last created unit) to (Level of Abi_Net for (Triggering unit))
        Unit Group - Add (Last created unit) to Unitgp_Net_PickedUnit
        Unit - Turn collision for (Last created unit) Off
        Trigger - Turn on Net Movement <gen>
        Custom script:   call RemoveLocation (udg_Pt_Net_TriggerPos)
        Custom script:   call RemoveLocation (udg_Pt_Net_TargetPos)

Code:
Net Movement
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in Unitgp_Net_PickedUnit and do (Actions)
            Loop - Actions
                Game - Display to (All players) the text: (String((Custom value of (Picked unit))))
                Set Unit_Net_PickedUnit = (Picked unit)
                Set Pt_Net_TriggerPos = (Position of (Picked unit))
                Set Pt_Net_TargetPos = (Pt_Net_TriggerPos offset by Real_Net_NetMoveRate towards (Facing of (Picked unit)) degrees)
                Unit - Move (Picked unit) instantly to Pt_Net_TargetPos
                Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Custom value of (Picked unit)) Less than 0
                    Then - Actions
                        Set Unitgp_Net_AOEunit = (Units within 300.00 of Pt_Net_TriggerPos matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is alive) Equal to True))))
                        Unit Group - Pick every unit in Unitgp_Net_AOEunit and do (Actions)
                            Loop - Actions
                                Unit - Create 1 UnitType_Net_Dummy for (Owner of Unit_Net_PickedUnit) at Pt_Net_TriggerPos facing Default building facing degrees
                                Unit - Add Abi_Net_EntanglingRoots to (Last created unit)
                                Unit - Set level of Abi_Net_EntanglingRoots for (Last created unit) to (Level of Abi_Net for Unit_Net_PickedUnit)
                                Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
                                Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                                Unit - Hide (Last created unit)
                        Unit - Remove (Picked unit) from the game
                        Custom script:   call DestroyGroup (udg_Unitgp_Net_AOEunit)
                    Else - Actions
                Custom script:   call RemoveLocation (udg_Pt_Net_TriggerPos)
                Custom script:   call RemoveLocation (udg_Pt_Net_TargetPos)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in Unitgp_Net_PickedUnit) Equal to 0
            Then - Actions
                Trigger - Turn off (This trigger)
            Else - Actions

Real_Net_NetMoveRate determines the speed of the net. Increase it to make it move slower (<-- Edited). Tell me if there's bug.


Note: Please don't take this submission for granted :p. Try to learn from it and if you have any request in future, try searching first (as you've did) and try trigger something yourself first before asking :).

Edit:
One more thing, since I've used Custom Value to check the distance, the actual distance traveled could be compromised. One way to fix this is to utilise the dummy's movespeed or HP or Mana instead. But personally prefer to use custom value, so this is how it's going to be now :).View attachment 24052
 

Attachments

  • Meepo Net.w3x
    19.6 KB · Views: 182

PrisonLove

Hard Realist
Reaction score
78
How about first, using a AoE spell like flamestrike. Then removing all effects damage etc. then making a dummy to cast ensnare.

Example:
Code:
AoE Net
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to AoE Net
    Actions
        Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
        Unit Group - Pick every unit in (Units within 250.00 of (Position of (Summoned unit)) matching (((Picked) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
            Loop - Actions
        Unit - Order (Summoned unit) to Orc Raider - Ensnare (Picked unit)
        Unit - Remove (Summoned unit) from the game

This might just work :l haven't tried myself though :l and it requires that you know dummies i guess.

The Ensnare spells is simply the raiders standard spell, try setting the cooldown to 0 and cost to 0. Hope this works :l and good luck

wouldnt this work just fine as long as you set teh cooldown for ensare to 0?
 

PooBucket

New Member
Reaction score
12
wouldnt this work just fine as long as you set teh cooldown for ensare to 0?

But what about the movement of the net? I mean, like it shouldn't just be at the position of the flame strike but moves there and anything in it's way gets ensnared? This is kinda the same as Invoker's Wind skill.
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
But what about the movement of the net? I mean, like it shouldn't just be at the position of the flame strike but moves there and anything in it's way gets ensnared? This is kinda the same as Invoker's Wind skill.

Didn't get much, are you making a meepo spell or not? Since the meepo spell in dota actually only ensnares the targeted unit that are caught in the targeted point.
 

cleeezzz

The Undead Ranger.
Reaction score
268
yes but it still needs the art where the net actually travels to the location AND THEN ensares all enemy units in an AoE. Anyway, i dont know why were arguing about this, theres already a working demo.

(except dont you think .01 is a bit too fast XD, it might suffer in fps.) anyway gj, that spell is a pain to make in GUI.
 

vypur85

Hibernate
Reaction score
803
> dont you think .01 is a bit too fast

It won't lag I think :p. Only one dummy movement per cast, so it should be ok :). Don't think there'll be problem if 10 players cast simultaneously. Besides, it's only short distance.

Could have submitted this in the spell section but kinda lazy to type out all the required stuff =.=' (one reason why I don't fancy submitting spells). :p
 

cleeezzz

The Undead Ranger.
Reaction score
268
i guess your right, its only 800 range.
and the long wait for approval xd.
 

Ithladir

Member
Reaction score
5
Hi back again ;) and yeah i thought of entagle to, but clock was 03.00AM and i just fell asleep w8ing in my bed ^^ but i guess my version maybe works, tho it lacks some specials arts, like the first throw and the second dummy spells should be entagle ur right :l

[EDIT]:Well now a lot of solutions are up so i guess its solved ^^ (maybe my version works for another kind of spell instead ^^)
 

Powergoat

New Member
Reaction score
0
Thanks alot everybody... I do try to program my spells first but when I get stuck I use these forums :)

Edit: I have some more questions about the code. First of all, I simply don't get what the custom values are there for. Secondly, there is a bug where the net is thrown at a random point beside where I aim at some times.

Thanks
 

Ithladir

Member
Reaction score
5
Hehe tested my version of the net, daem not working ^^ and major lagg creation ^^ Warning! do not use my trigger :D
 

wellwish3r

wishes wells.
Reaction score
52
Hehe tested my version of the net, daem not working ^^ and major lagg creation ^^ Warning! do not use my trigger :D

you order to snare is not in the loop, just btw :p
and instead of instantly remove it, add a 1 sec expiaration timer to the unit, so it has time to cast (even no casting time is not totally instant (animations etc))
 

vypur85

Hibernate
Reaction score
803
> First of all, I simply don't get what the custom values are there for.

Custom values are there to measure the distance between the target point and the caster. Once determined, the distance is set as the custom value of the dummy unit (the net). In the periodic trigger, the custom value of the dummy will be reduced progressively until it becomes 0, which is the point where the dummy has already reached its target location. The dummy is then removed and the AOE units of the area are picked to be Entangled.

> Secondly, there is a bug where the net is thrown at a random point beside where I aim at some times.

Not sure about this. Did you mean your own made trigger or my demo map? It seems fine to me after few tries. If you mean your trigger, then try posting your trigger.
 

ertaboy356b

Old School Gamer
Reaction score
86
You need to use slides in this spell.. Look at the tutorial section on how to do slides.. Once you learned it and got the hang of it, making spells like this will be pretty easy..

NOTE: I'm not into mapping anymore.. I don't have WE and I can't map.. I need to relearn in order to map again ^^
 

Ithladir

Member
Reaction score
5
you order to snare is not in the loop, just btw :p
and instead of instantly remove it, add a 1 sec expiaration timer to the unit, so it has time to cast (even no casting time is not totally instant (animations etc))

Hehe noticed about the net loop and yeah time, damn knew i forgot something ^^ i guess i will try it out again. thanks :)
 

Powergoat

New Member
Reaction score
0
Ok, first of all, the net spell is pretty much copied except for that I use monsoon instead of aoe channeling spell, but i think that should be ok. Is there a fast way to post full code into a message like this? If so please tell me :D.

EDIT: I've found out when the spells bugs. It's when the casting hero is turned away from the way I'm aiming. If i try to cast when he's not turned the right we his aim fails (big time :))
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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