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 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