SC2Mapster Forums

Development > Miscellaneous Development

Lobby Start location and team assembly (read on its all there at the end)

  • 8 posts
    #1 Nov 20, 2012 at 19:08 UTC - 0 likes

    1,: I would need a drop-down button before entering wich would choose the difficulty.(Is there a way to connect this to triggers wich would remove 20% of life of the mobs on easy, but add 20% of life on hard?)

    I made the drop-down bottons :

    map tab -> Game variants -> added easy/normal/hard modes ->game type:Tower D ->Atributes: Game speed(made each variants with a different speed); Lobby delay: 5 / hidden; locked alliances: yes / hidden

    I need to connect each of the variants to a trigger that will give a buff to the mobs ( this is only my theory) which will add/take away 20% of life depending on difficulty.

    2,: In the lobby i would need to remove the race selection (this is available in the map via diaolges) and any other modes on the upper right corner (like speed selection, team modes and such, these i want to integrate into the map via voting) and like to add a placement selection (replacing the race select) such as Top Left" or "Bottom Right"

    I made the buttons for this:

    map tab ->game attributes ->add attributes ( named it to "start position") ->General tab: type: player ->usage: availability:1st come 1st serve; visibility: all players; access: self only ->values: I added all the poitions( top right, top left etc) ->default: assigned players to values( player 1-top right, player 2-top left etc) The rest i removed (xcept color) by:

    map tab ->game variants ->player attributes ->check all the attributes (top right corner) I didn't need (difficulty, hangycap, race)

    Now I need to connect these to triggers.

    3,: Is there a way to swap host if he/she AFk for lets say 3 minutes?

    Many say its not possible but I'll ask amyways :)

    Someone pls help !!

    Thx a lot !

    #2 Nov 21, 2012 at 08:57 UTC - 0 likes

    This is concerning a "Game" mode.

    This would be like you "asking the game" which mode it was.

    Therefore, create new condition, click on game and the first two things that come up are what you want.

    @3, yes, but you need to start the countdown after the game starts, and reset the countdown depending on player input - however you may choose to do it.

    #3 Nov 21, 2012 at 15:29 UTC - 0 likes

    @DogmaiSEA: Go "Therefore, create new condition, click on game and the first two things that come up are what you want"

    Thx, but is it in triggers or ..?

    Can you be more spesific like:

    event: .... condicion: .... action: ....

    I cant find where is this condicion. If i make a new trigger I cant choose "Game" in the condicion part. I'm a bit confused ..

    #4 Nov 21, 2012 at 18:41 UTC - 0 likes

    -_- ...

    #5 Nov 23, 2012 at 00:00 UTC - 0 likes

    @DogmaiSEA: Go

    ok so this is as far as i got:

    Game Modes

    Events

    Local Variables

    Conditions

    (Owner of (Last created unit)) == 15

    Actions

    General - Switch (Actions) depending on (Game Difficulty Modes game value)

    Cases

    General - If (Hard Mode)

    Actions

    Unit - Set (Last created unit) Life (Percent) to 120.0

    But it doesnt work.. Any suggestions?

    Last edited Nov 23, 2012 by ElBushido
    #6 Nov 23, 2012 at 04:05 UTC - 0 likes

    @ElBushido: Go

    You should set the unit's maximum health to its normal maximum health x 1.2, and then set health % to 100.

    #7 Nov 23, 2012 at 04:18 UTC - 0 likes

    @ElBushido: Go

    alright so I was playing around with it and I got it to work now (Question #1) :

    the trigger:

    Game Modes

    Events Unit - Any Unit Leaves game mode region

    Local Variables

    Conditions (Owner of (Triggering unit)) == 15

    Actions General - If (Conditions) then do (Actions) else do (Actions)

    If (Game Difficulty Modes game value) == Easy Mode

    Then Unit - Set (Triggering unit) Maximum Life to (((Triggering unit) Life (Current)) * 0.8)

    Else General - If (Conditions) then do (Actions) else do (Actions)

    If (Game Difficulty Modes game value) == Hard Mode

    Then Unit - Set (Triggering unit) Maximum Life to (((Triggering unit) Life (Current)) * 1.2)

    Else

    Than I added an action to my spawn trigger:

    Trigger - Run Game Modes (Check Conditions, Don't Wait until it finishes)

    Last edited Nov 23, 2012 by ElBushido
    #8 Nov 24, 2012 at 04:35 UTC - 0 likes

    @ElBushido: Go

    OK so I creacked Question #2:

    I had to rewrite my whole choose race stuff and do this:

    Make 3 (or as many race/builder you have) triggers initialy off, enabled and 2 variables (team 1 and 2, this is a player group variable)

    trigger "buid 1":

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Start Position value for player (Triggering player)) == 1-Top Right

    Then

    Variable - Set Start Locations[2] = SL 2 LT

    Variable - Set Builder Spawn Point[2] = BSpawn 2 LT

    Unit - Create 1 town center 1 for player (Triggering player) at Start Locations[2] using default facing (No Options)

    Unit Selection - Add (Last created unit) to control group 3 for player (Triggering player)

    Camera - Pan the camera for player (Triggering player) to (Position of (Last created unit)) over 0.5 seconds with Existing Velocity% initial velocity, 10.0% deceleration, and Do Not use smart panning

    Unit - Create 1 builder 1 for player (Triggering player) at Builder Spawn Point[2] using default facing (No Options)

    Unit Selection - Add (Last created unit) to control group 1 for player (Triggering player)

    Player Group - Add player (Triggering player) to Team Left

    Dialog - Hide Dialog Builders for (Player group((Triggering player))

    Else: copy pasted the above action and changed the "Start Position value for player (Triggering player)) == 1-Top Right" to "Start Position value for player (Triggering player)) == 1-Top Left" then all the other velues and I copy pasted this action into the current action's "Else" section and changed the position to the next and so on

    I did this for each position ( so 8 times and changed the location # to the corresponding point on the map so if Start Position value for player (Triggering player)) == would be 1-Top Left than Builder Spawn Point would be [1] and Start Locations would be also [1] same in the set variables == would be SL (as in start location) 1 LT(as in left team))

    Note that if the position is 2-Top Right than the player must be added to team right because that position is on the other side of the map.

    Than when all the position were done in this trigger I made the same for 2 more triggers but change the builder 1 to builder 2 and town center 1 to town center 2 and in the 3rd trigger changed builder/town center 2 to builder/town center 3(because builder/town center 1 is zerg but builder/town center 2 is protoss and builder/town center 3 is terran)

    than made another trigger ( this 1 is initialy on and enabled) which calls on the trigger (from the above 3) that correspondes to the right dialog button:

    Choose race trigger:

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Used dialog item) == Dialog Button race 1

    Then

    Trigger - Run build 1 (Check Conditions, Wait until it finishes)

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Used dialog item) == Dialog Button race 2

    Then

    Trigger - Run build 2 (Check Conditions, Wait until it finishes)

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Used dialog item) == Dialog Button race 3

    Then

    Trigger - Run build 3 (Check Conditions, Wait until it finishes)

    And got to the sad conclusion while I was doing this that there is no answer to my 3rd question since triggers only control the map but cant control the Lobby so the game has to start before any trigger kicks in ...

  • 8 posts

You must login to post a comment. Don't have an account? Register to get one!