• 0

    posted a message on Drawing Contest Map

    Randomly selected object to draw.

    What does the Drawing Player draw?!?
        Events
        Local Variables
            Object to draw = No Text <Text[3]>
        Conditions
        Actions
            Variable - Set Object to draw[0] = "Pig"
            Variable - Set Object to draw[1] = "House"
            Variable - Set Object to draw[2] = "Book"
            Variable - Set Object to draw[3] = "Television"
            UI - Display ("Draw a" + Object to draw[(Random integer between 0 and 3)]) for Drawing Player[Drawer] to Directive area
    

    P.S. Might have to convert text to string later. Also, instead of putting "Object to draw" at Local Variable, make it a Global Variable.

    Posted in: Triggers
  • 0

    posted a message on Drawing Contest Map

    I wold approach the switch drawing player somewhat like this:

    Triggers:
    1. Set Variable
    2. Switch Drawing Player

    Variables:
    1. Drawing Player = (Empty player group) <Player Group[4]>
    2. Drawer = 0 <Integer>

    Set Variable
        Events
        Local Variables
        Conditions
        Actions
            Player Group - Pick each player in (Active Players) and do (Actions)
                Actions
                    Player Group - Add player (Picked player) to Drawing Player[(Picked player)]
    
    Switch Drawing Player
        Events
            Timer - Every 60.0 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Variable - Modify Drawer: + 1
            Unit - Create 1 SCV for player (Player 1 from Drawing Player[Drawer]) at Point using default facing (No Options)
    

    I have not tested this due to lack of time, but hopefully it will work ^_^

    Posted in: Triggers
  • 0

    posted a message on Help needed for my future map

    Triggers:
    Text tag
    Archon
    Archon 2

    Variables:
    Drone Group = (Empty unit group) <Unit Group[4]>
    Drone Count = 0 <Integer[4]>

    Text tag
        Events
            Timer - Elapsed time is 0.1 Game Time seconds
        Local Variables
        Conditions
        Actions
            Text Tag - Create a text tag with the text "Archon: 1 Drone" for (All players), using a font size of 24, at (Position of Archon [56.64, 44.52]) and height offset 1.0, initially Visible, and fog of war enforcement set to false
    
    Archon
        Events
            Unit - Any Unit Enters a distance of 3.0 from Archon [56.64, 44.52]
        Local Variables
        Conditions
        Actions
            Unit Group - Add (Triggering unit) to Drone Group[(Owner of (Triggering unit))]
            Variable - Modify Drone Count[(Owner of (Triggering unit))]: + 1
            Player Group - Pick each player in (Active Players) and do (Actions)
                Actions
                    Unit Group - Pick each unit in (Drone units in Archon Region owned by player (Picked player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
                        Actions
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    Drone Count[(Picked player)] == 1
                                Then
                                    Unit - Create 1 Archon for Player 1 at Point 002
                                    Variable - Set Drone Count[(Picked player)] = 0
                                    Unit Group - Pick each unit in Drone Group[0] and do (Actions)
                                        Actions
                                            Unit - Kill (Picked unit)
                                Else
    
    Archon 2
        Events
            Unit - Any Unit Leaves a distance of 3.0 from Archon [56.64, 44.52]
        Local Variables
        Conditions
            ((Triggering unit) is alive) == true
        Actions
            Unit Group - Remove (Triggering unit) from Drone Group[(Owner of (Triggering unit))]
            Variable - Modify Drone Count[(Owner of (Triggering unit))]: - 1
    
    Posted in: Triggers
  • 0

    posted a message on Help needed for my future map

    I recommend you to read the Blizzard Trigger Module tutorial to get you started.

    Trigger 1: Drone Spawn Mechanic

        Events
            Unit - Any Unit dies
        Local Variables
            Killing Unit = No Unit <Unit>
            ------- Local variables only be accessed by the the current trigger.
        Conditions
            (Owner of (Triggering unit)) == 15
            ------- This condition makes it so that this trigger will only run if the owner of the triggering 
    ------- unit (the unit that caused this trigger to run, in this case, the unit that died) is Player 15.
    ------- 
    ------- Player 15 is hostile by default.
        Actions
            Variable - Set Killing Unit = (Returns the unit who last attacked the specified unit (Triggering unit))
            ------- Setting a variable so we can use it in the future for better organization
            Variable - Modify Player Kill Count[(Owner of (Killing unit))]: + 1
            ------- This is an array: Player Kill Count[4]
    ------- Arrays are basically tables of values.
    ------- You can treat Player Kill Count[1] as a completely different variable than Player Kill Count[2].
    ------- 
    ------- [(Owner of (Killing Unit))] returns an integer. If Player 1 owns the unit variable Killing Unit, then Owner of (Killing Unit) returns the integer 1
    ------- and thus in the end w get Player Kill Count[1]
    ------- 
    ------- This way, the trigger will work for multiple players.
    

    Trigger 2: 10 Kill Check

      10 Kill Check
        Events
            Unit - Any Unit dies
        Local Variables
        Conditions
        Actions
            ------- Pick each player also returns an integer, so it works similiarly to the above
            Player Group - Pick each player in (Active Players) and do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            Player Kill Count[(Picked player)] >= 10
                        Then
                            Unit - Create 1 Drone for player (Picked player) at Point 001 using default facing (No Options)
                            Variable - Set Player Kill Count[(Picked player)] = 0
                        Else
    eate 1 Drone for player (Picked player) at Point 001 using default facing (No Options)
                        Else
    

    Global Variable 1: Player Kill Count = 0 <Integer[4]>

    Posted in: Triggers
  • 0

    posted a message on Fake death

    @Selfcreation: Go

    http://wiki.sc2mapster.com/galaxy/triggers/select-unit/

    Action:
    Selection - Deselect unit for player Player
    Unit - Make Unit Unselectable
    Unit - Make Unit Untargetable

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