• 0

    posted a message on [Terrain]Creating a convoy robbery map?

    You can press H while in the editor and draw a footprint map basically, you draw areas which are unpathable for ground or unbuildable. Or make unpathable areas pathable with it.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] 8 Directional Control Keys

    Well it took some copy pasting from my trigger editor but here is the exact movement I use in my own map, perhaps there can be improvements but I am not super with triggering.

    Oh and make sure all the 8 triggers at the bottom (with the periodic event) are not set as initially on (right click the trigger and then click on the thing so it's not marked)

    Here are the variables and triggers used.

    Variables:

    W Down = false <Boolean>
    A Down = false <Boolean>
    S Down = false <Boolean>
    D Down = false <Boolean>
    Player 1 Hero (Map/Dungeon) = Ghost [58.44, 171.71] <Unit>
    

    Triggers:

    The trigger that turns on the correct unit mover.

    Move (W Pressed)
        Events
            UI - Player 1 presses W key Down with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set W Down = true
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    A Down == false
                    D Down == false
                    S Down == false
                Then
                    Trigger - Turn MoveNorth (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            A Down == true
                            D Down == false
                            S Down == false
                        Then
                            Trigger - Turn Move West (Move) Off
                            Trigger - Turn MoveNorthWest (Move) On
                        Else
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    A Down == false
                                    D Down == true
                                    S Down == false
                                Then
                                    Trigger - Turn MoveEast (Move) Off
                                    Trigger - Turn MoveNorthEast (Move) On
                                Else
    
    Move (A Pressed)
        Events
            UI - Player 1 presses A key Down with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set A Down = true
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    W Down == false
                    S Down == false
                    D Down == false
                Then
                    Trigger - Turn Move West (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            W Down == true
                            S Down == false
                            D Down == false
                        Then
                            Trigger - Turn MoveNorth (Move) Off
                            Trigger - Turn MoveNorthWest (Move) On
                        Else
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    W Down == false
                                    S Down == true
                                    D Down == false
                                Then
                                    Trigger - Turn MoveSouth (Move) Off
                                    Trigger - Turn MoveSouthWest (Move) On
                                Else
    
    Move (S Pressed)
        Events
            UI - Player 1 presses S key Down with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set S Down = true
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    A Down == false
                    D Down == false
                    W Down == false
                Then
                    Trigger - Turn MoveSouth (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            A Down == true
                            D Down == false
                            W Down == false
                        Then
                            Trigger - Turn Move West (Move) Off
                            Trigger - Turn MoveSouthWest (Move) On
                        Else
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    A Down == false
                                    D Down == true
                                    W Down == false
                                Then
                                    Trigger - Turn MoveEast (Move) Off
                                    Trigger - Turn MoveSouthEast (Move) On
                                Else
    
    Move (D Pressed)
        Events
            UI - Player 1 presses D key Down with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set D Down = true
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    W Down == false
                    S Down == false
                    A Down == false
                Then
                    Trigger - Turn MoveEast (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            W Down == true
                            S Down == false
                            A Down == false
                        Then
                            Trigger - Turn MoveNorth (Move) Off
                            Trigger - Turn MoveNorthEast (Move) On
                        Else
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    W Down == false
                                    S Down == true
                                    A Down == false
                                Then
                                    Trigger - Turn MoveSouth (Move) Off
                                    Trigger - Turn MoveSouthEast (Move) On
                                Else
    

    The triggers that turns off the correct movers and turns on a horizontal or vertical movement trigger if you were moving in a diagonal direction.

    Move (W Released)
        Events
            UI - Player 1 presses W key Up with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set W Down = false
            Trigger - Turn MoveNorth (Move) Off
            Trigger - Turn MoveNorthEast (Move) Off
            Trigger - Turn MoveNorthWest (Move) Off
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    A Down == true
                    D Down == false
                    S Down == false
                Then
                    Trigger - Turn Move West (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            A Down == false
                            D Down == true
                            S Down == false
                        Then
                            Trigger - Turn MoveEast (Move) On
                        Else
    
    Move (A Released)
        Events
            UI - Player 1 presses A key Up with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set A Down = false
            Trigger - Turn Move West (Move) Off
            Trigger - Turn MoveNorthWest (Move) Off
            Trigger - Turn MoveSouthWest (Move) Off
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    W Down == true
                    D Down == false
                    S Down == false
                Then
                    Trigger - Turn MoveNorth (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            A Down == false
                            D Down == false
                            S Down == true
                        Then
                            Trigger - Turn MoveSouth (Move) On
                        Else
    
    Move (S Released)
        Events
            UI - Player 1 presses S key Up with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set S Down = false
            Trigger - Turn MoveSouth (Move) Off
            Trigger - Turn MoveSouthWest (Move) Off
            Trigger - Turn MoveSouthEast (Move) Off
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    A Down == true
                    D Down == false
                    W Down == false
                Then
                    Trigger - Turn Move West (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            A Down == false
                            D Down == true
                            W Down == false
                        Then
                            Trigger - Turn MoveEast (Move) On
                        Else
    
    Move (D Released)
        Events
            UI - Player 1 presses D key Up with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
        Actions
            Variable - Set D Down = false
            Trigger - Turn MoveEast (Move) Off
            Trigger - Turn MoveNorthEast (Move) Off
            Trigger - Turn MoveSouthEast (Move) Off
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    A Down == false
                    W Down == true
                    S Down == false
                Then
                    Trigger - Turn MoveNorth (Move) On
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            A Down == false
                            W Down == false
                            S Down == true
                        Then
                            Trigger - Turn MoveSouth (Move) On
                        Else
    

    The movement triggers.

    MoveNorthWest (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (-0.5, 0.5))) (Replace Existing Orders)
    
    MoveNorthEast (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (0.5, 0.5))) (Replace Existing Orders)
    
    MoveSouthWest (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (-0.5, -0.5))) (Replace Existing Orders)
    
    MoveSouthEast (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (0.5, -0.5))) (Replace Existing Orders)
    
    MoveNorth (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (0.0, 0.5))) (Replace Existing Orders)
    
    Move West (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (-0.5, 0.0))) (Replace Existing Orders)
    
    MoveSouth (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (0.0, -0.5))) (Replace Existing Orders)
    
    MoveEast (Move)
        Events
            Timer - Every 0.015 seconds of Game Time
        Local Variables
        Conditions
        Actions
            Unit - Order Player 1 Hero (Map/Dungeon) to ( Scan Move targeting ((Position of Player 1 Hero (Map/Dungeon)) offset by (0.5, 0.0))) (Replace Existing Orders)
    

    And that should work.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] 8 Directional Control Keys

    Edit: See my post below for the full solution (every variable, every trigger).

    Posted in: Miscellaneous Development
  • 0

    posted a message on Saving values between games?

    Data can be stored in so called 'Banks' which can be loaded or added with triggers, you should be able to find a tutorial here on how to use them if you use the search function. I'll see if I can find one.

    Here is a video tutorial.

    http://forums.sc2mapster.com/development/tutorials/2837-video-tutorial-banks/

    Posted in: Miscellaneous Development
  • 0

    posted a message on How to Change Victory Conditions of the Game
    Quote from Jackolas: Go

    remove the melee victory triggers?

    Like said above, if you don't know where to find it.. At the top of your editor you see 2 hills and to the right you see 2 gears (F6), click those to open up the trigger editor, then go to map initialization and delete the 'set melee victory/defeat condition' (or it says something along those lines at least) that way you won't win/lose if you don't use a standard multiplayer map setup. You can then later on learn to use triggers so you can make your own conditions (like a certain unit dies, or you get a certain amount of minerals/score).

    Posted in: Miscellaneous Development
  • 0

    posted a message on Debates by RodrigoAlves

    This might just be an idea, but if the map is so much fun (I haven't played it myself yet, EU player) maybe some players could toss in a euro each and get you an EU account so you can upload and update the map at the same time.

    Posted in: Map Review
  • 0

    posted a message on Minigunner Redux.

    I ended up at the fire aswell, and aparently 1 guy could go without dying while the rest got killed no matter where you were but the one that wouldnt die could in no way reach the other side.

    Posted in: Map Review
  • 0

    posted a message on [Galaxy Noobs] Wow to SC2 in 30 seconds! NO 3dmax!
    Quote from Chriggix: Go

    there is also the problem that with the imported models i reach the maximum map size very fast

    or is there a workaround for this?

    The only way you're going to stay within a small map size is by not using many models. It's a small price to pay, perhaps you can compile the files and the editor does that already.

    Posted in: Tutorials
  • 0

    posted a message on Protoss Weapon Upgrade 1...

    Each upgrade is the 'total' amount. It does not work like with warcraft 3 (no experience with sc1) you have to go to the upgrade damage increase and change it to the level. Let's say you have weapon upgrade lvl 1, set the damage increase to 1. Level 2, set it to 2. It does not add 1+2 it says 1, replaced by 2.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Map Stealing

    @wowacesucksmassivekok: Go

    I do want to point out, as stated in the agreement of SC2 that any map you create is still owned by Blizzard. But the work spent by yourself.. I can understand you'd get pissed. I personally never took anyone's map nor edited them on warcraft 3. I only made maps to play with friends anyway so they never got out.

    Posted in: General Chat
  • 0

    posted a message on Map Stealing

    Well, if you edit a map and just play it private with friends and the person never gets to know, and the map does not spread. I don't see the harm, however there are also people that edit a map without permission and play with friends that does end up in the open and then people will start claiming work which isn't theirs because the original might have not been popular. For personal use I wouldn't mind if someone used it as long as they don't change a bunch of things and say hey I made this map. If you intend on bringing your map out in the open you really should get permission from the creator if you ask me, if you don't just start on one yourself or request someone to make a similar map. I can understand you might not want a map ego going around but still, the only thing you get for making maps is the credit and your own pleasure. Having others take it is not fun.

    Also adjusting a map in such massive manner that it is not really close to the original would be something I'd accept. Using another map as a setup so to speak, to get your own ideas started.

    Posted in: General Chat
  • 0

    posted a message on [Trigger] Show/Hide Screen Button for Specific Player

    You should mess around with adding custom images on buttons. You can make your own looking dialogs like that using textures in the files or textures you import. In my own map I am working on creating a menu while hiding the actual dialog so you don't see that race stuff, but displaying images and buttons with images instead.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Show/Hide Screen Button for Specific Player

    When I first messed with the editor I changed to dialogs for the reason that at the time it wasn't possible. Perhaps with a custom script but I'm not a coder myself. I would recommend to use dialogs instead because as far as I know it isn't possible.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Making a dialog label = CurrentHP/MaxHP

    Here is a link to an asset which shows how to do it, but also how to do color changing of the bar when it drops below a certain amount, as far as I understood from the description. I know there was a good tutorial here before which I used myself but I can't seem to find it anymore.

    http://www.sc2mapster.com/assets/custom-ui-color-gradient-functio/

    Posted in: Miscellaneous Development
  • 0

    posted a message on Overrun!! Multiplayer testing

    This map was quite fun to play, the first few times I was a bit annoyed with the shift from t1 to t2 but it seems there is more time now or I simply got used to it. Made it to the end:) was fun. I hadn't checked yet but are turret upgrades also 75% refundable when you salvage a structure or is it lost?

    Added attachment in case you want to see how I did it.

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