• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

healing spell problem

Status
Not open for further replies.
Level 4
Joined
Feb 4, 2014
Messages
50
Hello,
for quite some time I've been trying to create a spell that has 5 ranks, and does the following:

it sends a chain of lightning towards every unit within 600 range that has a specific buff and damages it. The damage done is then transfered to the caster as healing.

Do you have any idea how o do something like that?
 
Level 4
Joined
Feb 4, 2014
Messages
50
I do not understand. I fould http://www.hiveworkshop.com/forums/spells-569/dds-damage-detection-system-231238/
but I can't make sense of it.

I have a question before I decide to drop it;

is it possible to have it the way that I recreate Starfall that does damage; create trigger that gives amount of HP equal to number of targets affected; create a trigger that creates a lightning effect from the caster to every target?

... and to be honest, the easy way for me to create a map is always my way for the fact that find another way how to do what I want on this forum is near to impossible.
I can always try to search for pieces of my own ideas and for their solution, but I can never adapt to the way things go around here. It's like you people just know what are you talking about and you don't need to name a thread for people not as good at this as you to understand. I don't mind, it's just ... hard.
 
Last edited:
Level 28
Joined
Sep 26, 2009
Messages
2,520
it's actually the other way around. I believe most people have no idea how to name anything and so they write useless thread names instead of informing ones.

About DDS - you don't really need to understand every line in the DDS script, but more so you need to understand how the things you need work - how to refer to the unit which took damage, how to refer to unit which caused damage, etc.

It is possible to create Starfall which counts damage done and then heals you for that amount, but it seems that you're not that knowing in triggering, so it may seem difficult to you :)

Also the thread you posted has the resource removed, thus there's no damage detection system.
Look for example here at Bribe's DDS. It contains a test map which has more detailed info on how to import it and how it works.
 
Level 17
Joined
Mar 21, 2011
Messages
1,611
yeah use bribe's one, its also the one i started with, but i dont think this will solve your problem, because you can detect which unit deals damage and which unit takes damage, so this will refer to any kind of damage. I dont know how much you are experienced in triggers, but i would recommend you to fully do the spell in the trigger editor. As you said it has to be a chain lightning (jumps to the target and searches the nearest enemy in X AoE and jumps to this one... and so on) you can pick the target and then check in a periodic timer trigger (= every x seconds) if there is a unit nearby, if so, pick the nearest one and damage this one. Also, heal your unit of course. The trigger gets disabled if there is no valid target in the AoE or a counter (integer counter = 5 for example) reaches 0 (just reduce the counter by 1 for each target). However, if you need it to be cast by multiple units at the same time, you can use the Bribe's Unit indexer, which is included in the test map.
What is the unit indexer?
it gives every unit a specific so called Custom Value that you can catch in the trigger editor. now, with the help of arrays, you can save a specific variable (integer or unit or ...) for a specific unit. If you didnt understand what i mean, tell me! then i will do the trigger for you, but give it a try. and sorry for my bad explanations :/
 
Level 4
Joined
Feb 4, 2014
Messages
50
wow. I understand triggering pretty good, but boy this is complicated.
I would have gotten it eventually (the Bribe's DDS I mean) but I believe I can do without it just now. It's a nice (and for the future use really useful) piece but for the moment I will go down the path GIMLI pointed out. GIMLI I understand and appreciate you intake.
Thank you both, I will remember this for sure to come back and peek for solutions.

PS.: Nichilus you've got the point, I too sometimes think quite a bit before I can come up with a title for my thread. (needles to say it's no gold after I do :) )
 
Last edited:
Status
Not open for further replies.
Top