HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

another spell question

08-09-2006, 08:23 PM#1
refl3ction
ok this is for a friend that doesnt have an account here
he wants to know how a spell could be trigger to make the caster take no damage then the caster targets a neraby enemy unit, the targeted unit takes all the damage that the caster would have taken

ne help would be good :)
08-09-2006, 08:50 PM#2
Alevice
Do you mean that the catsre has some sort of "buff" that returns all damage that was about to be inflictied to him?

I think shadow's damage mod could work for this.
08-09-2006, 09:09 PM#3
TheEpigoni
Does the caster store the damage done to him then releases it all at once to a target of his choosing?

or

Does the caster reflect the damage done to him?

or

Does the caster reflect the damage done to him onto another target of his choosing at the instant it is done (so if there's no target no damage is reflected)?
08-09-2006, 09:45 PM#4
refl3ction
well no alevice and the third one as epigoni stated
08-09-2006, 10:46 PM#5
TheEpigoni
How does the caster choose the target? Is it the unit he is currently attacking or a static target chosen by a "targetting" ability?
08-10-2006, 12:01 AM#6
The)TideHunter(
Alot of questions, more infomation would be nice.
08-10-2006, 04:36 AM#7
refl3ction
ok the spell goes like this,
the caster uses the abilty (that doesnt target a unit)
then the caster becomes immune to alldamage and then the damage that the caster is supposed to take is reflected to random nearby unit, all the damage that is supposed to be given to the attacker is instead, passed on to the randomly selected unit until the duration ends
08-10-2006, 05:47 AM#8
Wyvernoid
Hello^^
Before I could come up with a silly solution(I always do^^), let's see some pretty interesting questions:
1) If there are no enemies around, where will the damage go?
2) If two enemies units that are near each other both possess this buff, and someone attack on of them, where will the damage go?(It must be bouncing very fast^^a loop until the buff wears off)
3) Let's suppose, A attacks B and the damage bounced to C. How much damage do you want C to suffer? The same as if B didn't have the buff? Or the same as if A attacked C?
08-10-2006, 06:08 AM#9
refl3ction
1) if there are no enemies around then their should be no damage taken, so therefor the spell would be useless in such a situation
2) the spell can only be targetted on the caster, so there is no possibility of there being able to have 2 unit with the buff
3) if there is anyway that the amount of damage can be saved in a variable or such, the excact damage will be dealt back
08-10-2006, 06:22 AM#10
Wyvernoid
1) In fact it's still useful, you take no damage after all!
2) What about two casters^^
3) OK. I'm just telling you the VERY KEY ^^ Use "Unit - Damage Unit" and for the damage amount real use "Event Response - Damage Taken".
HAHA ;-)
08-10-2006, 10:49 AM#11
The)TideHunter(
For this, you will need Shadow's attack detection system, or Vex's.

Instructions:

In the actions part of the damage system bit, you want to create a group, Enum all enemies into the group in a radius around the caster, then get the amount of units in the group, divide the damage he took by the number of units in the group, damage all units in the group for that new damage.
08-10-2006, 08:28 PM#12
refl3ction
er.... thanks
ill try to figure it out how to get this too work, can som1 give me a link to one of those systems, or both?
08-10-2006, 09:06 PM#13
shadow1500
http://www.wc3jass.com/viewtopic.php?t=2608
http://www.wc3jass.com/viewtopic.php?t=2653