HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need some help with targeting...

07-22-2006, 06:43 PM#1
PaladinFreak
Hello,

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, 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, 07:09 PM#2
Archian
Friendly units, do you mean allies or passive units?
Anyway click on Scenario in the menu, then click on Force Properties, check the box "Use Custom Forces" then make your "Friendly units" allies with you by checking the box "Allied"...
07-22-2006, 08:27 PM#3
PaladinFreak
Quote:
Originally Posted by Archian
Friendly units, do you mean allies or passive units?
Anyway click on Scenario in the menu, then click on Force Properties, check the box "Use Custom Forces" then make your "Friendly units" allies with you by checking the box "Allied"...

No, actually what I meant was I want the towers to never be able to attack units controlled by their owner (basically, they can't attack if it's the same color as them). It should be possible, right?
07-22-2006, 09:40 PM#4
Archian
Yes it's possible..
You mean friendly fire? And is it the towers with splash who deals damage to the others? In that case adjust the field values Combat - Attack 1 - Area of Effect Targets to Ground, Enemy and Combat - Attack - Allowed to Ground, Enemy (or what you'd like it to be)..

I think this is what you mean :S
07-23-2006, 11:05 PM#5
PaladinFreak
The towers are basically the standard Human Guard Towers, but with Invulnerability and slightly higher attack. What I'd like is for the game to say "Must attack an enemy unit." (or something like that) when I try to attack my own unit in-game. This is because, like in the board game Risk, you have to have at least one unit defend your base. With my triggers as they are, when you kill your own unit with one of your units it instantly moves the killing unit in to defend. But with a tower, since I've ensured that it can't move, somebody could theoretically kill their own defender and not have to worry about leaving one unit back the rest of the game, getting around the restriction and causing a problem trigger-wise. <PHEW.>

Basically, I'm trying to get around writing a trigger to fix this, because you should be able to set Combat - Attack1 - Allowed: to "Enemy, Ground" and have it attack only enemy ground units. Unfortunately, it assumes I want it to be able attack enemies AND all ground units when I do this, and since my own players are ground units it sees them as a valid target. And when I just choose "Enemy", since the enemy's units are ground units, it says "Cannot target units." when I try to attack one. Try it out, you will see my frustration!

Anyway, if you know of anyone who knows the workings of the targeting system, let me know PLEASE. I have never understood it (EXAMPLE: What is the difference between unchecking "Ancient" vs. checking "Non-Ancient"? It's confusing.)
07-24-2006, 12:26 AM#6
Freakazoid
Quote:
Originally Posted by PaladinFreak
The towers are basically the standard Human Guard Towers, but with Invulnerability and slightly higher attack. What I'd like is for the game to say "Must attack an enemy unit." (or something like that) when I try to attack my own unit in-game. This is because, like in the board game Risk, you have to have at least one unit defend your base. With my triggers as they are, when you kill your own unit with one of your units it instantly moves the killing unit in to defend. But with a tower, since I've ensured that it can't move, somebody could theoretically kill their own defender and not have to worry about leaving one unit back the rest of the game, getting around the restriction and causing a problem trigger-wise. <PHEW.>

Basically, I'm trying to get around writing a trigger to fix this, because you should be able to set Combat - Attack1 - Allowed: to "Enemy, Ground" and have it attack only enemy ground units. Unfortunately, it assumes I want it to be able attack enemies AND all ground units when I do this, and since my own players are ground units it sees them as a valid target. And when I just choose "Enemy", since the enemy's units are ground units, it says "Cannot target units." when I try to attack one. Try it out, you will see my frustration!

Anyway, if you know of anyone who knows the workings of the targeting system, let me know PLEASE. I have never understood it (EXAMPLE: What is the difference between unchecking "Ancient" vs. checking "Non-Ancient"? It's confusing.)


Then just set enemy?
07-24-2006, 09:55 PM#7
Tim.
Moved?
07-25-2006, 08:12 AM#8
blu_da_noob
Just use a goddamn trigger. You need one simple trigger to solve the whole thing.
(no WE around so psuedo-GUI)

Event - A unit is issued an order targetting an object
Condition - Target unit of issued order is ally of ordered unit = true and issued order string == "attack"
Action - Pause ordered unit
------- Order ordered unit to "stop"
------- Unpause ordered unit
------- *Whatever text message*