• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Rubick Spell steal

Status
Not open for further replies.
Level 2
Joined
Jun 17, 2012
Messages
13
  • 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))
so this is basic trigger for spell steal. can you please help me make it like rubick's in Dota

the variable I made is an ability variable with an array of 4 is that right?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
The spell idea is basic, however the triggering is not, not at all.

It requires proper data handling/saving/loading, I will use Hashtable for this method, I always wanted to recreate Rubick's ultimate, Spell Steal but never got the time.

I think you have to use Hashtable on this for saving data on every Hero cast spell.

You can't achieve this ability with that kind of basic trigger you have there.

I'll try to create this spell though but I can't say when it's gonna complete and this will truly tests my Hashtable skills :p
 
Assuming that everybody has one hero then the above is all you need, if everybody has multiple heros isn't not very hard to put every hero into an array, have their last casted spell in the array, then when the a unit is targetted by the ability, find the unit in the index and take it's ability, it's really quite a simple thing to do, just a bit pedantic
 
Status
Not open for further replies.
Top