Results 1 to 10 of 10

Thread: Need help getting trigger to work

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    4

    Default Need help getting trigger to work

    Hello everyone! Just wanted to first say thanks for this site, it's helped me get more knowledge about the Starcraft 2 map editor

    As for my problem, i'll explain it better here:

    What I have at the moment is when any unit that is owned by the hostile player (15) leaves the region I have named 'unit check' and enters 'tele 8', the variable 'units in tele' gets set to 'units in tele' -1, and then when the variable == 1 the timer starts (was the only way I could think of to get the timer I created to only activate once). Then all units then hold position, become invulnerable, and then waits for the timer to count down to 0 before attacking the 'end region.


    What I would like to do is after having any unit hold and go invuln, the trigger then waits until all the units owned by player 15 in the region 'unit check' == 0.

    At the moment I cannot figure out what condition I could use to get this to work, as most of the conditions I thought I could use involve a unit group type (which atm my low knowledge in the editor restricts me from using)

    Thanks for any reply I get, anything would be beneficial for me right now
    Last edited by Rizz; 08-26-2010 at 03:54 PM.

  2. #2

    Default Re: Need help getting trigger to work

    Gotta be honest, this probably isn't the greatest site to go to for mapping. I'd tell you one of my favored ones, but idk if that's against the rules or not, so just go to google and look up something that would help with Staredit mapping. There's probably a good Network or two around there. This place is the greatest for everything that isn't map-making though. :P

  3. #3
    Junior Member
    Join Date
    Aug 2010
    Posts
    4

    Default Re: Need help getting trigger to work

    Well thank you, I appreciate it sir

  4. #4
    Maul's Avatar Member
    Join Date
    Jun 2009
    Posts
    1,218

    Default Re: Need help getting trigger to work

    Don't listen to Artanis, Rizz. I'll be able to answer your question no problem. I just need to know if player 15's units start in the unit check region or are created (either by the editor or player) in it.
    I really need to change this...
    Check out my maps: Maul's Spirial Turret Defense and Maul's Risk: Bel'shir

  5. #5

    Default Re: Need help getting trigger to work

    Quote Originally Posted by Artanis186 View Post
    Gotta be honest, this probably isn't the greatest site to go to for mapping. I'd tell you one of my favored ones, but idk if that's against the rules or not, so just go to google and look up something that would help with Staredit mapping. There's probably a good Network or two around there. This place is the greatest for everything that isn't map-making though. :P
    Well if our members knew more about mapping and we helped each other out rather than directing each other to other sites, that might change.
    SC2 handle - "DrakeyC, code 929"

    I ARE A PROPHET! I've predicted three major aspects of SC2 correct, more or less.

    June 2007 - I predicted the Protoss campaign would give you new tech as you conducted diplomacy among tribes.

    Hidden Content:
    July 18th 2010 - I predicted Raynor would broadcast information of Mengsk's actions on Tarsonis to discredit him and incite rebellion.


    Hidden Content:
    June 16th 2010 I predicted the Voice in the Darkness was the commanding force behind the Hybrids. I'm calling it half-right.

  6. #6

    Default Re: Need help getting trigger to work

    Quote Originally Posted by Drake Clawfang View Post
    Well if our members knew more about mapping and we helped each other out rather than directing each other to other sites, that might change.
    Just stating what I know. Until the Modding and Mapping section is less of a ghost-town, I'll be sticking to another site. This site just seems a lot more focused on the lore and gameplay portions of the game, and not too likely to change.

    EDIT: That's not to say it's a bad thing. I honestly prefer having 2 different sites for these reasons. That way the expertise isn't nearly as questionable.
    Last edited by Alzarath; 08-27-2010 at 07:14 AM.

  7. #7
    Junior Member
    Join Date
    Aug 2010
    Posts
    4

    Default Re: Need help getting trigger to work

    I ended up figuring this out later on in the day, and it seems to work quite well.

    It ended up being this:

    Comparison
    Value 1: number of units in unit group
    Type: living
    - Unit group: units in region matching condition
    unit type: any
    region: unit check
    player: 15
    unit filter: excluded: missile,dead,hidden
    count: any amount
    operator: ==
    value 2: 0

    If there is an easier/better way, please let me know, but at the moment this works fine in waiting until there are no more units owned by player 15 in the unit check region before moving on to the other actions.

  8. #8
    Maul's Avatar Member
    Join Date
    Jun 2009
    Posts
    1,218

    Default Re: Need help getting trigger to work

    If that works for you that's great. My way was a bit more complicated but if that works then good stuff
    I really need to change this...
    Check out my maps: Maul's Spirial Turret Defense and Maul's Risk: Bel'shir

  9. #9
    Junior Member
    Join Date
    Aug 2010
    Posts
    4

    Default Re: Need help getting trigger to work

    Quote Originally Posted by Maul View Post
    If that works for you that's great. My way was a bit more complicated but if that works then good stuff
    Could you show me how yours worked? i'd like to see another way, since it could very well help me out even better then the one i thought of.

  10. #10
    Maul's Avatar Member
    Join Date
    Jun 2009
    Posts
    1,218

    Default Re: Need help getting trigger to work

    Well I'd set the event to a unit enters region, add the unit to a unit group if belongs to 15, do an if statement to check if you have all the units ready to go, if so, start the timer, have another event for timer expires and then issue order, or if not, get the unit to hold position and modify their hp (invincible).

    It's hard to know exactly the best way to do something unless you know the whole story, but like I said, if your way works then that's great.
    I really need to change this...
    Check out my maps: Maul's Spirial Turret Defense and Maul's Risk: Bel'shir

Similar Threads

  1. Just a hard day at work...
    By FoxSpirit in forum Off-Topic Lounge
    Replies: 14
    Last Post: 08-25-2010, 03:16 AM
  2. [Tutorial] Understanding Trigger Elements
    By Maul in forum StarCraft Discussion
    Replies: 0
    Last Post: 07-24-2010, 12:24 AM
  3. Where you work?
    By Keeganomical in forum Off-Topic Lounge
    Replies: 27
    Last Post: 06-11-2010, 03:55 PM
  4. How does Bnet 2.0 actually work?
    By TWD in forum StarCraft Discussion
    Replies: 12
    Last Post: 05-31-2010, 08:44 PM
  5. [suggestion] Order Trigger-Queue
    By horror in forum StarCraft Discussion
    Replies: 3
    Last Post: 04-14-2010, 11:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •