HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item based attack system

10-25-2004, 06:56 AM#1
Blitzkreige
I basically want it so that when a hero aquires a certain item, it creates a dummy unit that follows the hero around and attacks for the hero.

If you have ever played "15th's tank commanders" then you know what i mean.

When I find the map I'll upload it for an example.

EDIT: 15th's tank commanders. Srry for the mix-up...
10-25-2004, 08:52 AM#2
AFB-DieHard
If the unit should be given to the player you could use this, otherwise you can change (Owner of (Hero manipulating item)) to the Player you want the unit to be given

Code:
create dummyunit
    Events
        Unit - A unit Acquires an item
    Conditions
    Actions
        Unit - Create 1 [color=Red]DUMMY-UNIT[/color] for (Owner of (Hero manipulating item)) at (Position of (Hero manipulating item)) facing (Position of (Hero manipulating item))
        Unit - Order (Last created unit) to Follow (Hero manipulating item)
10-25-2004, 01:29 PM#3
DarkMage
Never played that, but i have played 15th's tank commanders. I'm pritty sure he does not use dummy-units for his auto-attacking weapons. I think he uses a custom phenix fire ability, then just changed the damage, cool down, and the projectile art. then just gives that ability to the item. He might use dummy-units on the more complex auto-attack weapons. But if you just want a missle this will work.
10-25-2004, 01:53 PM#4
AntJAB
DieHard's suggestion wouldn't work for what you wanted, as he is giving the unit to the player and then just ordering it to follow. The player could muck around with the unit, and it wouldn't auto attack, just follow.

You would need to create a unit for the player and give it perhaps aloc, then order the unit to constantly attack-move to the location of the hero manipulating the item.

I did somethign similar to this with my Crown of Sheep, it would summon 100 flying sleep to cloud the skys above the hero. XD
10-25-2004, 02:58 PM#5
AFB-DieHard
I think following units attack since a patch.
10-25-2004, 05:13 PM#6
th15
Dammit, for once and for all I NEVER used phoenix fire in tank commanders, NEVER. Everything was done with dummy units.
10-25-2004, 05:23 PM#7
Dead-Inside
Don't you just love the ignorance of people, this? It's pretty obvious it's dummy units when you actually play the map.
10-26-2004, 03:48 AM#8
Blitzkreige
Thank you all, this will really help in the map I'm making.

I still don't have a definite code but with the example givin and all of your input I'm pretty sure i can figure it out.