Damage Target, Drain Mana and Stun

Templarion

Member
Reaction score
8
I am trying to create a basic vampire ability: Feed.

Feed damages target, drains its mana and stuns it until vampire decides to stop drinking the blood - or the victim dies.

I am kinda confused how should I do this. I am not very familiar with Triggered Abilities but I sure do know how to create triggers.

First I thought I should create Feed using "Channel" ability but I noticed that I cannot Add Buffs via triggers (or can I???). I also noticed that there is Siphon Mana ability which is very confusing. I even read the tutorial which explains it but it still keeps confusing me (especially the buffs: "drain mana & life, drain mana, drain life, drain mana (target), drain mana (caster)...). If I cannot add Stun using triggers should I use Bash or something like that as a base ability?

How should I do this? What ability should I use as a base and what should I do with triggers?

Reputation will be awarded for helpers - of course.
 

XeNiM666

I lurk for pizza
Reaction score
138
w8

ill edit after im done with your spell

EDIT:
Done:
Code:
Feed
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Feed
    Actions
        Set Caster = (Triggering unit)
        Set Target = (Target unit of ability being cast)
        Unit - Pause Target
        Unit - Set Target movement speed to 0.00
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Target is dead) Equal to False
                        Duration Less than or equal to 10
                    Then - Actions
                        Unit - Set life of Caster to ((Life of Caster) + ((Real((Level of (Ability being cast) for Caster))) x 10.00))
                        Unit - Set life of Target to ((Life of Target) - ((Real((Level of (Ability being cast) for Caster))) x 10.00))
                        Special Effect - Create a special effect attached to the chest of Target using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
                        Special Effect - Destroy (Last created special effect)
                        Set Duration = (Duration + 1)
                    Else - Actions
                        Set Duration = 0
                        Unit - Unpause Target
                        Unit - Set Target movement speed to (Default movement speed of Target)
                        Skip remaining actions
        Set Duration = 0
        Unit - Unpause Target
        Unit - Set Target movement speed to (Default movement speed of Target)

base the ability Feed from Aerial Shackles
 

Samael88

Evil always finds a way
Reaction score
181
Base it of mana drain. Then have a dummy unit cast a spell that stuns like hurlbolder or something. There you can do damage aswell or just simply have the dummy hit the unit if you want the damage to be done over time. And when he stops casting the manadrain you have a trigger that removes the stunbuff and you are done. Just make sure that the manadrain and the stunbuff has the same duration and starts about the same time and you are all set:thup:

Here is also a thread with a map attached to one of my posts. It is based on lifedrain tho but that is easely changed:)
http://www.thehelper.net/forums/showthread.php?t=93564&highlight=life+drain+stun
 

Templarion

Member
Reaction score
8
This is what I call a good service!

Thank you very much, XeNiM666. This reputation I give you is well earned!
 

Templarion

Member
Reaction score
8
I'm sorry to say this but XeNiM666, your trigger doesn't work completely the way I wanted. Anyway, you helped me a lot because you pointed me the way I need to go.

Here are the problems:
Firstly, the original trigger (made by XeNiM666) kills the victim instantly - vampire cannot decide the amount of blood drained.
Secondly, when "Wait" is added to the trigger the target can move - even it should not be possible.
And in the end, I started to think would this trigger work IF there are multiple vampires drinking several different (or the same) targets at the same time.

Here is the broken trigger I am trying to make working at the moment:

Code:
Feed
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Feed 
    Actions
        Set AbilityFeedCaster = (Casting unit)
        Set AbilityFeedTarget = (Target unit of ability being cast)
        Unit - Pause AbilityFeedTarget
        Unit - Set AbilityFeedTarget movement speed to 0.00
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (AbilityFeedTarget is dead) Equal to False
                        AbilityFeedDuration Less than 10
                    Then - Actions
                        Unit - Set life of AbilityFeedCaster to ((Life of (Casting unit)) + 20.00)
                        Unit - Set life of AbilityFeedCaster to ((Mana of (Casting unit)) + 20.00)
                        Unit - Set life of AbilityFeedTarget to ((Life of (Target unit of ability being cast)) - 20.00)
                        Unit - Set life of AbilityFeedTarget to ((Mana of (Target unit of ability being cast)) - 20.00)
                        Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
                        Special Effect - Destroy (Last created special effect)
                        Set AbilityFeedDuration = (AbilityFeedDuration + 1)
                        Wait 0.30 seconds
                    Else - Actions
                        Set AbilityFeedDuration = 0
                        Unit - Unpause AbilityFeedTarget
                        Unit - Set AbilityFeedTarget movement speed to (Default movement speed of AbilityFeedTarget)
                        Skip remaining actions
        Set AbilityFeedDuration = 0
        Unit - Unpause AbilityFeedTarget
        Unit - Set AbilityFeedTarget movement speed to (Default movement speed of AbilityFeedTarget)

Someone, please, help me to make this ability work.
 

Marsmallos

Member
Reaction score
17
Do you want him to both drain life and mana? And what colour do you want the drain effect to be? (green = drain life, or blue = drain mana).

How long is the full duration of the feed? (Like, what is the maximum length the vampire can feed in seconds?)


EDIT: not sure if this is what you wanted but I did a very simple Feed spell:

Code:
Feed
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Feed 
    Actions
        Set Feedtarget = (Target unit of ability being cast)        Set Feedtarget_location = (Position of (Target unit of ability being cast))
        Unit - Create 1 Dummy unit Feed stun for (Owner of (Casting unit)) at Feedtarget_location facing Default building facing degrees
        Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
        Unit - Order (Last created unit) to Human Mountain King - Storm Bolt Feedtarget
        Unit - Hide (Last created unit)

If the spell is cancelled

Code:
Feed cancel
    Events
        Unit - A unit Stops casting an ability
        Unit - A unit Finishes casting an ability
        [COLOR="Red"](I am not 100% sure wich one of these events are the right one so I added both, but it works fine)[/COLOR]
    Conditions
        (Ability being cast) Equal to Feed 
    Actions
        Unit - Remove Feed (Stun) buff from Feedtarget

I got a Vampire hero with the ability "Feed" based of the Dark Rangers Life Drain, that has been edited to drain both life and mana (You can easily do this in the object editor).
I also got a dummy unit called "Dummy unit Feed stun" with the ability Locust (to make him untargetable and not appear on minimap) and "Feed stun effect" wich basicly is a Mountain King - Storm Bolt without mana cost, with its stun duration set to the same amount of time as the max duration of Feed. The storm bolt doesnt have a missile and missile speed is set to 0 and Hero Ability = false. The buff the storm bolt applies I renamed to "Feed (stun)" just for the fun of it.

How the trigger works:

The hero casts Feed on a target, and the dummy unit "Dummy unit Feed stun" gets created at the location of the target, and does stormbolt on him to stun him. The expiration timer ensures that the dummy unit gets removed from the game.
If the hero cancels casting feed, the second trigger detects this and removes then "Feed (stun)" buff from the target, and the target is no longer stunned.

Hope I helped!
 

Templarion

Member
Reaction score
8
Thanks a lot. This helped.

I edited it little but the code is yours. Therefore you will get some credit, too. (+rep!)
 
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

      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