Warcraft III resources & community, 2003–2006 · archived

Um...

4 posts
#1

Um...

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.
#2
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.
#3
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...)
#4
There is no such way excpt theroies.
You could loop check if the hero has an ability but such a way would be EXTREAMLY laggy.

So the only way is using game cache, veriables, or preset values.