- Joined
- Sep 30, 2005
- Messages
- 56
So I've been working on a spell that i had the idea for that basically goes like this: On each attack, you have a chance of creating an illusion of the unit you were attacking. In the design of my ability i had 2 ideas of approaching it.
Magic Arrow 1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Magic Arrows <-- [Bash with a no damage bonus or stun]
(Level of Magic Arrows for (Casting unit)) Equal to 1
Actions
Unit - Create 1 Dummy Arrow 1 for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Set Arrowtarget = (Target unit of ability being cast)
I had one of these for 3 levels and was then followed up by
Arrowcast
Events
Unit - A unit enters (Playable map area)
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Entering unit)) Equal to Dummy Arrow 1
(Unit-type of (Entering unit)) Equal to Dummy Arrow 2
(Unit-type of (Entering unit)) Equal to Dummy Arrow 3
Actions
Unit - Order (Entering unit) to ____________________
Wait 2.00 seconds
Unit - Remove (Entering unit) from the game
My first problem i ran into was i could not even get the dummy unit to spawn. I figure this is because the unit isn't really casting an ability, but couldn't find another way that might make it work.
My second problem is where the _____________________ is. My idea was to have the dummy unit cast a modified version of the spell that the wand of illusion uses, but there was a very limited amount of choices to pick from the list that the trigger gave me. Is there a way to use triggers to make a unit cast a custom spell?
I would really appreciate if someone could help me with this and explain to me why things aren't working and how to fix it, or if you have a different approach entirely to make this idea work, I would also like to hear it.
=D
Magic Arrow 1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Magic Arrows <-- [Bash with a no damage bonus or stun]
(Level of Magic Arrows for (Casting unit)) Equal to 1
Actions
Unit - Create 1 Dummy Arrow 1 for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Set Arrowtarget = (Target unit of ability being cast)
I had one of these for 3 levels and was then followed up by
Arrowcast
Events
Unit - A unit enters (Playable map area)
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Entering unit)) Equal to Dummy Arrow 1
(Unit-type of (Entering unit)) Equal to Dummy Arrow 2
(Unit-type of (Entering unit)) Equal to Dummy Arrow 3
Actions
Unit - Order (Entering unit) to ____________________
Wait 2.00 seconds
Unit - Remove (Entering unit) from the game
My first problem i ran into was i could not even get the dummy unit to spawn. I figure this is because the unit isn't really casting an ability, but couldn't find another way that might make it work.
My second problem is where the _____________________ is. My idea was to have the dummy unit cast a modified version of the spell that the wand of illusion uses, but there was a very limited amount of choices to pick from the list that the trigger gave me. Is there a way to use triggers to make a unit cast a custom spell?
I would really appreciate if someone could help me with this and explain to me why things aren't working and how to fix it, or if you have a different approach entirely to make this idea work, I would also like to hear it.
=D