• 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.

Um...

Status
Not open for further replies.
Level 2
Joined
Jan 8, 2006
Messages
6
Is there anyway to duplicate all the abilities off one unit and place them on another unit? I know you can do this partly with using "Ability being cast" variable, but I haven't been able to find a way to take all of the abilities directly. (Its for a spell I've been trying to make I like to call Shadow Servant, its supposed to be a unit that does everything the hero does at the same time.) It may sound similar to "copycat" but that spell no longer seems to exist in the archives.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Simple way is to store all heros spells in a data storage system for example using a game cache.

When the spell is cast it retrieves the spells the target hero can have then itruns some simple conditions on the target to get the level of spell and which spells it hasnt learned then it adds the spells to the cloned hero.

there probably are more complex way but thats the simplest.
 
Level 2
Joined
Jan 8, 2006
Messages
6
I guess what I mean is... How do I even get access to the hero's list of abilities without adding them manually so that I can add future abilities to heroes without having to update the list of all the abilities each hero has manually? Oh, and the player is not going to be able to select or command the new unit manually. It'll automatically attack whatever he attacks, and use the same spell it has at the same target/point it targets, and such. (I also plan to do this on multiplayer so...)
 
Status
Not open for further replies.
Top