HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Neutral units move with hero... Problem.

08-26-2004, 03:23 AM#1
MadBagOfHorses
I am sure that this has been answered (there are 488 pages in the trigger forum, I don't have time to check them all!) and is pretty basic, but for some reason I am stumped.

I have a map where you control 1 hero. There is a computer player that is allied with you that controls 3 normal units (2 melee, 1 ranged). I have tried to set a trigger up so that when you order your hero to 'move' 'attack' 'stop' 'hold' etc... Then the computer's units will do the same. For the move command I set it to make them move to the position of the order with polar offset of 150 towards (facing of 'hero') + 135/180/225. This SHOULD make the different units (135= melee 1 back and to the left of the hero, 180= ranged directly behind the hero, 225= melee 2 back and to the right of the hero), should make them move to the desired locations, and it DOES... IF I actually hit 'M' or click the 'move' command on the command bar. If I simply right-click on the terrain to make my hero move then the computer units DO NOT follow. Same goes with the attack command. If I right-click on an enemy, the allied computer units sit there, if I use the attack command from the command bar, they do as they're told.

What I would LIKE (really really, rep point for the next week kinda like) is someone to lay out from start to finish (trigger wise) what I have to do to make this work correctly. I don't care if it's a long drawn out version that runs you in 3 circles and throws you in a bush before it's done, just as long as it WORKS.

I have seen this done FLAWLESSLY in a map called 'Legionaires' or something along those lines, made by th15. I didn't want to PM th15 because I figured that would be annoying. The map is protected so I couldn't find out for myself.

I will shut up now and hope for the answers to pour down upon me. Thank you for you time.

-MadBagOfHorses
08-26-2004, 12:42 PM#2
MMayfield45
How do you process the order given to the hero. becasue when you give a command to a unit by right clicking i think the order given is 'smart' not 'move'
08-26-2004, 07:30 PM#3
Shimrra
When you right-click, the name of the command given is smart. You will need to put in a trigger to detect if this command, as well.
08-27-2004, 04:03 AM#4
MadBagOfHorses
PERFECT! I wil give you each a rep a few times if I can, at least 2 each. That was my problem and fixed me RIGHT up!

Thank you much.

-MadBagOfHorses
08-27-2004, 07:56 AM#5
logik
actually wouldnt it be easier to Issue Order - Patrol targeting your hero... you can set your hero as a unti variable with an array for how many heros there are.

but if you read the description of patrol, when it is targeting a unit, the patrolling unit will copy its actions, like stop and attack units and stuff...



hope that helps but i am [retty sure that is the simplest way to go about it
08-28-2004, 02:23 AM#6
MadBagOfHorses
I'll play some, if the patrol thing does work like you say... Then that WOULD help tons.

Thanks.

-MadBagOfHorses
08-30-2004, 01:17 AM#7
MadBagOfHorses
Sorry Shimrra and MMayfield45. I just found out that you can only rep one post once. If I find some other posts of yours then I will rep them for this... Just to show my thanx!

-MadBagOfHorses
08-30-2004, 07:09 AM#8
logik
didnt the patrol thing work?