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.
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.
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 >.<
PickPlayer5(Debuff)EventsDialog-AnyDialogItemisusedbyPlayer1witheventtypeCheckedLocalVariablesConditions(DialogCheckPlayer5ischeckedfor(Triggeringplayer))==truePlayer5timerinteger>=30ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfPlayer5timerinteger==30(DialogCheckPlayer5ischeckedfor(Triggeringplayer))==trueThenGeneral-Waitfor(Conditions),checkingevery1.0GameTimesecondsConditionsPlayer5timerinteger==30Timer-Start(Newtimer)asaRepeatingtimerthatwillexpirein37.5GameTimesecondsVariable-SetPlayer5timer=(Laststartedtimer)Variable-ModifyPlayer5timerinteger:+8Transmission-Sendtransmissionto(Allplayers)from((Lastcreatedunit)withNoFlash(DoNotoverrideportrait)playingTalk)playingNoSoundLinkwithname"Warning!"andmessage(Combine((Nameofplayer5)," has had their income time increase..."))using(CinematicportraitatCenterLeft)playingTalk(Add0.0seconds,Don't Wait until it finishes)ElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfPlayer5timerinteger==38(DialogCheckPlayer5ischeckedfor(Triggeringplayer))==trueThenGeneral-Waitfor(Conditions),checkingevery1.0GameTimesecondsConditionsPlayer5timerinteger==38Timer-Start(Newtimer)asaRepeatingtimerthatwillexpirein46.8GameTimesecondsVariable-SetPlayer5timer=(Laststartedtimer)Variable-ModifyPlayer5timerinteger:+8Transmission-Sendtransmissionto(Allplayers)from((Lastcreatedunit)withNoFlash(DoNotoverrideportrait)playingTalk)playingNoSoundLinkwithname"Warning!"andmessage(Combine((Nameofplayer5)," has had their income time increase..."))using(CinematicportraitatCenterLeft)playingTalk(Add0.0seconds,Don't Wait until it finishes)ElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfPlayer5timerinteger==46(DialogCheckPlayer5ischeckedfor(Triggeringplayer))==trueThenTimer-Start(Newtimer)asaRepeatingtimerthatwillexpirein58.5GameTimesecondsVariable-SetPlayer5timer=(Laststartedtimer)Variable-ModifyPlayer5timerinteger:+13Transmission-Sendtransmissionto(Allplayers)from((Lastcreatedunit)withNoFlash(DoNotoverrideportrait)playingTalk)playingNoSoundLinkwithname"Warning!"andmessage(Combine((Nameofplayer5)," has had their income time increase..."))using(CinematicportraitatCenterLeft)playingTalk(Add0.0seconds,Don't Wait until it finishes)ElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfPlayer5timerinteger==59(DialogCheckPlayer5ischeckedfor(Triggeringplayer))==trueThenTimer-Start(Newtimer)asaRepeatingtimerthatwillexpirein73.1GameTimesecondsVariable-SetPlayer5timer=(Laststartedtimer)Variable-SetPlayer5timerinteger=73Variable-ModifyPlayer5timerinteger:+14Transmission-Sendtransmissionto(Allplayers)from((Lastcreatedunit)withNoFlash(DoNotoverrideportrait)playingTalk)playingNoSoundLinkwithname"Warning!"andmessage(Combine((Nameofplayer5)," has had their income time increase..."))using(CinematicportraitatCenterLeft)playingTalk(Add0.0seconds,Don't Wait until it finishes)ElseDialog-DestroyallitemsforDialogIncomeChoiceBoxDialog-Destroyalldialogs
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?
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))
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.
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.
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.
0
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.
0
Whats the best way to go about making a unit prioritize units with energy over all other units?
0
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
0
@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.
0
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 >.<
0
0
@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 >.< )
0
@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.
0
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?
0
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))
0
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.
0
@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.
0
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.
0
@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.
0
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.