• 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.

That's COOL

Status
Not open for further replies.
Level 2
Joined
Aug 25, 2004
Messages
10
Hi Guys!!!!I need a spell for my map and as you already know im noob at triggers.I think the spell is known as "Return Magic":
When a spell is casted at the unit that has this PASSIVE ability,it takes the dmg but when the effect of the ability is over he returns the spell back to the enemy.that works on EVERY spell that does dmg to the hero that has "return magik" passive(The Hero CAN sent the ability back even if the enemy unit is at 10000 range.)

(If you want to make this ability plzzzzzz put units in the map that have the abilities:Flame strike,engtangilng roots,storm bolt,parasite and slow poison..This abilitys musts be cast to the hero with the passive to sent them back)
 
Level 3
Joined
Aug 28, 2004
Messages
33
Ehm i dont think so that anyone make for u spells use the spells on wc3sear.ch and dont make mass themes about making spells....
 
Level 13
Joined
May 5, 2004
Messages
1,330
There's only a way to detect unit-targeting-spells, I have no idea how to detect that a unit is damaged by e.g. flamestrike. Here's only an idea for reflecting unit-targeting-spells (so you see how much work this would be)

1. In the onject editor you create dummy units that are able to cast the affected spells

2. Then you use a trigger like this one:

Events
Unit - A unit Finishes casting an ability
Conditions
(Unit-type of (Target unit of ability being cast)) Equal to [your hero]
(Level of [reflect-ability] for (Target unit of ability being cast)) Greater than 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to [e.g. Thunderbolt]
Then - Actions
Unit - Create 1 [dummy being able to cast "Thunderbolt"] for (Owner of (Target unit of ability being cast)) at (Position of (Target unit of ability being cast)) facing Default building facing (270.0) degrees
Unit - Order (Last created unit) to [Thunderbolt (if you use an custom ability you have to use the ability that it's based off)] (Casting unit)
Wait 0.50 seconds
Unit - Remove (Last created unit) from the game
Else - Actions
Do Nothing

Do tis If/Then/Else-function for every affected spell (funny, eh :wink: )
 
Status
Not open for further replies.
Top