View Full Version : [Trigger] Rubick Spell steal
07-24-2012, 12:39 PM
Unit - A unit Starts the effect of an ability
(Ability being cast) Equal to Spell Steal
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?
07-24-2012, 02:00 PM
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
07-25-2012, 05:53 AM
Why not save the last casted spell on a variable. When rubick cast his spell it takes the player variable and set it as own. Mind you this MPI.
07-25-2012, 05:59 AM
Yes, apparently we have to save each Player Hero-control unit last ability casted so that we can refer to it later, that's why I said it needs a proper data handling (hashtable) instead basic trigger that he did on post #1.
07-25-2012, 06:06 AM
Meh i dont have much experience in hash is why i stated just have
hero cast a spell
Set (variable) Lastspell(playernumber) = spell being casted?
07-25-2012, 11:30 PM
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
07-28-2012, 04:18 AM
thanks everyone I know now :)
07-29-2012, 10:55 AM
I tried to request Mr_Bean987 and xBlackRose,But they only have both answers
The spell is possible,but,if you want to change to hotkeys and change names and change icon place,you must copy every ability in the object editor
Maybe ask the two of them.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO