Your "success" so far

Discussion in 'Starcraft 2 (SC2) Editor Help' started by Renendaru, Apr 22, 2010.

  1. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    So... For you mapmakers, if you wish, post here what you've done so far, and how you did, and if possible, the map.

    Myself, I've created a map with mouse look support, key press support for movement, and a manual attack using C.

    Non-key press/mouse look. Just third person camera with C to attack.



    Edit: Click movement, creates an explosion where you click.

    Edit2: Improved interface, UI is now gone.

    Edit3: Crashing issue is fixed.

     

    Attached Files:

    • Woo2.zip
      File size:
      38.5 KB
      Views:
      182
    • Like Like x 1
  2. Jesus4Lyf

    Jesus4Lyf Good Idea™

    Ratings:
    +394 / 0 / -0
    I see no map. :p
    Actually, I guess I'm more interested in the script at this point, since I'm at work. :)
     
  3. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    Added both versions I've made...
     
  4. BlowingKush

    BlowingKush I hit the blunt but the blunt hit me.

    Ratings:
    +183 / 0 / -0
    Mouse look. !!!!! you mean you can actually track the mouse coordinates (not just after a click)?????

    OMG ill have too see it to believe it....



    EDIT:

    OMFG this opens so many possiblities.... thank god....

    It would work alot better if you would keep the zoom at a certain level
    and make UP and Down mouse movments move the camera towards the sky or ground so it reacts like a first person shooter with WASD as the controls. And boom....!!! perfection
     
  5. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    My current attempt is to make the zealot walk in the direction your camera faces... Way more complex than it seems.
     
  6. BlowingKush

    BlowingKush I hit the blunt but the blunt hit me.

    Ratings:
    +183 / 0 / -0
    Quote:
    Camera - Lock Camera Mouse Relative Mode On/Off(1, On)

    There you go. However, selecting/ordering units is impossible while doing this.


    ya may have to hit a button to switch out of camera mode
     
  7. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    I decided to just order him to move to the clicked position. o.o
     
  8. BlowingKush

    BlowingKush I hit the blunt but the blunt hit me.

    Ratings:
    +183 / 0 / -0
    i figured out how to do it

    it will take me a bit to set it up.
    but heres the basic idea.....
    you can create a local variable

    use the function real to int to convert
    and you can then set the variable to any camera property (pitch,yaw,roll...etc) for any camera.

    Hell it even brings up a list of all the properties.... freaken awesome.
     
  9. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    Added a click movement mod... It's optimal to lock your mouse onto the zealot when you start.
     
  10. BlowingKush

    BlowingKush I hit the blunt but the blunt hit me.

    Ratings:
    +183 / 0 / -0
    I cant figure out how or wherer to make a global variable
     
  11. Sevion

    Sevion The DIY Ninja

    Ratings:
    +423 / 0 / -0
    My damn success so far has been being unable to patch.....
     
  12. PurgeandFire

    PurgeandFire zxcvmkgdfg

    Ratings:
    +513 / 0 / -0
    Are you able to post the code for people who don't have the editor yet? =)
     
  13. BlowingKush

    BlowingKush I hit the blunt but the blunt hit me.

    Ratings:
    +183 / 0 / -0
    i am patch looped too but can still use editor
     
  14. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    Well, I've been messing with the GUI mostly, to see how far it can go...
    Trigger:
    • Untitled Trigger 001
      • Events
        • Timer - Elapsed time is 1.0 Real Time seconds
      • Local Variables
      • Conditions
      • Actions
        • Camera - Apply Camera 001 for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Include Target
        • General - Wait 2.0 Real Time seconds
        • Camera - Lock Camera Mouse Relative Mode On/Off(1, On)


    There's what sets my mouse look up.

    Trigger:
    • Untitled Trigger 002
      • Events
        • UI - Player 1 presses C key Down with shift Exclude, control Exclude, alt Exclude
      • Local Variables
      • Conditions
      • Actions
        • Unit - Order Zuk'rah [109.25, 33.00] to ( Attack (Random Any unit from (Units in (Region((Position of Zuk'rah [109.25, 33.00]), 100.0)) having alliance Enemy with player (Owner of Zuk'rah [109.25, 33.00]) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)


    To attack a nearby unit using C, had to go through so much to find the value within the editor to turn auto-attack off.

    Trigger:
    • Untitled Trigger 003
      • Events
        • UI - Player 1 clicks Left mouse button Down.
      • Local Variables
      • Conditions
      • Actions
        • Unit - Order Zuk'rah [109.25, 33.00] to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
        • Environment - Create a Small Protoss explosion at (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))


    To move to the clicked position, effect is there so you can see where you clicked.
     
  15. BlowingKush

    BlowingKush I hit the blunt but the blunt hit me.

    Ratings:
    +183 / 0 / -0
    Just figured out Global variables.

    Create them just like your creating a new trigger
     
  16. Failenx

    Failenx New Member

    Ratings:
    +7 / 0 / -0
    what do you mean?
     
  17. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    Right click left side, New > Variable. Or simply, Ctrl + B.
     
  18. Prometheus

    Prometheus Everything is mutable; nothing is sacred Staff Member

    Ratings:
    +592 / 0 / -0
    Code:
    bool gt_UntitledTrigger001_Func (bool testConds, bool runActions) {
        // Variable Declarations
        point lv_untitledVariable001;
    
        // Variable Initialization
        lv_untitledVariable001 = RegionRandomPoint(RegionFromId(1));
    
        // Actions
        if (!runActions) {
            return true;
        }
    
        UnitCreate(1, "Mothership", 0, 1, lv_untitledVariable001, 270.0);
        return true;
    }
    Quite C-Like.

    I wonder if there are leaks.
     
  19. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    Yea, though creating a unit at a random point is pretty simple...

    Edit: There's apparently a garbage cleaner, though how well it runs is unknown.
     
  20. Sevion

    Sevion The DIY Ninja

    Ratings:
    +423 / 0 / -0
    One way to find out:

    Make a super big loop that creates a leak. Monitor you process memory.
     

Share This Page