HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need some help with targeting...

07-22-2006, 09:04 PM#1
PaladinFreak
Hello, I already posted this in the Mapping and Campaigns section, but I thought I might get more help here.

I'm making a map based off of "Risk Revolution" by Mr_Peacecraft. I've got most of the triggers set up, but I have a problem with one of my units: I don't want my Guard Towers to be able to attack friendly units (basically, units of the same color), because it messes up one of my triggers. I tried setting the Target type on Attack1 to "Enemy" and "Ground" only, but I guess I don't know how the whole targeting system works. Could anyone help me on this? I would very much appreciate it.

BTW, soooo glad this site is back up! It's a great resource for mappers like me.
07-22-2006, 09:48 PM#2
Fin.
I hope this works, first time trying trigger tags

Trigger:
Trigger
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Unit-type of (Ordered unit)) Equal to Guard Tower
(Issued order) Equal to (Order(attack))
(Owner of (Target unit of issued order)) Equal to Player 1 (Red)
Collapse Actions
Wait 0.10 seconds
Unit - Order (Ordered unit) to Stop

edit: yes it worked, and for you can change owner of target unit of issued order to whatever you need it to be
07-23-2006, 10:43 PM#3
PaladinFreak
Thank you. I knew there'd be some way to do it through triggers, but I still can't believe that you can't do it with their built in engine! Ah well, the trigger works great for now.
07-24-2006, 09:33 AM#4
Captain Griffen
Working version even better:

Trigger:
Trigger
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Unit-type of (Ordered unit)) Equal to Guard Tower
(Issued order) Equal to (Order(attack))
(Owner of (Target unit of issued order)) Equal to (Owner of (Triggering unit))
Collapse Actions
Unit - Pause (Triggering unit)
Unit - Order (Ordered unit) to Stop
Unit - Unpause (Triggering unit)