• 🏆 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!

tower with healspray ability? tower with friendlyfire?

Status
Not open for further replies.
Level 4
Joined
Dec 21, 2019
Messages
51
Hello there.

I stumbled over this Forum and wondered if someone could give me advice so Ill get right into it!
I hope this is the right place for this kind of question, if not i apologize.

how can friendly towers be told to attack (friendly)team units?

and how can i assign "healspray", so it gets triggered by attack or casting from a tower? ("healspray" doesnt show up in the ability tab when opening up)

thanks in advance!

greetSausage
 
Level 38
Joined
Feb 27, 2007
Messages
4,951
Welcome
how can friendly towers be told to attack (friendly)team units?
Do you mean as a player in game? (A + click on the unit to attack) Or as a developer? (order unit to do the unit-target order "attack" with a trigger) Do you mean it should attack one time, attack that target continuously, or attack all allied units nearby as if they were enemies? For what purpose do you want this functionality?
and how can i assign "healspray", so it gets triggered by attack or casting from a tower? ("healspray" doesnt show up in the ability tab when opening up)
  • Unit - Order <unit> to Neutral Alchemist - Healing Spray (<point>)
Threads you should know:
Things That Leak
How To Post Your Trigger
 
Level 4
Joined
Dec 21, 2019
Messages
51
//Thanks alot for your help Pyrogasm, excuse my inaccurate question im a forum virgin, Ill read the linked tuts.

Issue(1)
I mean "as a developer"(I want the tower to attack "atomatically" all allied units nearby as if they were enemies!)?

Issue(2)
That was exactly what i searched for a long time. Had it on "issue order targeting a <unit>" instead of "issue order targeting a <Point>". Cant tell you how thankful i am!


greetSausage
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,180
Maybe it would be more sensible to give the tower the Priest's Heal ability and auto cast that. A trigger detects the tower casting heal and then orders it to cast healing spray at the position of the ability target unit.

This will not scale cast rate with attack speed. It may be possible to do this with other triggers involving some of the recently added natives.
 
Level 4
Joined
Dec 21, 2019
Messages
51
Maybe it would be more sensible to give the tower the Priest's Heal ability and auto cast that. A trigger detects the tower casting heal and then orders it to cast healing spray at the position of the ability target unit.
{
This will not scale cast rate with attack speed. It may be possible to do this with other triggers involving some of the recently added natives.

thanks for your advice Dr Super Good!

I already control my healingspells via "autoheal". it just feels a bit delayed casue they start healing pretty late, so i wondered if its possible to just make tower autoattack friendly units (and add the healcast to the attacks, so they look smoother). any idea how to?
}



greetSausage
 
Level 14
Joined
Oct 19, 2014
Messages
187
thanks for your advice Dr Super Good!

I already control my healingspells via "autoheal". it just feels a bit delayed casue they start healing pretty late, so i wondered if its possible to just make tower autoattack friendly units (and add the healcast to the attacks, so they look smoother). any idea how to?
}



greetSausage
You can use bribe's Damage Engine instead. Make every damage into negative to result as a heal.
You can specify the attacker type as well as the target if ally or not,, if ally then damage will be negative while positive to enemies.

Ordering a unit to attack ally isnt a big deal problem, well by the help of unit indexer you can filter each created unit then add them to a group of wild attacker XD that no one recognizes.
What else?

Mark this thread as SOLVED xD
 
Last edited:
Status
Not open for further replies.
Top