- Joined
- Oct 30, 2005
- Messages
- 51
Hi all. I had this idea of creating a map while i was in my class. But while brainstorming, i met this small problem. I thought of adding mercenary units that serve as guards. But only that when you buy them, they aren't yours. They become sorta like under the control of a computer. They follow you everywhere and stuff like that. If you move away from a fight, they'll follow you. Something like the mercenaries in diablo II. The only problem is, my triggering aint too good, but i'll just show you guys what i've brain stormed. I havent figured out the creating the guard for the computer player trigger. I'm just worrying about the intelligence of the guard.
Event:
Every 5 seconds
Condition:
none
Action:
-If <purchasing unit> (purchasing unit refers to the guy who bought the guard.) is moving ( i dont know if this is possible)
-Then order <guard> to follow <purchasing unit>
-Else do nothing
-If <purchasing unit> is attacked
-Then order <guard> to attack ground position of <purchasing unit>
-Else do nothing
I dont know if this will work or not, can someone help me?
Event:
Every 5 seconds
Condition:
none
Action:
-If <purchasing unit> (purchasing unit refers to the guy who bought the guard.) is moving ( i dont know if this is possible)
-Then order <guard> to follow <purchasing unit>
-Else do nothing
-If <purchasing unit> is attacked
-Then order <guard> to attack ground position of <purchasing unit>
-Else do nothing
I dont know if this will work or not, can someone help me?