HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How would you make this?

10-05-2003, 04:57 PM#1
Thunderroms
k, im tryng to make this map where you attack using the keyboard keys and move using the arrow keys.

I already sis the movement with the arrow key thing so there is no problem there.

now i need to find a way to make the units attack using letters on the keyboard. the way i thought i would do this is use dummy spells to activate their attack.

i did this and it kind of works... does anyone know a better way of doing it? here is how i did it:

-I set the hero "unit class." to worker so they dont automaticlly attack,

-I made a dummy spell with hotkey C.

- i made a trigge:

EVENT-- a unit casts an ability

CONDITION-- ability being casted = <dummy>

ACTION:
-- order unitX to attack unitY
-- wait (game-time) 1 sec
-- order unitX to srop

-one of the problems, is that the unit counter attacks when he is attacked, so i tried doing this but it doesnt work:

EVENT-- unit is attacked
CONDITION-- unit=unitX or unitY
ACTION-- if attacking unit = unitX then stop unitY else stop unitX

plz post at least a short descreption of how you would do it, thanx.
10-06-2003, 02:12 AM#2
Thunderroms
nobody else can do this another way?

(sorry about the double post, its been 1 day and no replies...)
10-06-2003, 03:18 AM#3
Dragon
Make the dummy spell a non-targeting spell such as...

Roar
Thunderclap
Warstomp

Make a unit and use triggers to make it so that the unit is always in front of you and is invisible.

E- Unit casts a spell

C- Spell equal to (spell you picked above)

A- Play attack animation for your unit

Now, make a spell that is like thunderclap, but has no graphic and no stun time.

A- Make the unit thats always in front of you cast the edited thunderclap

(also give thunderclap a no cooldown)