• 0

    posted a message on How do I make it so that the Hatchery doesn't leave behind broodlings?

    They do not apply to the custom map I'm making =D

    Posted in: Data
  • 0

    posted a message on How do I undo / clear the Melee Options?

    @DerNalia: Go

    So... this is how I ended up doing it. I wish there was a more condense way... =(

            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Ground; Excluded: Uncommandable, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Air, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Structure; Excluded: Uncommandable, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Worker, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
    
    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I destroy all the buildings / bases on a map?

    @Chiquihuite: Go

    So... this is how I ended up doing it. I wish there was a more condense way... =(

            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Ground; Excluded: Uncommandable, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Air, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Structure; Excluded: Uncommandable, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Worker, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
    
    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I destroy all the buildings / bases on a map?

    @DerNalia: Go

    I found out that be setting filter, it destroys structures... but it also destroys minerals. Which would be fine if I could put them back =D

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Structure, with at most Any Amount) and do (Actions)

    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I undo / clear the Melee Options?

    @s3rius: Go

    I think it has to do with the filter... By default, everything is set to "allowed" ... but that doesnt' allow the destruction of everything using this method.

    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I destroy all the buildings / bases on a map?

    @Chiquihuite: Go

    how? (yeah, it needs to happen during game)

    I'm already killing all units on a map

            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Worker, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
    
    
    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I destroy all the buildings / bases on a map?

    I need to move a players base around, and Step 1 is destroying the initial base. How do I do that?

    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I undo / clear the Melee Options?

    @DerNalia: Go

    I found out how to kill units:

            Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Worker, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Kill (Picked unit)
    
    
    

    Now I just need to know how to kill bases / buildings. =\

    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I undo / clear the Melee Options?

    In my custom map, the player's base and units can be teleported around (kinda).

    When the match starts, I do the following:

            Melee - Create (Race of player (Triggering player)) melee starting units for player 1 at selectedStartPosition
            Melee - Set melee starting resources for all players
    

    I need a way to undo these two commands, so that I can invoke them again, without worry of having two bases at the same start location.

    Ideas?

    Is there a way to kill off everything?

    I've seen that before in custom... where all your stuff explodes.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Trying to access an element past the end of an array.

    @maverck: Go

    you were right.

    My problem is I"m trying to store DialogItems as the index of an array:

        lv_currentButton = libNtve_gf_CreateDialogItemButton(
            gv_startPositionSelector, 
            gv_BUTTON_WIDTH, gv_BUTTON_HEIGHT, 
            c_anchorCenter, 
            gf_getClockXPosition(lv_startLocation-gv_CLOCK_PI_OFFSET),
            gf_getClockYPosition(lv_startLocation-gv_CLOCK_PI_OFFSET),
            StringToText(""), 
            IntToText(lv_startLocation + 1), "");
        gv_positionSelectButtons[lv_currentButton] = lv_startLocation;
    

    Guess I'll have to make the array really big

    Posted in: Galaxy Scripting
  • 0

    posted a message on Trying to access an element past the end of an array.

    @grenegg: Go

    Aye, thanks for that lil bit of info.

    Unfortunately, Galaxy Editor gives me no idea where / what is causing this error. Is there someway to turn on like... Super Debug God mode?

    Posted in: Galaxy Scripting
  • 0

    posted a message on Trying to access an element past the end of an array.

    00:00:00.00 Trigger Error in 'gt_MeleeInitialization_Func': Trying to access an element past the end of an array. 00:00:00.00 Running gt_MeleeInitialization_Func (Event: Map Initialization)

    So... I'm not sure what is going on here: I have an array of size 12. and I assign values at indexes 0-11 (I also tried 1-12, in case Galaxy is 1-indexed)... but I get this error regardless.

    Here is the only code in MeleeInitialization

    // set up start locations
    gv_startPositions[0] = gv_oClock1;
    gv_startPositions[1] = gv_oClock2;
    gv_startPositions[2] = gv_oClock3;
    gv_startPositions[3] = gv_oClock4;
    gv_startPositions[4] = gv_oClock5;
    gv_startPositions[5] = gv_oClock6;
    gv_startPositions[6] = gv_oClock7;
    gv_startPositions[7] = gv_oClock8;
    gv_startPositions[8] = gv_oClock9;
    gv_startPositions[9] = gv_oClock10;
    gv_startPositions[10] = gv_oClock11;
    gv_startPositions[11] = gv_oClock12;
    
    gf_initSelectGUI();
    

    gv_startPositions is a point array of size 12

    • Note, I would have assigned these all with a for loop... but I didn't know how to iterate over all the start locations on the map.

    Do I need to init the array somehow?

    Posted in: Galaxy Scripting
  • 0

    posted a message on I have 12 starting locations. How do I pick a specific location?

    @Blixster: Go

    Thank you, kind sir. You have pointed me to where I need to be!

    Posted in: Triggers
  • 0

    posted a message on I have 12 starting locations. How do I pick a specific location?

    @Blixster: Go

    how do I link the [Position]?

    Posted in: Triggers
  • 0

    posted a message on I have 12 starting locations. How do I pick a specific location?

    @Exaken: Go

    Well, the race is currently up to the player (from the create menu screen). But, I would like them to be able to choose where they start. Do you know how I would do that?

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