- Joined
- Apr 25, 2008
- Messages
- 75
Hey! I'm trying to trigger a unit to cast a custom spell based on Item Illusions.
Basically it is a trigger that creates x number of dummies to cast my Item Illusions spell which has been customized in the fields that change the damage dealt, damage taken and how long it lasts. I'm doing it this way because there isn't a field that says how many illusions are created.
I have a spell (Based on Finger of Death (Archimonde) ) with all the effects removed on the hero. The allowed targets are "Hero".
Then I wrote a bunch of testing triggers and tested it to find it didn't work.
I did some more specific testing and found the problem was that the dummy (in this case Footman) wasn't casting the spell. I tried changing the spell to a unit spell. I tried using Priests instead of Footies then finally tried to make a dummy caster. None worked. Tested some more and found the problem was there same; dummy wasn't casting! I tried changing Order String and messing with that. I also wrote a trigger that detects what Orders are issued.
So can someone help me here?
I want it to make the dummy caster cast the spell.
OR
A simple way to make Item Illusions create more than 1 illusion.
Also, preferably can I have the answer in GUI cause I suck with JASS. Basically understand nothing.
Basically it is a trigger that creates x number of dummies to cast my Item Illusions spell which has been customized in the fields that change the damage dealt, damage taken and how long it lasts. I'm doing it this way because there isn't a field that says how many illusions are created.
I have a spell (Based on Finger of Death (Archimonde) ) with all the effects removed on the hero. The allowed targets are "Hero".
Then I wrote a bunch of testing triggers and tested it to find it didn't work.
I did some more specific testing and found the problem was that the dummy (in this case Footman) wasn't casting the spell. I tried changing the spell to a unit spell. I tried using Priests instead of Footies then finally tried to make a dummy caster. None worked. Tested some more and found the problem was there same; dummy wasn't casting! I tried changing Order String and messing with that. I also wrote a trigger that detects what Orders are issued.
-
Untitled Trigger 001 Copy
-
Events
-
Unit - A unit Is issued an order targeting an object
-
Unit - A unit Is issued an order targeting a point
-
Unit - A unit Is issued an order with no target
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: ((String((Issued order))) + (Name of (Ordered unit)))
-
-
-
Confusion
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Confusion (Shown on Hero)
-
-
Actions
-
Unit - Create (((Level of Confusion (Shown on Hero) for (Casting unit)) / 2) + ((Level of Confusion (Shown on Hero) for (Casting unit)) mod 2)) Priest for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
-
Unit Group - Pick every unit in (Last created unit group) and do (Actions)
-
Loop - Actions
-
Unit - Add Confusion (Shown on Dummy) to (Picked unit)
-
Unit - Set level of Confusion (Shown on Dummy) for (Picked unit) to (Level of Confusion (Shown on Hero) for (Casting unit))
-
Custom script: call IssueTargetOrderBJ( GetFilterUnit(), "fingerofdeath", GetSpellTargetUnit() )
-
Unit - Order (Picked unit) to Special Archimonde - Finger Of Death (Target unit of ability being cast)
-
Unit - Remove (Picked unit) from the game
-
-
-
-
-
Custom script: call IssueTargetOrderBJ( GetFilterUnit(), "fingerofdeath", GetSpellTargetUnit() )
-
Unit - Order (Picked unit) to Special Archimonde - Finger Of Death (Target unit of ability being cast)
So can someone help me here?
I want it to make the dummy caster cast the spell.
OR
A simple way to make Item Illusions create more than 1 illusion.
Also, preferably can I have the answer in GUI cause I suck with JASS. Basically understand nothing.