• 0

    posted a message on Unit Property Depletion That Runs A Trigger

    The map below has an example trigger that handles both of those cases using the trigger "Unit - Any Unit Shields changes."

            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    ((Triggering unit) Shields (Percent) (Current)) == 0.0
                Then
                    UI - Display "Shields are depleted." for (All players) to Subtitle area
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering unit property change) >= 0
                        Then
                            UI - Display "Shields are regenerating." for (All players) to Subtitle area
    

    I hope this helps!

    Posted in: Triggers
  • 0

    posted a message on Need a trigger when a unit enters the radius of another unit

    I played around on a test map and it looks like the event you might have to use is "Unit - Any Unit Enters Region." As Verdagon stated, I wasn't able to get events to trigger for variable units/regions, only for ones premade on the map. There's a few options that I think you can do:

    1. Create a premade region on your map. When you spawn a unit attach that region to the unit. When you use the "Unit - Any Unit Enters Region" for that region you can do your comparison to see which unit is stronger.

    2. You said that this is like a board game, so you may already have the regions premade on your map. So just use the "Unit - Any Unit Enters Region" trigger and then count how many units are in the region to see if there are two that you need to compare.

    3. In the data editor you can create a constant AoE damage effect on around each of your units that does zero damage. There is a trigger units taking damage and you can specify the type of damage to be your AoE, so that will trigger when they are close to eachother.

    I attached a copy of an example of solution #1. You can also tweak it for #2, just don't attach the regions to your units. Hope this helps some.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Zone Control Ultra

    Versions 1.14 - 1.16

    Fixed AI bug where the AI would sometimes stop attacking when winning.

    Fixed bug where armor upgrades were not counting towards Achievement Marines.

    Changed the amount of marines that spawn per bunker so that they scale with how many bunkers are on the map. They will increment from a max of 50 per bunker and change to a max of 25 per bunker once there are more than 55 bunkers on the map. This dramatically reduces unit count in game and thus dramatically reduces lag in late game. Tweaks will be made if balance is thrown off too much because of this.

    Posted in: Project Workplace
  • 0

    posted a message on Zone Control Ultra

    If anyone gets a chance to, please try this map out (if you haven't already), I'd very much appreciate your input! I haven't gotten much feedback recently and I want to make sure that I'm on the right track. Thanks! :)

    Posted in: Map Feedback
  • 0

    posted a message on Map and Minimap Scrambler

    @Claymuffin: Go

    Like I posted above:

            Variable - Set Scrambled Region = (Region((Position of Scrambler), 12.5))
    

    Unless I'm missing something in your problem, this will create a region and set it to your "Scrambled Region" variable.

    Posted in: Triggers
  • 0

    posted a message on Marine Poker

    @BallsButNoSack: Go

    Page not found! :(

    Posted in: General Chat
  • 0

    posted a message on Map and Minimap Scrambler

    I'm not sure about your revealer overriding the other revealer problem, but as for referring to a newly created region. I couldn't find a "Last Created Region" so I think your best option is to just combine them in one line something like this:

            Variable - Set Scrambled Region = (Region((Position of Scrambler), 12.5))
    

    I'll post back here if I think of anything for the revealers.

    Edit:

    I tried to use regions with negative space inside, but the revealer still does the entire region (ignoring the negative space). So I've run out of trigger ideas on this one.

    Posted in: Triggers
  • 0

    posted a message on Zone Control Ultra

    I just added a new trailer for this map, check it out!

    Embed Removed: https://www.youtube.com/v/0e80ZTjltaM?fs=1
    Posted in: Map Feedback
  • 0

    posted a message on Zone Control Ultra

    Just added a new trailer for this map!

    Embed Removed: https://www.youtube.com/v/0e80ZTjltaM?fs=1
    Posted in: Project Workplace
  • 0

    posted a message on Zone Control Ultra

    Fixed some bugs and added some new features that should add more variety to the game! Check them out:

    Version 1.12

    Added back in the ability to salvage bunkers. Salvaging will return 100 minerals to the player.

    Added a dialog box at the top of the screen so that players can more easily track how many minerals they need for their next Bunker Dispenser.

    Fixed a trigger error with the AI that happened when they finished a player off.

    New Feature!

    Players can now change the map size! Game Options will appear at the beginning of the game allowing players to vote for map size and choose AI difficulty, if applicable. Players can choose between:

    • Classic (60 Zones)
    • Arena (32 Zones)
    • Close Quarters (12 Zones) 1 - 4 Players Only
    Posted in: Project Workplace
  • 0

    posted a message on how to disable an ability by lowering supply depot ?

    Here ya go, I added in that catalog action I mentioned earlier. Since the Phoenix was the only unit you had on your map example, I had it speed up and slow down them when you raise/lower the supply depots. This should give you a better understanding of how it works though. But please feel free to ask more questions if you need.

    Posted in: Triggers
  • 0

    posted a message on how to disable an ability by lowering supply depot ?

    @strhsxx: Go

    So that action requires you to enter in the names as a string. So

    Entry = "Overlord" Field Path = "Speed" Value = "1.75" (Or whatever number you'd like, but it must be a string as well, so you can use the Real to String function if you have this speed saved as a variable or something)

    And yea, I agree with you, the Galaxy Editor can be a strange and confusing place, but hang in there! :)

    Posted in: Triggers
  • 0

    posted a message on how to disable an ability by lowering supply depot ?

    @strhsxx: Go

    My mistake, I guess I should have called it an Action and not a trigger.

    Its listed as "Catalog Field Value Set" in the Actions list.

    Edit:

    I was also looking, and there's another action called "Set Unit Property" where you could use:

    Unit - Set (Triggering unit) Movement Speed to 100.0
    

    But I think you'd have to do this for every individual unit. My original idea does it for that unit type. So I'm not sure which one will work better for your situation.

    Posted in: Triggers
  • 0

    posted a message on spawning conflicts

    @littlefury916: Go

    Can you copy and paste your wave triggers? I'm thinking that there might be something off with your conditions, but its hard to tell for sure for me anyway.

    Posted in: Triggers
  • 0

    posted a message on how to disable an ability by lowering supply depot ?

    This is a trigger that I've used before to increase/decrease unit speed.

    Catalog - Set value of Units "Overlord" "Speed" for player 9 to (String(((Overlord Movement Speed) + Speed[0])) with 2 decimal places)
    

    My Speed array was usually adding or subtracting .5 to the Overlord's base speed. So if you wanted you could replace "String(((Overlord Movement Speed) + Speed[0])) with 2 decimal places" with "1.5" or whatever speed you want I believe. Sorry its been a while since I've dived into this trigger :)

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