Ok Helpers i need some suggestions for my Spell Steal Ability.
which is this:
and
ok so far. everything is working as intended. BUT. what would happen if i steal 6 different hero abilities without removing an old and existing one ? would a spell be automatically replaced with the new one ?
and
i thought about two possibilities to extend this spell
#1: remove the old stolen spell with the new stolen spell. But i have at the moment no idea how to store the last stolen spell and remove it after stealing a new one. maybe im just stupid today^^
#2 let the ability steal 3 or 4 spells and do an integer loop to remove random one of the stolen spells and add the next stolen spell to the rest of the stolen spells.
please give me some feedback about that.
bye Raizn
which is this:
Trigger:
- Set Spell
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Actions
- Set Ability[(Player number of (Owner of (Triggering unit)))] = (Ability being cast)
- Events
and
Trigger:
- Get Spell
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Spell Steal
- Actions
- Unit - Add Ability[(Player number of (Owner of (Target unit of ability being cast)))] to (Triggering unit)
- Unit - Set level of Ability[(Player number of (Owner of (Target unit of ability being cast)))] for (Triggering unit) to (Level of Ability[(Player number of (Owner of (Target unit of ability being cast)))] for (Triggering unit))
- Events
ok so far. everything is working as intended. BUT. what would happen if i steal 6 different hero abilities without removing an old and existing one ? would a spell be automatically replaced with the new one ?
and
i thought about two possibilities to extend this spell
#1: remove the old stolen spell with the new stolen spell. But i have at the moment no idea how to store the last stolen spell and remove it after stealing a new one. maybe im just stupid today^^
#2 let the ability steal 3 or 4 spells and do an integer loop to remove random one of the stolen spells and add the next stolen spell to the rest of the stolen spells.
please give me some feedback about that.
bye Raizn