• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] How to make auto-cast ability?

Status
Not open for further replies.
Level 12
Joined
Nov 3, 2013
Messages
989
There's no other spell in wc3 which can increase or reduce damage taken by a % other than berserk. (Besides spell damage reduction, but like the name implies it only works against spells.)

There's three ways you could do this:

  • Berserk is an instant no target ability without any animation, you can give berserk to the target unit and order it to activate it and then remove it. The only problem would be if it's stunned or is channeling another ability.
  • Use an autocast bloodlust ability to increase attackspeed and then check for the buff and alter the damage with DDS.
  • Maybe you could think of something else, if what you want is for the target to attack faster but take damage in exchange, maybe the undead necromancer spell Unholy Frenzy could work instead?
 
Level 5
Joined
Nov 21, 2014
Messages
151
I'm also considering the necromancer's spell and it would look like that it's taking damage more.

can't you just set berserk's "increased damage taken" to a negative number? (You have to allow it in your WE and then shift click to make it negative). Thsi also works with damage reduction to a negative value to set it to increase damage. Just an idea for you there :)
 
Level 12
Joined
Nov 3, 2013
Messages
989
can't you just set berserk's "increased damage taken" to a negative number? (You have to allow it in your WE and then shift click to make it negative). Thsi also works with damage reduction to a negative value to set it to increase damage. Just an idea for you there :)

Have you even read the OP? He's not trying to reduce damage taken. (And berserk is bugged btw, any negative on berserk -> your unit become invulnerable and spell damage heal.)

He's trying to make an auto cast ability which increase attack speed and damage taken of the target unit, but there's no other ability in warcraft 3 besides berserk which let you increase or decrease the damage taken by a %.
 
Level 12
Joined
Nov 3, 2013
Messages
989

Those items on the ground that you can pick up and are instantly used. (Like rune of haste/healing/mana.) I don't know if this will work, but it's a pretty clever idea for you to try.

When you cast the spell create a "rune" or "tome" type item with the berserk ability you want and give it to the target unit of your auto cast by trigger.

If it works the only problem I can think of is that you would need to give units that don't already have an inventory just that, an inventory, and then quickly remove it right after they get the item powerup.
 
Level 12
Joined
Nov 3, 2013
Messages
989
That would be too much for an auto-cast ability. Especially when it's a caster unit.

What do you mean? What does that have to do with creating an item, which is used on pickup, and forcefully giving it through trigger to make it's effect appear without the unit having to cast it?

Besides the issue of whether or not this even work, the only part which could prove difficult would be if you can't just give unit inventory -> give item with berserk ability which is used by itself -> remove unit inventory.

So maybe you'd need a short pause between giving the item and removing the inventory, but besides that this is basically as good of a solution as you'd get, if it works.
 
Level 12
Joined
Nov 3, 2013
Messages
989
I mean would that affect the map since a lot of them will be running at the same time.

Are you worried about memory leaks because of items not being removed from the map?

It could become a problem, eventually... I guess, but there's the system by bribe that clean up item leaks if you really need it.
 
Level 19
Joined
Dec 12, 2010
Messages
2,069
rune abilities being activated right after being dropped onto unit. So u are free to remove inventory and even the buff right after dropping the rune.

The only thing you have to consider is the death animation of the default rune model. change it to something without death.
 
Status
Not open for further replies.
Top