• 0

    posted a message on Trigger & editor questions

    Hi,

     

    I've been working on my first map with the SC2 editor for over a week now and have some questions:

     

    1) I am trying to run a trigger after all the players in the game choose their hero. What is the event that I use to run the trigger? I tried using the "generic event" action and event, but it doesn't seem to work. There doesn't seem to be an event for the changing of a variable either.

     

    2) Regarding the above point, I want to only run the trigger when all active players have chosen a hero. Is this condition supposed to work?

    "Number of players in (active Players) == (variable that contains # of players who selected) 

     

    3) I want to run a trigger if a certain region has no units of player 1,2,3 and has units for player 4,5,6. Is this the correct way to set it up?

     

    Event:

    (Triggering unit) enters (triggering region)

     

    Conditions:

    (Triggering region) == XXX

    Or (triggering player==4, triggering player==5, triggering player==6)

    Count of Any units in (triggering region) owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most any amount)==0

    Count of Any units in (triggering region) owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most any amount)==0

    Count of Any units in (triggering region) owned by player 3 matching Excluded: Missile, Dead, Hidden, with at most any amount)==0

     

    4) How do I debug the value of a variable ingame? I can't see how to debug message the value of the variable. I also read somewhere there is a debug menu if you press tilda (~) but it doesn't seem to work for me.

     

    Thanks!

    Posted in: Triggers
  • 0

    posted a message on Newbie question - why isn't the triggering on build completion working?

    Hi,

     

    I'm new to SC2 map making but used to do a lot of sc1 map making back in the day.

     

    I'm trying to create some units when an armory (named Training reinforcements...) is completed building. Can someone tell me why the code below is not working?

     

    Thanks!

    Posted in: Triggers
  • To post a comment, please or register a new account.