Hello all.
Now, I know this has been asked a lot on the forums, and I've done a search and did all of the mentioned solutions, but it just doesn't work for me.
To shortly explain what I am trying to do, here is a description of the map I am making.
There are 5 heroes per player (its only a 2 player map) and the game is won when all heroes of one side die.
So, here is the gameplay mechanics.
All units should be idle (not chase, auto attack, flee, whatever), unless they are selected by their corresponding owner/player.
However they can be attacked while in idle state (but must not respond to the initiated attack).
What I tried to do is this:
On Map Init:
Pick all units on the map and make them static/idle/passive
When a player selects a unit from his group, that unit can be moved, can attack, cast spells etc., but once the player selects the other unit the previous one goes into idle.
So I did:
Player picks a unit
A unit is owned by that player
Make all units passive
Make triggering unit active.
If a unit is attacked
Issue triggering unit to STOP.
And that's basically it. I have NO idea why things don't work, and I am totally dumbed as to why is it so difficult to achieve.
Before you give me your opinions and suggestions here is a list of what I tried and why it doesn't work.
1 - Made the units PAUSED - however this also pauses their buffs, CD-s, regen etc
2 - Peon/building/sapper type classification - doesn't work (all my units are heroes)
3 - Make the units hold/stop - this also doesn't work I don't know why.
4 - Shadow Meld/Drunken Haze is tricky, as one of my heroes has a purge, and that could remove the buffs.
Please, if anyone has any solution I would really appreciate it. Or if someone else did a similar thing if they can show me an example map or point me to it.
Thanks a lot for your help.
Now, I know this has been asked a lot on the forums, and I've done a search and did all of the mentioned solutions, but it just doesn't work for me.
To shortly explain what I am trying to do, here is a description of the map I am making.
There are 5 heroes per player (its only a 2 player map) and the game is won when all heroes of one side die.
So, here is the gameplay mechanics.
All units should be idle (not chase, auto attack, flee, whatever), unless they are selected by their corresponding owner/player.
However they can be attacked while in idle state (but must not respond to the initiated attack).
What I tried to do is this:
On Map Init:
Pick all units on the map and make them static/idle/passive
When a player selects a unit from his group, that unit can be moved, can attack, cast spells etc., but once the player selects the other unit the previous one goes into idle.
So I did:
Player picks a unit
A unit is owned by that player
Make all units passive
Make triggering unit active.
If a unit is attacked
Issue triggering unit to STOP.
And that's basically it. I have NO idea why things don't work, and I am totally dumbed as to why is it so difficult to achieve.
Before you give me your opinions and suggestions here is a list of what I tried and why it doesn't work.
1 - Made the units PAUSED - however this also pauses their buffs, CD-s, regen etc
2 - Peon/building/sapper type classification - doesn't work (all my units are heroes)
3 - Make the units hold/stop - this also doesn't work I don't know why.
4 - Shadow Meld/Drunken Haze is tricky, as one of my heroes has a purge, and that could remove the buffs.
Please, if anyone has any solution I would really appreciate it. Or if someone else did a similar thing if they can show me an example map or point me to it.
Thanks a lot for your help.