Topic Ai - Global Suicide
Storm #422
Storm
In a map I am currently developing, I have zerglings spawn in the outer regions of the map. I need these zerglings to attack the "survivors" in the center of the map. Here is the main problem. I use the Global Suicide function to have them attack and it works great, sometimes. I have noticed that with this function, the Ai does not attack units, but rather buildings (It will attack units in the way of the buildings). After lots of testing I noticed that this is because, in a default melee game, the game is finished when all buildings are destroyed. So in my game, when there are simply only units in the center, the Ai will not target them. How can I fix this issue? Is there a flag I need to check in the data editor? I have tried many other attack possibilities such as:

  • I had a action that commanded the unit to attack the closest unit to them using the Issue order. This worked great, but it felt buggy and the Ai simply did not do as I imagined. It didn't use any kind of priority attacking and it simply just attacked the closest unit.

  • Another attempt I had was having the units spawn and then adding them to attack waves. This worked also, but the problem was that the Ai tried to group the zerglings before attacking. That caused several interesting issues as the zerglings would spawn all across the map and it simply did not produce the result im looking for.

  • I looked deeply into the data editor looking for a flag or some kind of unit property to fix the issue and tell the Ai to attack it, but couldn't find anything. I even compared it to structural units, but figured that the flag is contained in the ai script itself.

  • If someone could help me figure out a solution that will give me the same effects as the Global Suicide will, that would be great! I will praise them, and even add a special recognition of them in the game as a reward!
    AFatPokemon #813
    AFatPokemon
    Sorry I can't really help you on that but.. can you post how you have your Global suicide trigger set up? I cant get mine to work at all so Id appreciate it if you can thanks :)
    Storm #422
    Storm
    It takes several steps to get it set up. You need to initialize a computer ai and set its apm and difficulty using the ai triggers. Then I spawned the units and had a trigger run after everything I wanted spawned that picked all units of player 15 (the hostile units), and enabled suicide for that unit. That seemed to work best for me. If you enable the global suicide in generally resulted in several bugs that caused problems. So the work around was simple enabling it for each unit seperately. Let me know if you need help and feel free to add me on Starcraft. Storm#422
    FockeWulf #178
    FockeWulf
    Ok here is what you need to do.

    Note: You cannot use player 0 or player 15.

    1. Make an action that starts the Campaign AI for the computer player.

    2. Then after that you can use the scucide functions. I perfer the enable/disable scuicide as if you need to reissue it doing it for 100+ units like WW2 Diplo can cause the AI to memory leak hard. The same thing.
    Storm #422
    Storm
    You can actually use player 15. I have done it.
    FockeWulf #178
    FockeWulf
    05/01/2012 11:41 PMPosted by Storm
    You can actually use player 15. I have done it.


    Your right I forgot one of my earlier tests on the subject. Been a while since I played with it.

    Please report any Code of Conduct violations, including:

    Threats of violence. We take these seriously and will alert the proper authorities.

    Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

    Harassing or discriminatory language. This will not be tolerated.

    Click here to view the Forums Code of Conduct.

    Report Post # written by
    Reason
    Explain (256 characters max)

    Reported!

    [Close]