How would I make a heal/damage AOE ability?

  • Thread starter Thread starter cojaan
  • Start date Start date
C

cojaan

Guest
I am looking to make an ability that does 100 damage AOE around the caster to all enemies and heals for 100 damage AOE around the caster to all his allies. how would I do this?

Triggers? JASS? Is there an ability already like this in the game?
 
The two abilitys that im thinking of our healing spray and death coil. Healing spray heals targets in a certain area and death coil heals one friendly undead unit but for any other race it damages. Look at both of them and see if you find anything.
 
he wants them to be in one ability not two read the question. He wants it to damage the enemies and heal his allies.


If you have weu it is possible with triggers.
 
I can cheat it again lol (i actually did this once but i found out it was too good for my hero and the animation was weird)
Use fan of knives
change the missle art or whatever
make radius 100, damage (damage you want to deal + damage you want to heal)
make a trigger
Event- A unit begins casting an ability
Cond- Ability equal to fan of knives
Action-
Pick every unit in region centered on triggering unit with a height of 100, width of 100 and do (action) set picked unit life to +(damage you want to heal)
 
56 i knew that he wanted one but he said is there any abilitys like this so i said healing spray and death coil. Then is said look into them. I should of said look at both abilitys and combine them to make one.
 
:)
Death coil is a single target ability(no area of effect) which wouldn't work for what he is doing.

If you have weu base your ability off thunder clap and set duration to 0.01 and than for triggers use Advanced - damage units
 
Pick every unit in region centered on triggering unit with a height of 100, width of 100 and do (action) set picked unit life to +(damage you want to heal)


is there such trigger i looked and couldnt find
 
Here's a sufficient way of doing, and there's no need for WEU.

Code:
Spell
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to ABILITY
    Actions
        Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an ally of (Owner of (Casting unit))) Equal to True)) and do (Unit - Set life of (Picked Unit) to ((Life of (Picked unit)) + (50.00 x (Real((Level of ABILITY for (Casting unit)))))))
        Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to True)) and do (Unit - Set life of (Picked Unit) to ((Life of (Picked unit)) - (50.00 x (Real((Level of ABILITY for (Casting unit)))))))

56k: WEU doesn't support the new patch, and it's a 1.18 only function.
 
Really not worth it, and i dont even know if this one works (it should because it did before)

Set integerone (varible) to number of units in region centered on triggering unit with width 100 height 100
for each integer a 1-integerone do actions
actions loop
Pick all units in unit (in units in region centered at triggering unit with width 100 height 100 and do (action) set life of target unit of ability being cast to (life of target unit of ability being cast + 100)

Err, if that doesnt work, youll need a varible for everyunit, a loop that picks, heals, clears variable
Wow conan beat me hmm how do you make that box lol
 
Wrap the trigger with the '
Code:
' tags around the trigger. (Ending with '[code]' but with a '/' symbol after the '[')

THat wouldn't work becuase it would heal and damage units 10 or so times, which isn't very good. Also, mine doesn't take any variables.
 
XXconanXXX said:
Here's a sufficient way of doing, and there's no need for WEU.

Code:
Spell
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to ABILITY
    Actions
        Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an ally of (Owner of (Casting unit))) Equal to True)) and do (Unit - Set life of (Picked Unit) to ((Life of (Picked unit)) + (50.00 x (Real((Level of ABILITY for (Casting unit)))))))
        Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to True)) and do (Unit - Set life of (Picked Unit) to ((Life of (Picked unit)) - (50.00 x (Real((Level of ABILITY for (Casting unit)))))))

56k: WEU doesn't support the new patch, and it's a 1.18 only function.

I couldn't seem to replicate your
"Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an ally of (Owner of (Casting unit))) Equal to True)) and do (Unit - Set life of (Picked Unit) to ((Life of (Picked unit)) + (50.00 x (Real((Level of ABILITY for (Casting unit)))))))"
code with triggers, and I'm not ready to deal with JASS yet.
 
Or you could just do a simple Fan of Knives ability for the AoE damage. Then make an exact copy, but negative damage. For simplicity's sake, I'm gonna call it "Fan of Knives Heal" Don't have the editor open so bear with me:

Code:
Event - Unit begins casting an ability
Condition - Ability being cast = Fan of Knives
Action - Add ability Fan of Knives Heal to (Casting Unit)
Order (Casting Unit) to Night Elf Warden - Fan of Knives
Wait 0.50 game time seconds
Remove ability Fan of Knives Heal to (Casting Unit)

*I know this code is most likely wrong, but you can hopefully understand the jist of it.*

If done correctly it should first add the ability of fan of knives healing, then since they both use the same order string, they will cast at the same time.

-Demonfaze
 
If you can do it, use Conan's way, it looks much simpler,
Demon's way is good, too, but it might not work since even though strings are the same, that will be two spells, which might mess up his hero abilities
And to add neg numbers hold down shift right?
 
But he couldn't figure out how to use conan's way thats why he asked for an alternitve trigger.
 
"since they both use the same order string, they will cast at the same time." -- That's the whole point of it, hehe. They will cast at the same time which means they will heal all friendly units and damage all enemy units.

I accidentally forgot this in the trigger: Make sure that the "Fan of Knives Heal" targets are set to friendly units only and "Fan of Knives" targets are set to enemies only.

-Demonfaze
 
Erm, Demonfaze, removing the ability before it actually is completely cast, it will do nothing but show a very short spell animation. You'd have to wait a bit longer, which would look pretty sloppy since you'll have an extra showing up for a bit.

Plus, it would mix Order Strings up, and either cast one or the other, not both at the same time. Sorry, but you got pretty close.

Mine's not to hard, I can break it down into sections if you want.

Cojaan, I did use triggers, JASS is a scripting code. Triggers are everything that you use drop down boxes with, and you write JASS out by hand rather than using drop down boxes.
 
Conan: I didn't really test it, I just used 0.50 sec as just to show you would have to wait. And I thought if a unit had two abilities with the same order strings, it casts both. Maybe this is just with summons because that is what I've tested it with.

In that case, you could just make the damaging one based off of war stomp and then the healing one off of fan of knives so they are different.

But yeah, Conan's is way easier so you should just use his :cool:

-Demonfaze
 
Code:
Event - Unit - A Unit begins casting an ability
Condition - Ability being cast equal to 1 First Blood
Actions - Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit))) and do (actions)
		-Loop - Actions
			-If(All Conditions are True) then do (Then Actions) else do (Else Actions)
				-If Unit-type of (Picked unit) Equal to (Unit-type of (Triggering unit))
				-Then - Actions
				Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
				Special Effect
				-Else - Actions
				Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00)
				Special Effect

Thats wut I did. I don't see the option to compare units to their owner's allies and enemies...which is how I would like to do it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.

The Helper Discord

Staff online

  • Ghan
    Administrator - Servers are fun

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top