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.
    [06:02 pm]
    Zoan -- of course it isn't full understanding. You could ask "is the mechanism by which this counterexample blows up the ONLY mechanism possible for an initial configuration to blow up?"
    [05:48 pm]
    Zoan -- ppl do it all the time in PDEs
    [05:47 pm]
    Zoan -- Heinermann
    Heinermann shouted: it also didn't solve that problem but hey as long as the investors are pleased
    Constructing a counterexample is answering the question: "Is Navier Stokes well posed?" in the negative
    [05:44 pm]
    NudeRaider -- I only heard about it, didn't any news article, so what did it do then?
    [05:43 pm]
    Heinermann -- it also didn't solve that problem but hey as long as the investors are pleased
    [05:39 pm]
    NudeRaider -- I have no idea tbh. All I know no human was ever able to solve it, but there's at least a few that beat portal ;)
    [05:32 pm]
    Zoan -- Navier Stokes is not that esoteric I thought
    [04:32 pm]
    NudeRaider -- Zoan
    Zoan shouted: I find it kind of sad that on the same day it was announced AI solved Navier Stokes, it was also announced AI beat Portal, and there's a good deal of people who don't know which is more impressive
    you find it sad not everyone is a math nerd?
    [03:25 pm]
    NudeRaider -- (and yes, I capitalized that correctly :ego:)
    [03:24 pm]
    NudeRaider -- Symmetry
    Symmetry shouted: Hi not I'm dad
    Hi dad, I'm nude
    Please log in to shout.


    Members Online: Excalibur, Rawflesh0615, Ultraviolet