• 0

    posted a message on (Trigger) Terrain changing

    Is there a way to have multiple terrain styles through a trigger?

    Say for example you have the players vote and they pick protoss then they get a protoss theme? and have an option for a zerg or terran theme? I remember someone managed to do it in a wc3 map so I hope it's available to do in sc2 also.

    Posted in: Triggers
  • 0

    posted a message on (data) priorities units with energy

    Whats the best way to go about making a unit prioritize units with energy over all other units?

    Posted in: Data
  • 0

    posted a message on Event for unit decay?
    Untitled Trigger 001
        Events
            Unit - Any Unit dies
        Local Variables
        Conditions
            (Triggering death type is Normal) == true
        Actions
            Unit - Create 1 Zealot for player (Killing player) at (Damage source position) facing 270.0 degrees (No Options)
    

    There ya go. The condition (Which is what I was thinking of before can be changed to represent like 12 or 14 different conditions. )

    The condition is

    Comparison

    Value 1: Trigger death type check

    Death type: Normal

    Operator : ==

    Value 2: ( Boolean ) True

    Posted in: Triggers
  • 0

    posted a message on Event for unit decay?

    @FahqueL: Go

    I don't know much about the data editor and trigger editor either but I have not seen that exact phrasing on a trigger yet. What I did see that might work though it would take a lot of work on your end is the way the unit dies. I think it's a check death type and I know you can modify the units weapon to designate exactly how it kills the unit I'll look into it for a second to see it I can find and paste the trigger I saw.

    Posted in: Triggers
  • 0

    posted a message on (trigger) increase timer if/then

    A lot of some of the things like every if statement checking it the check was used and the first condition statement with the >= is me trying to fix it on my own lol >.<

    Posted in: Triggers
  • 0

    posted a message on (trigger) increase timer if/then
    Pick Player 5 (Debuff)
        Events
            Dialog - Any Dialog Item is used by Player 1 with event type Checked
        Local Variables
        Conditions
            (Dialog Check Player 5 is checked for (Triggering player)) == true
            Player 5 timer integer >= 30
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Player 5 timer integer == 30
                    (Dialog Check Player 5 is checked for (Triggering player)) == true
                Then
                    General - Wait for (Conditions), checking every 1.0 Game Time seconds
                        Conditions
                            Player 5 timer integer == 30
                    Timer - Start (New timer) as a Repeating timer that will expire in 37.5 Game Time seconds
                    Variable - Set Player 5 timer = (Last started timer)
                    Variable - Modify Player 5 timer integer: + 8
                    Transmission - Send transmission to (All players) from ((Last created unit) with No Flash (Do Not override portrait) playing Talk) playing No Sound Link with name "Warning!" and message (Combine ((Name of player 5), " has had their income time increase...")) using (Cinematic portrait at Center Left) playing Talk (Add 0.0 seconds, Don't Wait until it finishes)
                Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Player 5 timer integer == 38
                    (Dialog Check Player 5 is checked for (Triggering player)) == true
                Then
                    General - Wait for (Conditions), checking every 1.0 Game Time seconds
                        Conditions
                            Player 5 timer integer == 38
                    Timer - Start (New timer) as a Repeating timer that will expire in 46.8 Game Time seconds
                    Variable - Set Player 5 timer = (Last started timer)
                    Variable - Modify Player 5 timer integer: + 8
                    Transmission - Send transmission to (All players) from ((Last created unit) with No Flash (Do Not override portrait) playing Talk) playing No Sound Link with name "Warning!" and message (Combine ((Name of player 5), " has had their income time increase...")) using (Cinematic portrait at Center Left) playing Talk (Add 0.0 seconds, Don't Wait until it finishes)
                Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Player 5 timer integer == 46
                    (Dialog Check Player 5 is checked for (Triggering player)) == true
                Then
                    Timer - Start (New timer) as a Repeating timer that will expire in 58.5 Game Time seconds
                    Variable - Set Player 5 timer = (Last started timer)
                    Variable - Modify Player 5 timer integer: + 13
                    Transmission - Send transmission to (All players) from ((Last created unit) with No Flash (Do Not override portrait) playing Talk) playing No Sound Link with name "Warning!" and message (Combine ((Name of player 5), " has had their income time increase...")) using (Cinematic portrait at Center Left) playing Talk (Add 0.0 seconds, Don't Wait until it finishes)
                Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Player 5 timer integer == 59
                    (Dialog Check Player 5 is checked for (Triggering player)) == true
                Then
                    Timer - Start (New timer) as a Repeating timer that will expire in 73.1 Game Time seconds
                    Variable - Set Player 5 timer = (Last started timer)
                    Variable - Set Player 5 timer integer = 73
                    Variable - Modify Player 5 timer integer: + 14
                    Transmission - Send transmission to (All players) from ((Last created unit) with No Flash (Do Not override portrait) playing Talk) playing No Sound Link with name "Warning!" and message (Combine ((Name of player 5), " has had their income time increase...")) using (Cinematic portrait at Center Left) playing Talk (Add 0.0 seconds, Don't Wait until it finishes)
                Else
            Dialog - Destroy all items for Dialog Income Choice Box
            Dialog - Destroy all dialogs
    
    Posted in: Triggers
  • 0

    posted a message on (trigger) increase timer if/then

    @Berrala: Go

    Oh ok. I guess I can do that. How do I put it in as code tags? (I never used forums before really >.< )

    Posted in: Triggers
  • 0

    posted a message on (trigger) increase timer if/then

    @b0ne123: Go

    hhmmm ok i'll look into it. thanks I'll post again if it works.

    Still doesn't work I changed it to modify the time integer and added a condition that says if the integer is >= 30. Still spams the messages.

    Posted in: Triggers
  • 0

    posted a message on (trigger) increase timer if/then

    I have a trigger that should increase a targeted players income timer when I pick them with a trigger. The issue is that I have a warning message depending on their current timer length but when i try to increase it once all of the message triggers fire which make me think that the trigger is not working properly. I'll post the trigger here.

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    Player 5 timer integer == 30

    Then

    Timer - Start (New timer) as a Repeating timer that will expire in 37.5 Game Time seconds

    Variable - Set Player 5 timer = (Last started timer)

    Variable - Set Player 5 timer integer = 38

    Transmission - Send transmission to (All players) from ((Last created unit) with No Flash (Do Not override portrait) playing Talk) playing No Sound Link with name "Warning!" and message (Combine ((Name of player 5), " has had their income time increase...")) using (Cinematic portrait at Center Left) playing Talk (Add 0.0 seconds, Don't Wait until it finishes)

    Then I just copy pasted and changed the if to the new player 5 timer integer and increased the timer by the amount and changed the text to reflect the new timer. So where did I screw this up? Do I need to create a new trigger for each new time?

    Posted in: Triggers
  • 0

    posted a message on (Trigger) quick question is my math right?

    All I want the math to do is have it say player 1 has their income increased by half of player 5's income. Honestly I suck at math so I figured I'd ask someone.

    Variable - Set Player 1 Income = (Player 1 Income + (Player 5 Income / 2))

    Posted in: Triggers
  • 0

    posted a message on Multishot photon cannon

    I'm trying to make my photon cannon shoot 5 targets at once I have the search maximum count to 5 and minimum to 1 but it still only shoots 1 target at a time.

    Posted in: Data
  • 0

    posted a message on Is this Ability Possible?

    @Mienk: Go

    I think I saw somewhere in behavior or effects redirect damage? If this exists then it would make sense that it would be possible. If you can do this let me know I as going to try to replicate the defend command from warcraft 3 which is similar to that ability.

    Posted in: Data
  • 0

    posted a message on Ability target multi units

    I can try but I've tried to copy things from the campaign before and my computer either crashes the editor when I'm opening it or i just can't copy them. Like I wanted the artifact explode ability and Zeratules void prison but I couldn't get either of those. Meh I'll just modify the spell so it casts more often doesn't really matter I guess.

    Posted in: Data
  • 0

    posted a message on Ability target multi units

    @Ruzial: Go

    Thats right thank you. Yeah sort of like the ability that they had in the campaign mode.

    Uhh yeah so ho do I create one that I can attach to my ability?

    I tried to make a custom one off of the core search effect but I can't attach it to any of my abilities.

    Posted in: Data
  • 0

    posted a message on Ability target multi units

    Does anyone know what parameter or effect i have to modify or add to make the madivac ability hit multiple units at once? I can't seem to find it.

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