HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Picking every unit in Playable Map and Do...NOT WoRKING!

12-24-2003, 02:23 PM#1
linkmaster23
I want to pick every unit in the playable map area, and set thier animation speed to 2% and their movement speed to -100. This is Not working. I wwant everyone in the lpayabel map area to get slowed down while the caster is sped up. Im trying hard to recreate the Haste or Mass Freeze for Prince of Persia. But i cant pick every unit in the playable map area!

Another thing. When i tell the unit to move instantly to the unit that is selected and to attack ONCE he jsut keeps on attakin! WTF?!

And this last question is Off Topic but...How do i get a LINK in my sig. I dont want the www. in there i just want to use HTML coding but i cant, its turned off.

Thanks for all your Help!
12-24-2003, 02:37 PM#2
Spinally
1) Most of the time when something simple doesnt work for me its actually a very simple mistake, i didnt test this because i have very little time now but does your trigger look something like this?

tester
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit)'s animation speed to 2.00% of its original speed
Unit - Set (Picked unit) movement speed to ((Current movement speed of (Picked unit)) - 100.00)
Wait 20.00 seconds
-------- Some values may differ --------
Animation - Change (Picked unit)'s animation speed to 100.00% of its original speed
Unit - Set (Picked unit) movement speed to ((Current movement speed of (Picked unit)) + 100.00)

2)Maybe the unit is an enemy of the other unit, then ofcourse it keeps attacking. Elseway the Order - Attack once. should work.

3) I have no idea.
12-24-2003, 03:33 PM#3
linkmaster23
Thanks for #1. I guess i wasnt clear on number two. IT repeats the trigger. It creates the SFX just like it does when you teleport to the unit. Si it cuz im using a Unit is issued an order targeting a object?
12-24-2003, 03:47 PM#4
Hunter0000
as for the link, do this


{url=www.IAMTHEKING.com}click here to see whos king!{/url}

just replace the {} with []
12-24-2003, 03:51 PM#5
Spinally
You will need to give me some more information about number 2.
1) What are you using it for.
2) The trigger you have now.

If you dont want to, try to debug by using text messages if certain conditions are met, i always do that and in 90% of the cases i always find whats wrong.
12-24-2003, 04:37 PM#6
linkmaster23
for #2. The purpose is to recreate Haste from prince of persia. What it does is it wont let you move but when you find an enemy it teleports stright to him. Then it takes 2 hits to kill him. But when i do the teleport, it goes theer, and he attacks, but then it does it again. and again and again.

O yea, thanks hunter!
12-24-2003, 05:43 PM#7
Zechnophobe
Quote:
Originally posted by linkmaster23
for #2. The purpose is to recreate Haste from prince of persia. What it does is it wont let you move but when you find an enemy it teleports stright to him. Then it takes 2 hits to kill him. But when i do the teleport, it goes theer, and he attacks, but then it does it again. and again and again.

O yea, thanks hunter!

Well, whatever is triggering it sounds like you aren't turning off. Remember that even dead units will trigger effects. Try doing a 'pause' in the trigger such as: Turn off (This trigger)...Wait 1 second... Turn On (This Trigger).

If it still keeps repeating but slower, then obviously you need to reevaluate the event and conditions that trigger the action.