How do i make a damaging ensnare spell?

Broshir

New Member
Reaction score
2
Hi, i haven't been active for a while and i think it's time. =)

I'm gonna play around in wc3 editor and when i have enough resources i'll make a dota-like map, anyway, i was thinking of an ability: Electric Net.

The original ability should be Ensnare, same missile animation, but, for example dutation 6sec, i want that every 2 sec it should do 100dmg (for example) and then show that chain lightning splash animation on that unit, but still have net animation..

So basicly, its a net that does electric animations and doing damage.

(I dont mean this chain lightning: Char ---chain--->enemy, i mean if u click chain lightning model, it shows a nice splash of lightning, i want that one)

help me plz :/

(I made this thread in the wrong part of the forum so i remade it here :p)

edit: thanks every1, no more help needed........ for now
 

Jagan

New Member
Reaction score
30
Code:
Electric Net Init
Event
    A unit starts the effect of an ability
Condition
    Ability being cast equal to 'your ability'
Actions
    Set Caster = triggering unit
    Set Target = target unit of ability cast
    Turn on Electric Net Periodic Damage trigger
    Wait 6 seconds
    Turn off Electric Net Periodic Damage trigger

Code:
Electric Net Periodic Damage
Event
    Every 2 seconds
Condition
    Target has 'your ability buff'
Actions
    Have Caster deal 100 damage to Target
    Create 'your special effect' at chest/origin/etc of Target
    Destroy last created special effect

And then just remove the leaks.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
true true, but its DP2S(damage per 2 seconds!)


so we can't use entangle roots XD xD


and also... the Lightning special effects part..
 

Jagan

New Member
Reaction score
30
There, I made it easier on the eyes:

Code:
Electric Net Init
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Ensnare
    Actions
        Set Caster = (Triggering unit)
        Set Target = (Target unit of ability being cast)
        Trigger - Turn on Electric Net Periodic Damage <gen>
        Wait 6.00 seconds
        Trigger - Turn off Electric Net Periodic Damage <gen>

Code:
Electric Net Periodic Damage
    Events
        Time - Every 2.00 seconds of game time
    Conditions
        (Target has buff Ensnare (General)) Equal to True
    Actions
        Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
        Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl
        Special Effect - Destroy (Last created special effect)

(Target has buff Ensnare (General)) Equal to True can be found in Boolean Comparison, Unit - Unit has specific buff

Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal can be found in Unit - Damage Target

Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl can be found in Special Effect - Create Special Effect On Unit

Special Effect - Destroy (Last created special effect) is right below the previous one.
 

Jagan

New Member
Reaction score
30
(Target has 'your ability buff') Equal to True

Did you get this part right? If you didn't, the damage part won't occur.

EDIT: Oh, well just try to follow the triggers I gave you. I tested it just now and it worked for me. No reason why it wouldn't for you. :)
 

Broshir

New Member
Reaction score
2
A somewhat better way to show a trigger is using right-click on the trigger's name, using "copy as text" and pasting it in here.

Code:
Electric Net
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to Electric Net 
Actions
    Set Caster = (Triggering unit)
    Set Target = (Target unit of ability being cast)
    Trigger - Turn on electric net dmg <gen>
    Wait 6.00 seconds
    Trigger - Turn off electric net dmg <gen>

Code:
Electric Net DMG
Events
    Time - Every 2.00 seconds of game time
Conditions
    (Target has buff Electric Net ) Equal to True
Actions
    Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
    Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl
    Special Effect - Destroy (Last created special effect)

Happy now? =D, help plz >.<
 

shinami

Redirect your complaints to the nearest wall
Reaction score
47
Code:
Electric Net
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to Electric Net 
Actions
    Set Caster = (Triggering unit)
    Set Target = (Target unit of ability being cast)
    Trigger - Turn on electric net dmg <gen>
    Wait 6.00 seconds
    Trigger - Turn off electric net dmg <gen>

Code:
Electric Net DMG
Events
    Time - Every 2.00 seconds of game time
Conditions
    (Target has buff Electric Net ) Equal to True
Actions
    Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
    Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl
    Special Effect - Destroy (Last created special effect)

Happy now? =D, help plz >.<

Are you sure the ability actually gives a buff?

P.S you never stated "whats wrong" with your trigger. Is it not damaging? Is the effect not coming? WTF?
 

Broshir

New Member
Reaction score
2
@ inami, i did write problems b4 but i realized i removed em now :D

only the net is cast, no lightning animation, no dmg.
 

Broshir

New Member
Reaction score
2
NVM, ill just take entangling roots, whatever >.<

thanks every1 for the help, learned some stuff bout variables and some trigger work :D
 

BoterhaM

New Member
Reaction score
2
This definitely works:

Code:
Electric Net
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Electric Net 
    Actions
        Set ElectricNetCaster = (Casting unit)
        Set ElectricNetTarget = (Target unit of ability being cast)
        Wait until (((ElectricNetTarget has buff Ensnare (Air)) Equal to True) or ((ElectricNetTarget has buff Ensnare (Ground)) Equal to True)), checking every 0.10 seconds
        Unit - Create 1 Electric Locust for (Owner of ElectricNetCaster) at (Position of ElectricNetTarget) facing Default building facing degrees
        Unit - Order (Last created unit) to Attack ElectricNetTarget
        Unit - Add a 6.00 second Generic expiration timer to (Last created unit)

Variables:
ElectricNetCaster = Unit
ElectricNetTarget = Unit

Electric Locust: base it of the unit 'Locust' and change these things:

Art - Model File: .mdl
Combat - Attack 1 - Cooldown Time: 2 seconds (or whatever you like)
Combat - Attack 1 - Damage Base: 99
Combat - Attack 1 - Damage Number of Dice: 1
Combat - Attack 1 - Damage Sides per Die: 1
Combat - Attack 1 - Projecticle Art: Chain Lighting <target>
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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 Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top