Detecting nukes
Jan 24 2011, 4:40 am
By: XeNoa23  

Jan 24 2011, 4:40 am XeNoa23 Post #1



Well, I had an epic map idea. My favorite character: The Terran Ghost, is the star in this. The idea is very similar to falling tiles, however before I get into this I want to make sure I can detect nukes based on where they land. This way I can create a center location, destroy tiles, and check for enemy player presence with a second location. Soooooo

I will post the full idea in the production section. However, I actually forgot how to do this since the last map I made was a while back. I could use some assistance, thanks. :)



None.

Jan 24 2011, 5:34 am Roy Post #2

An artist's depiction of an Extended Unit Death

Not possible to detect the actual explosion.

However, it is possible to detect the nuke itself, and you can continuously center the location onto the nuke until it explodes, which will give the approximate location of the explosion. Nukes are owned by the players that launch them, so this in entirely feasible if a player can only launch one nuke at a time.

The trigger would have to toggle some type of switch for when the nuke first appears, and then when it exits.

Trigger
Players
  • Player 1
  • Conditions
  • Current player brings at least 1 Nuke to Anywhere.
  • Actions
  • Set Switch 1.
  • Move Location P1NUKE on Nuke owned by current player at Anywhere.
  • Preserve Trigger.

  • Trigger
    Players
  • Player 1
  • Conditions
  • Current player brings at most 0 Nuke to Anywhere.
  • Switch 1 is set.
  • Actions
  • Clear Switch 1.
  • Remove all Missile Traps owned by Player 9 at P1NUKE.
  • Preserve Trigger.


  • That is, of course, a primitive design. If you wanted a more circular shape for removing, you could use multiple locations.

    As for the checking part, Falling Tiles simply had a location follow each corsair and check "If there are 0 tiles at this location, kill the corsair." You could do the same thing or something similar with the ghosts, if your design permits it.




    Jan 24 2011, 10:59 am XeNoa23 Post #3



    Quote from Roy
    Not possible to detect the actual explosion.

    However, it is possible to detect the nuke itself, and you can continuously center the location onto the nuke until it explodes, which will give the approximate location of the explosion. Nukes are owned by the players that launch them, so this in entirely feasible if a player can only launch one nuke at a time.

    The trigger would have to toggle some type of switch for when the nuke first appears, and then when it exits.

    Trigger
    Players
  • Player 1
  • Conditions
  • Current player brings at least 1 Nuke to Anywhere.
  • Actions
  • Set Switch 1.
  • Move Location P1NUKE on Nuke owned by current player at Anywhere.
  • Preserve Trigger.

  • Trigger
    Players
  • Player 1
  • Conditions
  • Current player brings at most 0 Nuke to Anywhere.
  • Switch 1 is set.
  • Actions
  • Clear Switch 1.
  • Remove all Missile Traps owned by Player 9 at P1NUKE.
  • Preserve Trigger.


  • That is, of course, a primitive design. If you wanted a more circular shape for removing, you could use multiple locations.

    As for the checking part, Falling Tiles simply had a location follow each corsair and check "If there are 0 tiles at this location, kill the corsair." You could do the same thing or something similar with the ghosts, if your design permits it.

    Firstly, thank you. Secondly, what's with the switches, since the nuke itself acts as a switch. Thirdly, my plan is to actually remove whatever is in the vicinity of a still location, teehee which answers the first question. Alrighty. Wouldn't want them to place in the center of the map. Ok thanks :)



    None.

    Jan 24 2011, 4:06 pm Dem0n Post #4

    ᕕ( ᐛ )ᕗ

    If the switch wasn't there, then the tiles would all blow up at that location even if the player hadn't launched a nuke.




    Jan 25 2011, 7:30 pm Heinermann Post #5

    memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes

    Keep in mind this will also be triggered when a player cancels the nuke.




    Jan 25 2011, 9:28 pm poison_us Post #6

    Master has given Dobby a doctorate! Dobby is free!

    Once the nuke flies offscreen, would the location move to the center of the map?




    Jan 26 2011, 12:04 am Roy Post #7

    An artist's depiction of an Extended Unit Death

    Quote from poison_us
    Once the nuke flies offscreen, would the location move to the center of the map?
    It only moves when the nuke is in 'Anywhere,' so no. Once it moves outside of Anywhere, it won't try to center the location. It would, however, fire the second trigger.
    Quote from Heinermann
    Keep in mind this will also be triggered when a player cancels the nuke.
    Good point. This would probably be triggered whenever a nuke was first launched from the silo and disappears, but I assume the silos would be in a controlled area outside of the gaming arena.




    Jan 26 2011, 11:19 pm TiKels Post #8



    You could also just time it as a safety, so it won't prematurely go off, as an alternative to an exterior area being used to hold the silo.



    "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

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [02:28 am]
    Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
    [02:28 am]
    Symmetry -- Ohhh imagine a SC map that could delete itself
    [08:51 pm]
    NudeRaider -- Symmetry
    Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
    yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
    [2026-7-15. : 4:10 am]
    Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
    [2026-7-15. : 2:19 am]
    Symmetry -- NudeRaider
    NudeRaider shouted: Symmetry I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
    Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
    [2026-7-14. : 11:43 pm]
    Ultraviolet -- let's take each other's clothes off :teach:
    [2026-7-14. : 11:03 pm]
    Vrael -- :teach:
    [2026-7-14. : 11:03 pm]
    Vrael -- I mean, my clothes
    [2026-7-14. : 11:03 pm]
    Vrael -- I will take your clothes off
    [2026-7-14. : 7:13 pm]
    NudeRaider -- I am gettin' so hot :teach:
    Please log in to shout.


    Members Online: lil-Inferno, Roy