• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Duplicate Spell

Status
Not open for further replies.
Level 20
Joined
Aug 13, 2013
Messages
1,696
but spell steal is steal last used spell from an unit
if you can modify it, jakezinc.. make it steal random spell from an unit
remember credits though

I can't do that :((. Maybe registering and make a list of ALL SPELLS IN THE SPECIFIC HERO like example Blood Mage: It has a spell Flame Strike, Banish, Phoenix and Drain Life, so that abilities will need to registered and the hero unit too then make a variable integer that Math Random - between 1 and 4. Make a spell targeted unit then make a trigger then make an ITE Condition that if the Unit Type is desired hero then Unit - Add Ability ( Math - Random between 1 and 4 ). This is instant spell and not like missile in the DotA ( Rubick SS ). Actually without missile I can do such that.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
The work needed is more tedious than Rubick's mechanics where you would steal the last cast ability rather than randomize it.

You're gonna need a Hashtable for this, to save each existing abilities for all the Heroes in the game.

Also, don't tell me you can steal passives too ?
 
Status
Not open for further replies.
Top