monsters wont attack

branno

New Member
Reaction score
2
ok here's the problem, i am making a zombie map where you have to kill the waves of zombies that spawn but for some reason the zombies dont always attack u and sometimes they dont even move and they just stand there taking the hits and die.

im thinking it could have to do with the amount of zombies there are or something but im not sure.

so i was wondering if anyone has some sugestions for things i could try also i could send you the map for you to look at if you want. :)
 

branno

New Member
Reaction score
2
trigger

Code:
    Events
        Time - Elapsed game time is 100.00 seconds
    Conditions
            Actions
        if ((Player 1 (red) slot status) Equal to is playing) then do (Unit - Create 10 Zombie Guy for player (Dark Green) at (Random point in WholeMap) <gen> facing Default building facing degrees else) (do nothing)

and there is a lot more like that, i made it so it would only spawn zombies if the player slot was taken
 

SnowCrow

New Member
Reaction score
7
What about the moving trigger? If issue the units to move to the location they won't attack. Maybe that's the problem? Use the attack-move order.
 

HydraRancher

Truth begins in lies
Reaction score
197
Do they sometimes attack? Are they unallied? I could go on. Please extend your problem
 

branno

New Member
Reaction score
2
lol yes they are un allied, they some times attack, sometimes you have to attack them before they attack you and even then sometimes when u attack them they wont attack you.

i have not made a triger for them to move to a location or attack i have just given them the ability to wander (neutural) which seems kinda stupid now that i think about it =P

can someone plz tell me a trigger to make them move around to the location of the players and attack. :)
 

Kelvin87

New Member
Reaction score
14
You give the Zombie vision to 9999999 (shift + enter to modify the value in objec t editor) and Combat - Acquitition range to 0; then for your player, give it Building damage aura of damage 0.01 with AoE of 999999 will do.
 

istar

New Member
Reaction score
31
trigger
event-every few secs/everytime players cast aggro spells
action-pick all units in zombie unitgroup and do
attack-move to position of player units

if the periodic event is not too fast, the zombies will arrive at where the player unit WAS, if player move on fast enough, nothing much happens,
thats the general trigger, add more conditions and actions to refine it
eg. once they come close to some range, make zombie attack unit
attack-move wont give chase too far from original point, but attack order will chase as long as there is LOS
as for your zombie not attack problem, did the problem arise when you have too many zombies?
or just a small group? does the zombie have the correct aquistion range and sight range? did the zombie have small enough collision size?
did you set the meelee range too small?
 

branno

New Member
Reaction score
2
yea it seems like they mainly dont attack when there is a lot on the map.

ill try out these ideas and hopefully it will work, thnx
 

istar

New Member
Reaction score
31
if there is really alot, like hundreds, it may simply be wc3 unable to handle
the best solution is clear the leaks and optimize code
 

branno

New Member
Reaction score
2
lol yea it gets to the stage where for every player playing it will spawn like 100 zombies so if there are 10 people it would summon around 1000 zombies rofl and then they wont all die and the next wave will start and another 1000 will spawn =P
 

istar

New Member
Reaction score
31
JASS:
lol yea it gets to the stage where for every player playing it will spawn like 100 zombies so if there are 10 people it would summon around 1000 zombies rofl and then they wont all die and the next wave will start and another 1000 will spawn =P

erm... just an advice, dont do that, i am amazed that just a simple zombie wont attack problem occur... wc3 should lag alot and crash -.-
upgrade the zombies instead, quality>quantity + less lag
 

branno

New Member
Reaction score
2
ok i have greatly reduced the number of zombies spawned lol.

You give the Zombie vision to 9999999 (shift + enter to modify the value in objec t editor) and Combat - Acquitition range to 0; then for your player, give it Building damage aura of damage 0.01 with AoE of 999999 will do.

i tried this and it didnt seem to do anything so i put the auras damage up to 20 and it still did nothing even if i go right up to the zombie and stand next to him, i have made sure that its allowed to target/damage the zombies so i cant figure out whats wrong.

any ideas?
 

istar

New Member
Reaction score
31
damage 0.01.... remember? wc3 will round down and the damage is zero...-.-
so low a damage? what is it for? huh?
 

HeChaoz

New Member
Reaction score
2
any ideas?

Ye, i got an idea. I got a zombie map myself. while the map sucks, the triggers work fine. let me post it for you, for some rep in return? ^^

Code:
New Undead
    Events
        Time - Every 30.00 seconds of game time
    Conditions
    Actions
        Unit - Create 4 Zombie 1 for Player 11 (Dark Green) at (Center of Region Undead Spawn West <gen>) facing (Random point in (Playable map area))
        Unit - Create 4 Zombie 1 for Player 11 (Dark Green) at (Center of Region Undead Spawn South <gen>) facing (Random point in (Playable map area))
        Unit - Create 4 Zombie 1 for Player 11 (Dark Green) at (Center of Region Undead Spawn East <gen>) facing (Random point in (Playable map area))
        Unit - Create 4 Zombie 1 for Player 11 (Dark Green) at (Center of Region Undead Spawn North <gen>) facing (Random point in (Playable map area))
        Unit - Create 4 Zombie 2 for Player 11 (Dark Green) at (Center of Region Undead Spawn West <gen>) facing (Random point in (Playable map area))
        Unit - Create 4 Zombie 2 for Player 11 (Dark Green) at (Center of Region Undead Spawn East <gen>) facing (Random point in (Playable map area))
        Unit - Create 4 Zombie 2 for Player 11 (Dark Green) at (Center of Region Undead Spawn North <gen>) facing (Random point in (Playable map area))
        Unit - Create 4 Zombie 2 for Player 11 (Dark Green) at (Center of Region Undead Spawn South <gen>) facing (Random point in (Playable map area))
        Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green) of type Zombie 2) and do (Unit - Order (Picked unit) to Patrol To (Random point in (Playable map area)))
        Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green) of type Zombie 1) and do (Unit - Order (Picked unit) to Patrol To (Position of (Random unit from (Units owned by (Random player from (All enemies of Player 11 (Dark Green)))))))

this causes the zombies to spawn. In my map, some zombies are wandering and some are directly attacking.

Code:
Undead Roam
    Events
        Time - Every 30.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green) of type Zombie 2) and do (Unit - Order (Picked unit) to Patrol To (Random point in (Playable map area)))

this keeps them roaming.

I hope this will work out for you =]
 

branno

New Member
Reaction score
2
damage 0.01.... remember? wc3 will round down and the damage is zero...-.-
so low a damage? what is it for? huh?

well it would damage them very little and so they would come after me, im guessing thats the theory behind it lol
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top