[Trigger] Problem with respawn when I use RaiseDead

Status
Not open for further replies.
Level 7
Joined
Dec 12, 2007
Messages
60
In my ORPG I have a necromancer hero that has the skill Raise Dead.The problem is that when hh uses that the creeps dont respawn.
I made a trigger to stop it but it works only for one creep when I use it on more creeps it dont works.Can you tell me what to do?
[IMG=http://img41.imageshack.us/img41/7919/tirggers.jpg][/IMG][IMG=http://img41.imageshack.us/img41/tirggers.jpg/1/w668.png][/IMG]
The repsawn system works when the unit dies,the spell removes the unit from the game,thats why I made the trigger to prevent removing the unit.Also I have added the Group to prevent double spawning but it dont works.Tell me your opinion.
+rep for your help
 
Level 4
Joined
Mar 23, 2008
Messages
87
First of, it would be helpful if you rightclicked the trigger in in the trigger editor and select copy as text, then paste it under a [ Trigger ] [ /Trigger ] tag.

Now to the problem at hand. I think I've identified what goes wrong.
  • If - Conditions
    • (Picked unit) Equal to (Random unit from (AllredyResed))
This does not go throught the whole unit group. This only picks one unit at random in the unit group and try to match it to the one that is picked. Hence it will only work with the first unit or maybe two first units.

If my theory is correct then the following should work better:
  • If - Conditions
    • ((Picked unit) is in (AllredyResed)) Equal to True
 
Status
Not open for further replies.
Top