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

    SDE, BWAPI owner, hacker.

    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.
    [07:32 pm]
    Zoan -- I got $2000 bonus. I would like 2000 minerals, please
    [2026-4-16. : 4:15 am]
    DarkenedFantasies -- you eat lots of beans
    [2026-4-16. : 3:46 am]
    IskatuMesk -- how do i get gas
    [2026-4-15. : 11:43 pm]
    Moose -- you don't
    [2026-4-15. : 10:06 pm]
    Zoan -- how do i get minerals
    [2026-4-14. : 11:45 pm]
    ClansAreForGays -- Anyone wanna played Skewed StarCraft?
    [2026-4-14. : 12:07 am]
    Vrael -- NudeRaider
    NudeRaider shouted: Vrael ranting still is though
    you're a gentleman and a scholar, thank you
    [2026-4-13. : 10:07 pm]
    NudeRaider -- ya why phone people when you can just write letters
    [2026-4-13. : 9:37 pm]
    IskatuMesk -- I have never and will never own a phone
    [2026-4-13. : 9:15 pm]
    NudeRaider -- Vrael ranting still is though
    Please log in to shout.


    Members Online: akirasmith435, anoeth47