• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Can someone please help me? – change monster focus

Status
Not open for further replies.
Level 2
Joined
Oct 17, 2012
Messages
7
Hello, i am making a zombie survival kind of map. however i am facing 2 problems.

Problem 1: if i try to build anything, all the zombies basically drop what their doing and focus on killing the builder, and will past anything else up. is there a way i can make it so they won't focus on the builder and just keep them...killing.

Problem 2: if i ever build in a base with say, 3 entrances, 2 at the bottom, 1 on the right. the zombies will come to the base and focus only on the bottom 2 entrances, they will try to hit you and break down walls just fine, but they will never go to the 3rd entrance no matter how blocked up the other 2 entrances are. how do i make it so that they will go to that other entrance.

(also in-case your wondering, im having it the zombies just wander around and hunt you down, they aren't going from location to location.)

Please Help!
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
I think ur 2nd problem is because the AI will choose the shortest way to reach to ur base (Just guess).
In ur 1st problem, I dont really understand. What do u want they to do? Ignore u right?
 
Level 11
Joined
Oct 31, 2010
Messages
1,057
hmm for your first one , if you want the zombies to attack all the buildings if there is one and when there is none, they attack the player, i think you could do something like this O:

Event : Every 0.30 of game time

Action :
if playable map area contains random units from unit groups (all the buildings) greater then or equal to 1,

then do pick every units in zombies and do order picked unit to attack random units from unit groups (all the buildings)

else do order picked unit to attack random unit from unit group of builder
 
Level 2
Joined
Oct 17, 2012
Messages
7
Yes, in the first problem say im in the forest and i start building a barracks or something, as soon as the building starts, all the zombies on the map will stop what there doing and go to kill the builder, passing anything else up, if i stop building, they go back to do w/e it was they were doing.
 
Level 2
Joined
Oct 17, 2012
Messages
7
sure thing, i know its not that good but im still working on it lol.
 

Attachments

  • Zombie Map.w3x
    215.2 KB · Views: 43

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Hmm, ur trigger seems really weird.
First: In the matching condition, u set it as triggering unit although there is no triggering unit in the matching condition.
Second: The else action and the action is similar. I suggest u should remove the else action.
Ur problem may cause because of the building is build. I suggest u should add to the matching condition this condition: Matching Unit is a building equal to false. Since my computer isnt strong enough to test so I can test it for u. :D
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Ive tested his map. When the peasant start building a structure, the zombies all stop and then try to attack the building. He wants the zombies to continue attack their target, not switch to attack the building.
 
Level 11
Joined
Oct 31, 2010
Messages
1,057
i see i see :3 they switch their target to the unit repairing the structure O:, if the peasant does not repair the structure, the zombies do not target it, thats weird, i don't know the problem anymore and i don't know how to fix it O:
 
Level 11
Joined
Oct 31, 2010
Messages
1,057
[hidden="double post tip]don't double post, use the edit button or if you want people to see the thread getting updated, copy your last post's text and delete the message then create a new message and paste the message then press enter and start your new message with edit:[/hidden]

what is the orderid?
 
Status
Not open for further replies.
Top