| 10-25-2007, 04:48 PM | #1 |
I have created a Spell which grants the user a kind of activable 'thorn shield' (of the Crypt Lord). The activation-ability is immolation. I made this trigger, to add a spellbook with the thorn shield inside when the immolation is activated: Code:
Thorn Shield Activation
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to Night Elf Demon Hunter - Activate Immolation
Actions
Unit - Add Spellbook (Thorn Shield) to (Ordered unit)
Unit - Set level of Spellbook (Thorn Shield) for (Ordered unit) to (Level of Thorn Shield [Nature] for (Ordered unit))
Player - Disable Spellbook (Thorn Shield) for (Owner of (Ordered unit))There is another trigger for the deactivation of the immolation: Code:
Thorn Shield DeActivation
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to Night Elf Demon Hunter - Deactivate Immolation
Actions
Unit - Remove Spellbook (Thorn Shield) from (Ordered unit)I don't know if it is important, but the hero have also another spellbook (the whole time, which is visible). But both spellbooks have different 'BasicOrderIds'... |
| 10-25-2007, 07:10 PM | #2 | |
I had the same problem and according to this tutorial (http://www.wc3campaigns.net/showthread.php?t=81742), you must disable the spellbook at map initialization, not when the unit cast the ability. This is the part related to SpellBooks: Quote:
|
| 10-25-2007, 07:44 PM | #3 |
Unfortunately doesn't work this either ;_; i am despaired... |
| 10-26-2007, 12:02 PM | #4 |
Umm, you disable a Spellbook ability, let's call it SB1. Then make another spellbook ability, let's call it SB2. Now add SB1 to your hero in Object Editor, under normal skills. Now add the thorn shield ability to SB2 in Object Editor. To add it, click on SB2 and scroll down its data field until you see a field named something like "Data - Spell List" Double click that and select your thorn shield ability. Now everything is set, we must add SB2 whenever your hero casts your immolation ability. Trigger: Thorn Shield ActivationTrigger: EDIT: I would also like to point out to you something you should know about Immolation, especially if your immolation ability costs mana per second. When you run out of mana, Immolation is deactivated, BUT your hero will NOT be ordered to deactivate immolation. So be very careful about that. |
| 10-26-2007, 02:26 PM | #5 |
I don't really get your point: The triggers are the same as mine... and why should i create another spellbook (SB1), just to disable it? |
| 10-26-2007, 03:13 PM | #6 |
You create another spellbook just to disable it at start because you can't disable it when the unit casts the spell. Just follow the steps I told you and you should be fine. |
| 10-30-2007, 10:11 PM | #7 |
Perhaps I'm just to dump, but it doesn't work anyway -.- What I've done: - Created a Spellbook(empty) - Added the Spellbook(empty) to my hero (within OE) - Disabled Spellbook(empty) at Map Initialization/0.01 Seconds (tried both) - Disabled the Spellbook(Thorn Shield) on cast but it doesn't work... i dont get it, cause none of the Spellbooks disappears... and i dont have a plan why not! It's very strange, cause i already have had a spell (in another map) which works fine: Trigger: €: Ok, i dont know really why, but now all works fine (without secondary SB etc) *close* |
