Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Mobile Grids that detects N, E, S, W
Mobile Grids that detects N, E, S, W
Apr 21 2017, 4:57 am
By: UnholyUrine  

Apr 21 2017, 4:57 am UnholyUrine Post #1



Hi all, and thanks for helping!

I am trying to create a 1x1 mobile grid which centers a 3x3 grid, and then four 1x1 locations, labeled N, E, S, W, to be centered 1x location respectively for their directions. This is so that I can detect whether a building is to the North/East/South/West of a unit.

Right now, here is my code

The Grid
Players

  • Player 8
  • Conditions

  • Switch("Switch3", set);
  • Actions

  • Comment("The Grid");
  • Preserve Trigger();
  • Set Switch("Switch3", clear);
  • Remove Unit At Location("Player 8", "Zerg Scourge", All, "Grid");
  • Create Unit("Player 11", "Zerg Scourge", 1, "Grid");
  • Create Unit("Player 11", "Protoss Observer", 1, "Grid");
  • Create Unit("Player 11", "Zerg Scourge", 1, "Grid");
  • Create Unit("Player 11", "Protoss Observer", 1, "Grid");
  • Create Unit("Player 11", "Zerg Scourge", 1, "Grid");
  • Create Unit("Player 11", "Protoss Observer", 1, "Grid");
  • Create Unit("Player 11", "Zerg Scourge", 1, "Grid");
  • Create Unit("Player 11", "Protoss Observer", 1, "Grid");
  • Create Unit("Player 11", "Zerg Scourge", 1, "Grid");
  • Move Location("Player 11", "Zerg Scourge", "Grid", "W");
  • Remove Unit At Location("Player 11", "Zerg Scourge", 1, "Grid");
  • Remove Unit At Location("Player 11", "Protoss Observer", 2, "Grid");
  • Move Location("Player 11", "Zerg Scourge", "Grid", "N");
  • Remove Unit At Location("Player 11", "Zerg Scourge", 1, "Grid");
  • Move Location("Player 11", "Zerg Scourge", "Grid", "S");
  • Remove Unit At Location("Player 11", "Zerg Scourge", 2, "Grid");
  • Move Location("Player 11", "Zerg Scourge", "Grid", "E");
  • Remove Unit At Location("Player 11", "Zerg Scourge", 1, "Grid");
  • Remove Unit At Location("Player 11", "Protoss Observer", 2, "Grid");


  • I have a set of triggers that creates and kills probes at the N, E, S, W locations, but when I activate the switch, the probes are not exploding at a nice North East South West pattern. They seem to be bunched up, meaning the locations are not centered on the right units.

    Can anyone help? I am unfamiliar with mobile grids in which the grid, and the directions within it must never fail.

    Thanks



    None.

    Apr 21 2017, 5:15 am Zoan Post #2

    Math + Physics + StarCraft = Zoan

    Maybe remove is removing the units in with an incorrect "prioritization" or whatever?

    Try setting up the N E S W locations as you are first creating the Scourges and Observers, maybe that would get it to work.

    Edit: Oh wait, one thing about mobile grids that I just remembered:

    I thought you always create the last unit for a different player (e.g. Player 12) and then move locations onto that player's unit.

    Then at the end you remove units for both players (P11 and P12).

    Also, maybe I'm crazy, but can you create units for Neutral Players directly?



    \:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

    Apr 21 2017, 5:48 am Oh_Man Post #3

    Find Me On Discord (Brood War UMS Community & Staredit Network)

    You cant create units for extended playere. You have to do 1-8 then use give.




    Apr 21 2017, 6:12 am UnholyUrine Post #4



    Quote from Oh_Man
    You cant create units for extended playere. You have to do 1-8 then use give.
    Oh for fucks sake.
    Yeah it's working now. Thanks



    None.

    Apr 21 2017, 8:17 am Oh_Man Post #5

    Find Me On Discord (Brood War UMS Community & Staredit Network)

    Google SEN quirks and nuances and favourite that shit. It's handy af for remembering all the weirdness of triggers.

    http://www.staredit.net/wiki/index.php?title=Quirks_and_nuances




    Apr 21 2017, 9:35 am theskinsurf Post #6



    Quote from Oh_Man
    Google SEN quirks and nuances and favourite that shit. It's handy af for remembering all the weirdness of triggers.

    http://www.staredit.net/wiki/index.php?title=Quirks_and_nuances

    that's incredibly useful.



    Current project: Star Rogue
    Other projects: Triumvirate Defense, Skirmish Islands

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [06:48 pm]
    Ultraviolet -- :wob:
    [2024-4-21. : 1:32 pm]
    Oh_Man -- I will
    [2024-4-20. : 11:29 pm]
    Zoan -- Oh_Man
    Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
    You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
    [2024-4-20. : 8:20 pm]
    Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
    [2024-4-20. : 8:20 pm]
    Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
    [2024-4-20. : 8:18 pm]
    Ultraviolet -- Oh_Man
    Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
    oh ya I saw that when Armo posted it on Discord, pretty crazy
    [2024-4-20. : 8:09 pm]
    Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
    [2024-4-20. : 8:09 pm]
    Vrael -- woo baby talk about a time crunch
    [2024-4-20. : 8:08 pm]
    Vrael -- Oh_Man
    Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
    so that gives me approximately 27 more years to finish tenebrous before you get to it?
    [2024-4-20. : 7:56 pm]
    Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
    Please log in to shout.


    Members Online: Oh_Man, C(a)HeK