- Joined
- Jul 18, 2004
- Messages
- 1,862
Hey there, I'm in a bit of a pickle.
I'm trying to make a Spell Theft ability. Basically, it's where a hero in my map targets an enemy hero with this ability, and the spelltheft ability gets replaced by a target-specific 'stolen; ability until the first time the 'stolen' ability is cast. When the hero casts this 'stolen' ability, it is removed and replaced by Spelltheft again. Here's what I got sofar:
With this as a resetter:
This doesnt work. The Spelltheft ability is removed, yes, but not replaced with a new ability. I simply cant understand how a trigger THIS simple cannot work. Please help!
I'm trying to make a Spell Theft ability. Basically, it's where a hero in my map targets an enemy hero with this ability, and the spelltheft ability gets replaced by a target-specific 'stolen; ability until the first time the 'stolen' ability is cast. When the hero casts this 'stolen' ability, it is removed and replaced by Spelltheft again. Here's what I got sofar:
Code:
SpellTheft Activate
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Spell Theft (Thauma)
Actions
Unit - Remove Spell Theft (Thauma) from (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Mountain King
Then - Actions
Unit - Add Taunt (Spelltheft) to (Casting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to General
Then - Actions
Unit - Add Summon Assassin (Spelltheft) to (Casting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Archer
Then - Actions
Unit - Add Tracking Arrow (Spelltheft) to (Casting unit)
Else - Actions
etc
etc
etc
With this as a resetter:
Code:
Spelltheft Reset
Events
Unit - A unit Starts the effect of an ability
Conditions
And - All (Conditions) are true
Conditions
((Unit-type of (Casting unit)) Equal to Thaumaturgist (Empowered)) or ((Unit-type of (Casting unit)) Equal to Thaumaturgist)
(Ability being cast) Not equal to Banish (Thauma)
(Ability being cast) Not equal to Power Overwhelming (Thauma)
(Ability being cast) Not equal to Invigorate (Thauma)
(Ability being cast) Not equal to Spell Theft (Thauma)
(Ability being cast) Not equal to Mana Shield (Thauma)
(Ability being cast) Not equal to Monsoon (Thauma)
Actions
Wait 1.00 seconds
Unit - Remove (Ability being cast) from (Casting unit)
Wait 0.10 seconds
Unit - Add Spell Theft (Thauma) to (Casting unit)
This doesnt work. The Spelltheft ability is removed, yes, but not replaced with a new ability. I simply cant understand how a trigger THIS simple cannot work. Please help!