HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Neutral attack building ?

08-23-2005, 03:00 PM#1
Wakoo
Hi,

I once again need your help, in tide of blood (6v6 aos, so the "regular creep" are with extra neutral, and victim neutral), the creator was able to make them attack ennemy building . In my map i can't, each time the creep see a building, they attack 1 time and back to the creating point. I temporary fix it with making the building as unit with no movement, but this system got some other problem...

Thanks a lot.
12-11-2006, 10:24 PM#2
n13astra
Hate to revive a topic, but my question is exactly the same so any help?
12-11-2006, 10:32 PM#3
BBDino
A bit of searching....

Quote:
Originally Posted by Fulla
Use Neutral Victim, Neutral Extra

At Map Intilization

set first 6 players to ally/shared vision to Neutral Victim
and visa versa

Set last 7-12 player enemy to Neutral Victim
and visa versa

Then do opposite with Neutral Extra.

=========

Heres a sample trigger I use in my map for setting
6v6 + 2 creeps comps.

Trigger:
Teams
Collapse Events
Map initialization
Conditions
Collapse Actions
Player - Turn Gives bounty On for Neutral Hostile
Player - Turn Gives bounty On for Neutral Victim
Player - Turn Gives bounty On for Neutral Extra
Player - Disable sleeping for all creeps
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Player - Turn Gives bounty On for (Picked player)
Player Group - Add Player 1 (Red) to Team_Alliance
Player Group - Add Player 2 (Blue) to Team_Alliance
Player Group - Add Player 3 (Teal) to Team_Alliance
Player Group - Add Player 4 (Purple) to Team_Alliance
Player Group - Add Player 5 (Yellow) to Team_Sentinel
Player Group - Add Player 6 (Orange) to Team_Sentinel
Player Group - Add Player 7 (Green) to Team_Sentinel
Player Group - Add Player 8 (Pink) to Team_Sentinel
Player Group - Add Player 9 (Gray) to Team_Scourge
Player Group - Add Player 10 (Light Blue) to Team_Scourge
Player Group - Add Player 11 (Dark Green) to Team_Scourge
Player Group - Add Player 12 (Brown) to Team_Scourge
Player - Change color of Neutral Hostile to Orange, Changing color of existing units
Player - Set name of Neutral Hostile to |CFFFDC689The Allia...
Player - Change color of Neutral Victim to Gray, Changing color of existing units
Player - Set name of Neutral Victim to |CFFD2D2D2The Senti...
Player - Change color of Neutral Extra to Red, Changing color of existing units
Player - Set name of Neutral Extra to |CFFF26522The Scour...
Collapse Player Group - Pick every player in Team_Alliance and do (Actions)
Collapse Loop - Actions
Player - Change color of (Picked player) to Orange, Changing color of existing units
Collapse Player Group - Pick every player in Team_Sentinel and do (Actions)
Collapse Loop - Actions
Player - Change color of (Picked player) to Gray, Changing color of existing units
Collapse Player Group - Pick every player in Team_Scourge and do (Actions)
Collapse Loop - Actions
Player - Change color of (Picked player) to Brown, Changing color of existing units
Player Group - Make Team_Alliance treat Team_Sentinel as an Enemy
Player Group - Make Team_Alliance treat Team_Scourge as an Enemy
Player Group - Make Team_Sentinel treat Team_Alliance as an Enemy
Player Group - Make Team_Sentinel treat Team_Scourge as an Enemy
Player Group - Make Team_Scourge treat Team_Alliance as an Enemy
Player Group - Make Team_Scourge treat Team_Sentinel as an Enemy
Player - Make Neutral Hostile treat Neutral Victim as an Enemy
Player - Make Neutral Hostile treat Neutral Extra as an Enemy
Player - Make Neutral Victim treat Neutral Hostile as an Enemy
Player - Make Neutral Victim treat Neutral Extra as an Enemy
Player - Make Neutral Extra treat Neutral Hostile as an Enemy
Player - Make Neutral Extra treat Neutral Victim as an Enemy
Collapse Player Group - Pick every player in Team_Alliance and do (Actions)
Collapse Loop - Actions
Player - Make (Picked player) treat Neutral Hostile as an Ally
Player - Make Neutral Hostile treat (Picked player) as an Ally
Player - Make (Picked player) treat Neutral Victim as an Enemy
Player - Make Neutral Victim treat (Picked player) as an Enemy
Player - Make Neutral Extra treat (Picked player) as an Enemy
Collapse Player Group - Pick every player in Team_Sentinel and do (Actions)
Collapse Loop - Actions
Player - Make (Picked player) treat Neutral Victim as an Ally
Player - Make Neutral Victim treat (Picked player) as an Ally
Player - Make (Picked player) treat Neutral Hostile as an Enemy
Player - Make (Picked player) treat Neutral Extra as an Enemy
Player - Make Neutral Hostile treat (Picked player) as an Enemy
Player - Make Neutral Extra treat (Picked player) as an Enemy
Collapse Player Group - Pick every player in Team_Scourge and do (Actions)
Collapse Loop - Actions
Player - Make (Picked player) treat Neutral Extra as an Ally
Player - Make Neutral Extra treat (Picked player) as an Ally
Player - Make (Picked player) treat Neutral Hostile as an Enemy
Player - Make (Picked player) treat Neutral Victim as an Enemy
Player - Make Neutral Hostile treat (Picked player) as an Enemy
Player - Make Neutral Victim treat (Picked player) as an Enemy
12-11-2006, 10:38 PM#4
n13astra
I've read that a million times and all the other threads on it and ive got that aspect of it working fine.

What i havent found is a way to fix the units running away when attacked by a building/tower.
12-11-2006, 10:44 PM#5
Ignitedstar
Maybe you need to turn off in the object editor "Able to Flee" in the unit movement settings? That's just a wild guess, though.
12-11-2006, 10:53 PM#6
n13astra
Tried that, didnt work.

Should this topic be in the Triggering/Scripts forum section?
12-11-2006, 11:02 PM#7
Panto
Neutral players run away when attacked by buildings because that behavior was coded for melee games.

The best way that I know how to fix it (i.e. what I did) is to set "Stats - Is a Building" to false for all attack-capable structures. Of course, if you have triggers that check to see if a unit is a structure for any reason, you'll have to fix those to use something else.
12-11-2006, 11:15 PM#8
Ignitedstar
Almost all buildings are mechanical. You can just alternatively use Mechanical for buildings.
12-11-2006, 11:16 PM#9
n13astra
AAAAAAAAAAAAAAAAAAH!!

I see...

Do you know if that would affect abilities that have a target allowed set to building?

If so, how can i get around that?
12-12-2006, 01:14 AM#10
Jazradel
I'm going to say that your problem is actually caused by the Creep Camp Radius. Make it really big (game play constants) and it should fix your problem.
12-12-2006, 03:58 AM#11
n13astra
Ok ill test out these suggestions tonight and whom ever is right gets rep.
:D

Thanks Guys.