Unit not receiving buffs from spell?

staind25

TH.net Regular
Reaction score
7
Okay I feel stupid for making a topic about this, especially since I have quite a few topics on the board now (Apologies), but this is bugging me and I don't know what I'm doing wrong.

I have a spell based on Channel that is set to give 2 custom buffs. I cast the spell, and the unit receives no buffs. The spell duration is on 30 seconds.

What am I missing? Anything else you need to know about the spell/buffs?

Thanks!
 

staind25

TH.net Regular
Reaction score
7
Oh...weak.

Is it possible to give buffs through triggers? Couldn't find an action for that earlier, but is there a way?
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Oh...weak.

Is it possible to give buffs through triggers? Couldn't find an action for that earlier, but is there a way?

no. you have either to make a custom aura with no effect but a buff on self, then give that aura via a trigger to a unit or you have to use a dummy ability which is giving a buff.
 

Stringel

New Member
Reaction score
12
Thanks...how do I do this? I'm on the Unit - Add Ability action, but I'm stuck here.

Create a custom aura with the buff of your choise that only affects the caster or what not. Dont forget to remove the ability after the duration / when spell is canceled
 

Bogrim

y hello thar
Reaction score
154
The ability itself determines how the buff data is handled. Even if you fill in buff IDs in the field, the ability will only use those IDs if it's coded to do so. For instance, Critical Strike doesn't use a buff ID while Slow Poison uses three different IDs. Furthermore, which buff ID Slow Poison uses is determined by the stacking flags in the data fields and the order of the buff IDs.

It's also important to know how buffs stack. Buffs from cast spells like Inner Fire doesn't stack with custom versions using different IDs, meaning you can't have multiple different Inner Fire buffs active at the same time, so any custom version of Inner Fire will overwrite the previous Inner Fire spell base buff on the unit. For this reason, you need to strongly consider what and how you are using buffs for as your resources in this department are limited to what that already exists in the game.

Tip: If you have two different Roar spells on the same player force they will interfere with each other. However, if you have them on different player forces you can still have different versions of Roar.

Auras are the only exception to this rule. If you have a Trueshot Aura on one unit and a custom Trueshot Aura with a different buff ID on another unit, the units affected will receieve both buffs and bonuses. Hidden spell books are therefore the best way to apply custom buffs to a unit. This method is however limited as auras don't work with transformation skills, meaning that if your unit transforms (such as Metamorphosis) and has an aura-type skill, the aura cannot affect the unit during the transformation.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
you dont need hidden spellbooks if you use tornado slow aura, its invisible by default. just a tip.
 

staind25

TH.net Regular
Reaction score
7
Thanks everyone...you guys are so good at explaining stuff...I really appreciate it.
 

staind25

TH.net Regular
Reaction score
7
Alright so the aura's working...but I have another problem. I have the aura set to give 2 buffs, but it only gives the first one. How do I make it give both? Both are necessary.

EDIT: Also, I have the aura set to a duration of 30 seconds but it's still there after 30 seconds. I need the buff to be wiped out after the 30 seconds. Is there a way to do this in the object editor? Triggering it presents a problem because if the spell is casted again, the buff could be removed earlier than it should.

Thanks :)
 

canons200

New Member
Reaction score
50
I have the aura set to a duration of 30 seconds

if you set the duration to 30 seconds, it mean the buff will last for 30 seconds, so the solution is to set your buff to 1 seconds or smaller value.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
if you set the duration to 30 seconds, it mean the buff will last for 30 seconds, so the solution is to set your buff to 1 seconds or smaller value.

you cannot set duration for auras. that field does nothing at all.
to remove the buff given by the aura you have to remove the aura itself, this can only be done via triggers.
 

Seprest

New Member
Reaction score
15
Make a trigger to give the buff to any units in range of the hero, and another trigger to remove that buff from any unit not in range of units with your aura (you may have to run through all units on the map as a unit group to check for the aura).

I think that's how I would do it if I wanted an aura to give 2 buffs, but I have never tried that before, so maybe there is a way to do it in the object editor and you just made a mistake(but what do I know?:D
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Make a trigger to give the buff to any units in range of the hero, and another trigger to remove that buff from any unit not in range of units with your aura (you may have to run through all units on the map as a unit group to check for the aura).

I think that's how I would do it if I wanted an aura to give 2 buffs, but I have never tried that before, so maybe there is a way to do it in the object editor and you just made a mistake(but what do I know?:D

sorry mate but i guess you missed the point, if you read this thread from the top to the bottom you will notice that he does not want to make a custom aura but to give a buff to a unit for 30 seconds, actually he is trying to give 2 buffs by adding a custom aura with no effect to the unit.

Ontopic: you simply have to make another version of the custom aura with the second buff, then add both.
 

Seprest

New Member
Reaction score
15
"no. you have either to make a custom aura with no effect but a buff on self, then give that aura via a trigger to a unit or you have to use a dummy ability which is giving a buff. "

So can't he then do whatever with a trigger trigger to get the buff the hero has onto the target of a spell (he was trying to use channel before). So the aura he has on himself that gives the buffs he wants can be transfered onto another unit?

Like a unit begins effect of an ability, ability = myAbility, give the buff the hero has to the target of ability with 30 second duration. \
Doesn't that help with:
"I have the aura set to give 2 buffs, but it only gives the first one. How do I make it give both? Both are necessary."
 

Curo

Why am I still playing this game...?
Reaction score
109
@Seprest: there is no action that adds a buff to a unit.

@aura suggestions: keep in mind that auras last for a few seconds after they are removed. I would suggest instead that you have a dummy unit created that casts a custom cripple-type spell to apply the buff, rather than using an aura. This way you don't need to worry about removing the aura later on either. Also it allows the buff to be removed via Purge, Anti-magic shell, etc.

@Accname: setting the duration on an aura will mean that a unit will only be affected by the aura for X seconds, before it needs to be reapplied. So if my duration is 10 sec, and a unit comes in range of the aura, that unit will have the aura buff for 10 sec. After that, it needs to leave the aura, then re-enter it in order to get the buff again.
 

staind25

TH.net Regular
Reaction score
7
Thanks again everyone for your continued help. I believe I'm getting closer, but ugh, it's still a pita.

I think I may take Curo's advice and remake it using a dummy unit, because it should be purge-able, and it would be nice it if were removed when I told it to. Won't doing this also make it so that the "duration" field actually works, and removes the buff when it expires?

These couple of triggers are starting to look very ugly >.< If the duration field worked, I wouldn't need all of this crap, haha.
 

staind25

TH.net Regular
Reaction score
7
EDIT: Nevermind. Had a problem here, but it was a stupid object editor issue. Fixed it :) Thanks again guys.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 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

      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