Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Hail Hydra!
[SOLVED] Hail Hydra!
This topic is locked. You can no longer write replies here.
Mar 8 2012, 11:13 am
By: LaZyMiCro  

Mar 8 2012, 11:13 am LaZyMiCro Post #1



I'm trying to figure out how I can make a trigger where if one person has a hydra and someone kills it then it will create 2 more hydras to take it's place. Only 2 hydras though. Everything I do seems to keep making them continuously. I would like to preserve the trigger for each time someone kills a hydra so it reproduces only 2 but can come back to that trigger cycle again and again.



None.

Mar 8 2012, 11:42 am NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

The problem is finding out where the hydra is killed. If it's a fixed location something like this should work:
Trigger
Players
  • Player 8
  • Conditions
  • Current Player brings at most 0 Hydralisk to 'check for dead hydras'
  • Actions
  • create 2 Hydralisk at 'check for dead hydras'
  • Preserve

  • Keep in mind that this trigger also fires if the hydra just leaves its location.

    If it doesn't matter where they died use this:
    Trigger
    Players
  • Player 8
  • Conditions
  • Current Player has suffered at least 1 death of Hydralisk
  • Actions
  • Set deaths of Hydralisk for Current Player to 0
  • Create 2 Hydralisk for Current Player at 'Spawn new hydras here'
  • Preserve


  • Both triggers assume P8 is the player owning the hydras.

    If both assumptions above how you keep track of the dead hydras are incorrect then things probably get difficult so you'll have to elaborate on your exact setup.




    Mar 8 2012, 12:25 pm TiKels Post #3



    Assuming you to, spawning hydras where a hydra died is hard.


    A way to overcome this, and this only works if the players have a few attacking units, is to have locations that track each hydra. Center a location that is as big as the range of the player's unit on said unit. If player 2 (hydra player) brings a hydra to this location, center a very small location on it and create a burrowed unit. Give hydra to player three. Cycle through all these burrowed units and move them to their respective hydras. Keep in mind that the burrowed units will slow down the hydras considerably, so you may want to have a delay on the center.



    "If a topic that clearly interest noone needs to be closed to underline the "we don't want this here" message, is up to debate."

    -NudeRaider

    Mar 8 2012, 12:38 pm Rye123 Post #4



    Adding on to the second poster, you can...
    Condition: Always
    Actions: Center location "hydra center" on unit hydra owned by Player x.

    This centers the location onto the hydra. Let's hope this is my first comment that's not deleted...



    None.

    Mar 8 2012, 12:59 pm LaZyMiCro Post #5



    Thank you all, but nude raider helped me figure it out. I thought of burrowed units etc but didn't want to go through all that. Thx anways guys!!



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [01:35 am]
    Ultraviolet -- Vrael
    Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
    Gonna put deez sportballs in your mouth
    [01:24 pm]
    Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
    [2024-4-30. : 5:08 pm]
    Oh_Man -- https://youtu.be/lGxUOgfmUCQ
    [2024-4-30. : 7:43 am]
    NudeRaider -- Vrael
    Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
    Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
    [2024-4-29. : 6:36 pm]
    RIVE -- Nah, I'm still on Orange Box.
    [2024-4-29. : 4:36 pm]
    Oh_Man -- anyone play Outside the Box yet? it was a fun time
    [2024-4-29. : 12:52 pm]
    Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
    [2024-4-29. : 11:17 am]
    Zycorax -- :wob:
    [2024-4-27. : 9:38 pm]
    NudeRaider -- Ultraviolet
    Ultraviolet shouted: NudeRaider sing it brother
    trust me, you don't wanna hear that. I defer that to the pros.
    [2024-4-27. : 7:56 pm]
    Ultraviolet -- NudeRaider
    NudeRaider shouted: "War nie wirklich weg" 🎵
    sing it brother
    Please log in to shout.


    Members Online: jun3hong