How to remove the "acid bomb" spell from a unit?

Ouguiya

New Member
Reaction score
11
[solved] How to remove the "acid bomb" spell from a unit?

Hello everyone!

The reason I am writing today is a small, but for me, unsolvable problem:

For one specific spell, I used the "acid bomb"-spell as a template. It's use is to inflict damage over time.

Originally, it was planned that this spell inflicts damage endlessly, unless the casting unit is killed, in which case the spell dissolves.

The reason I used Acid bomb is because, besides adding damage (and, optionally, reduce armor), it doesn't do anything, and it can be set to last very very long.

What I wanted to do was to make a trigger, that when a unit casts this, that a trigger is activated, and that when the unit is killed, the spell stops again. (If the unit is left alive, this spell will inflict damage until the acid-bombed unit will take damage until it dies, or is healed)

I looked around, but there doesn't seem to be any buff which I can simply remove which would do the trick. Also, "Remove ability" in the trigger section only removes the ability from the casting unit, but, as far as I know, not the "buff", which keeps the damage alive.

I hope any of you have an idea here.

Thanks in advance!

Yours,

Ouguiya
 
Reaction score
341
The remove ability function also removes buffs.

Code:
Actions
    Set Unit = (Triggering unit)
    Set Buff = Aerial Shackles
    Custom script:   call UnitRemoveAbility(udg_Unit, udg_Buff)
 

Ouguiya

New Member
Reaction score
11
Didn't work.

This command, as I understand it, is just for removing the ability which can be cast, not an already casted ability.

In either case, thanks, it was worth a try.
 
Reaction score
341
"Remove ability" in the trigger section only removes the ability from the casting unit, but, as far as I know, not the "buff", which keeps the damage alive.

What I provided you will remove the buff.
 

Ouguiya

New Member
Reaction score
11
*sigh*

I tested it myself, after you said that also twice. It does NOT remove the "Acid-bomb" spell!

(Perhaps because on the unit, a buff isn't even shown to be there!)

In either case, this isn't resolved as of yet, sadly.
 
Reaction score
341
Make sure the Buff variable is of type Buff..

I gave it that name for a reason.

It does NOT remove the "Acid-bomb" spell!

You also need to remove the ability, what I showed you just removes the buff.
 

vypur85

Hibernate
Reaction score
803
Code:
Unit - Remove Specific Buff

The above?

By the way, when a unit dies, buff gets removed automatically. Not sure what you really want from your description though.
 

13lade619

is now a game developer :)
Reaction score
398

Ouguiya

New Member
Reaction score
11
Hello vypur85!

Thanks for your reply! (cute avatar BTW)

That's exactly the problem: When I click on the unit, there is no buff to remove. Dispel also doesn't work on acid bomb, it's a strange spell on it's very design.


Since my description was a bit weak, I will explain the entire problem here:

1) Unit A has a spell, which is called "Acid bomb" (modified, to inflict damage infinetly)

2) Unit B is a helpless victim.

3) Unit A moves to unit B, and casts the spell, thus, Unit B is hit, and takes damage from that point onward.

4) Player controlling Unit A (we'll call him Player A) quickly takes Unit A to safety, while Player controlling Unit B (=Player B) now must do everything in his power to heal Unit B, because he cannot dispel Unit B, and Unit B will continue to take damage until it dies.


This works fine, without any triggers, now the problematic part, which is planned, but which I currently cannot do:

5) Player B's task now is to go and kill Unit A. As long as Unit A lives, the spell continues to exist on Unit B, and Unit B continues to take damage.

6) If Player B succeeds, and kills Unit A, then the spell is removed from Unit B, and Unit B need not die, which is the whole point of doing a trigger to remove it.


The problem at hand really is: How to remove the casted Acid-bomb from Unit B, since it seems to have no Buff, thus, nothing to remove.

I already tried "remove all buffs from unit" and "remove ability", neither of which worked on Unit B, it just continues to take damage until it gets killed.

Hopefully, someone has a solution.

Yours,

Ouguiya
 

13lade619

is now a game developer :)
Reaction score
398
a simple question for you that might have been overlooked:

did you give a custom buff to the custom Acid Bomb?
did you refer to the custom buff when removing?

...the buff for Acid Bomb is not invisible like other skills, it shows as small icons...
......custom buffs also work for acid bomb.
 

vypur85

Hibernate
Reaction score
803
Acid Bomb buff can be removed. You did something wrong?


> remove all buffs from unit

Use 'remove specific buff'. It's there in the GUI droplist. You won't miss it considering you're able to find remove all buffs.

Try troubleshooting the problems addressed by Blade. My advice is to create a custom buff instead of using the preset Acid Bomb one. It should work (well, I've tried before in the past).
 

Ouguiya

New Member
Reaction score
11
Hello again all!

Thanks for all the replies.

The custom buff and "remove specific buff" worked like a charm.

Thanks very much again!

Yours,

Ouguiya
 
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

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top