HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Advanced Item Based Attack System

10-31-2004, 10:57 AM#1
Oblivion9
I read a helpful thread by Blitzkreige with respect to making an item based attack system. He wrote:

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

Which was followed by the following response from 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:

Code:
create dummyunit
    Events
        Unit - A unit Acquires an item
    Conditions
    Actions
        Unit - Create 1 DUMMY-UNIT 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)

My problems at this point are as follows:
  • I need that unit to be is invisible
  • I also need that unit to stay as close as possible to the hero
  • And I need to ensure that it can't be selected

I've played with this for a while now and what I'm getting is a unit that is created and can attack, but it stands off to the side of the hero and even tho there is not a visible model there, I can select it by highlighting the area around the hero. I'm not sure if this will require me to script in Jass, or if it can just be done with triggers. Anything anyone could offer would truly be appreciated.
10-31-2004, 11:40 AM#2
xGT4x
1. Give it a model which look like there's nothing, just search for one in models which shows nothing, there are many.
2. You'd need to make a trigger which moves the dummy unit to the hero always when the hero moves
3. Give it the ability "Locust"
10-31-2004, 02:43 PM#3
linkmaster23
The only issue I could see with this is that the hero wouldn't attack...
10-31-2004, 10:06 PM#4
Oblivion9
Let's say there are upwards of 6 created units, the only one that will instantly move would be the last created one using:

Event: every 1 sec
Action: Instantly move (last created unit) to point of X.

How would u have all of the units that are created instantly move on a set interval?

BTW, thank you for the replies to this thread they are greatly appreciated.
11-01-2004, 01:49 AM#5
thedevil
Go to advance->game play constant->follow unit range=50-100 then the follow unit will stay so close to your hero but if your hero die then all dummy unit will attack anything near it and u must have 6 variable for 6 dummy unit right??i think u already done the trigger that return all dummy unit to die hero base and make em follow he again when hero revive
11-01-2004, 02:39 AM#6
linkmaster23
Post your code here and I'll get to it during school tomorrow. =]