So, I would like to know how could I have some lightning strikes appearing randomly around my map and if the strike hit a player unit/structure it would deal damage. Any help how to do this would be most thankful!
Perhaps once i am ready for a good alpha test again, i'll invite you to try it out on battle.net with me and 4 other friends. You can see your handy work you've done for me.
Commandbar
Events
Player - Player 1 Minerals changes
Player - Player 2 Minerals changes
Player - Player 3 Minerals changes
Player - Player 4 Minerals changes
Player - Player 5 Minerals changes
Player - Player 6 Minerals changes
Player - Player 7 Minerals changes
Player - Player 8 Minerals changes
Player - Player 9 Minerals changes
Player - Player 10 Minerals changes
Player - Player 11 Minerals changes
Player - Player 12 Minerals changes
Player - Player 13 Minerals changes
Player - Player 14 Minerals changes
Player - Player 15 Minerals changes
Local Variables
Conditions
Or
Conditions
And
Conditions
(Player (Triggering player) Minerals) == 0
Command Disabled[(Triggering player)] == False
And
Conditions
(Player (Triggering player) Minerals) > 0
Command Disabled[(Triggering player)] == True
Actions
General - Switch (Actions) depending on Command Disabled[(Triggering player)]
Cases
General - If (False)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) == 0
Then
Variable - Set Command Disabled[(Triggering player)] = True
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 0 to 0.0
Unit - Set (Picked unit) custom value 0 to 1.0
Unit - Make (Picked unit) Uncommandable
Else
General - If (True)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) > 0
Then
Variable - Set Command Disabled[(Triggering player)] = False
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Make (Picked unit) Commandable
Else
Default
Rebel
Events
Timer - Every 5.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) with custom value 0 equal to 1.0) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to ((Custom value 1 of (Picked unit)) + 1.0)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Custom value 1 of (Picked unit)) >= 12.0
Then
Unit - Set (Picked unit) custom value 0 to 2.0
Unit - Change ownership of (Picked unit) to player 15 and Change Color
Else
next step, =)?
ps, you are awsome, I have to say I am learning quite the bit from all this. Hopfully I won't have then need to ask for help lol
Rebel
Events
Timer - Every 5.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) with custom value 0 equal to 1.0) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to (Custom value 1 of (Picked unit))
General - If (Conditions) then do (Actions) else do (Actions)
If
(Custom value 1 of (Picked unit)) >= 12.0
Then
Unit - Set (Picked unit) custom value 0 to 2.0
Unit - Change ownership of (Picked unit) to player 15 and Change Color
Else
Still have not learned how you managed to do the + 1.0 under the Actions Set Picked unit
Rebel
Events
Timer - Every 5.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to (Custom value 1 of (Picked unit))
General - If (Conditions) then do (Actions) else do (Actions)
If
(Custom value 1 of (Picked unit)) >= 12.0
Then
Unit - Set (Picked unit) custom value 0 to 2.0
Unit - Change ownership of (Picked unit) to player 15 and Change Color
Else
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
I do not know how you added the
with custom value 0 equal to 1.0) - At the end of 'Any Amount'
Sorry, for what you are trying to tell me is like ..... WAYYY over my head. May I ask that you better explain everything. step by step please lol
If you could, just take this Code and reenter what I need for it please lol
Commandbar
Events
Player - Player 1 Minerals changes
Player - Player 2 Minerals changes
Player - Player 3 Minerals changes
Player - Player 4 Minerals changes
Player - Player 5 Minerals changes
Player - Player 6 Minerals changes
Player - Player 7 Minerals changes
Player - Player 8 Minerals changes
Player - Player 9 Minerals changes
Player - Player 10 Minerals changes
Player - Player 11 Minerals changes
Player - Player 12 Minerals changes
Player - Player 13 Minerals changes
Player - Player 14 Minerals changes
Player - Player 15 Minerals changes
Local Variables
Conditions
Or
Conditions
And
Conditions
(Player (Triggering player) Minerals) == 0
Command Disabled[(Triggering player)] == False
And
Conditions
(Player (Triggering player) Minerals) > 0
Command Disabled[(Triggering player)] == True
Actions
General - Switch (Actions) depending on Command Disabled[(Triggering player)]
Cases
General - If (False)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) == 0
Then
Variable - Set Command Disabled[(Triggering player)] = True
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to (Custom value 1 of (Picked unit))
Unit - Make (Picked unit) Uncommandable
Else
General - If (True)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) > 0
Then
Variable - Set Command Disabled[(Triggering player)] = False
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Make (Picked unit) Commandable
Else
Default
Commandbar
Events
Player - Player 1 Minerals changes
Player - Player 2 Minerals changes
Player - Player 3 Minerals changes
Player - Player 4 Minerals changes
Player - Player 5 Minerals changes
Player - Player 6 Minerals changes
Player - Player 7 Minerals changes
Player - Player 8 Minerals changes
Player - Player 9 Minerals changes
Player - Player 10 Minerals changes
Player - Player 11 Minerals changes
Player - Player 12 Minerals changes
Player - Player 13 Minerals changes
Player - Player 14 Minerals changes
Player - Player 15 Minerals changes
Local Variables
Conditions
Or
Conditions
And
Conditions
(Player (Triggering player) Minerals) == 0
Command Disabled[(Triggering player)] == False
And
Conditions
(Player (Triggering player) Minerals) > 0
Command Disabled[(Triggering player)] == True
Actions
General - Switch (Actions) depending on Command Disabled[(Triggering player)]
Cases
General - If (False)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) == 0
Then
Variable - Set Command Disabled[(Triggering player)] = True
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Pause (Picked unit)
Unit - Make (Picked unit) Uncommandable
Else
General - If (True)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) > 0
Then
Variable - Set Command Disabled[(Triggering player)] = False
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Unpause (Picked unit)
Unit - Make (Picked unit) Commandable
Else
Default
I am guessing you are refering this is how it should look like?
0
Awsome thank you, I will let you know how it turns out =)
0
So, I would like to know how could I have some lightning strikes appearing randomly around my map and if the strike hit a player unit/structure it would deal damage. Any help how to do this would be most thankful!
0
I like to request if I could look at the trigger's you had done for the tracking of gold, food etc or perhaps tell me little bit how you done it
0
w00t, +1 Rep it works perfectly so far.
Perhaps once i am ready for a good alpha test again, i'll invite you to try it out on battle.net with me and 4 other friends. You can see your handy work you've done for me.
0
Okay, lets see what happens lol
0
I think I got this right, check it,
Commandbar
Events
Player - Player 1 Minerals changes
Player - Player 2 Minerals changes
Player - Player 3 Minerals changes
Player - Player 4 Minerals changes
Player - Player 5 Minerals changes
Player - Player 6 Minerals changes
Player - Player 7 Minerals changes
Player - Player 8 Minerals changes
Player - Player 9 Minerals changes
Player - Player 10 Minerals changes
Player - Player 11 Minerals changes
Player - Player 12 Minerals changes
Player - Player 13 Minerals changes
Player - Player 14 Minerals changes
Player - Player 15 Minerals changes
Local Variables
Conditions
Or
Conditions
And
Conditions
(Player (Triggering player) Minerals) == 0
Command Disabled[(Triggering player)] == False
And
Conditions
(Player (Triggering player) Minerals) > 0
Command Disabled[(Triggering player)] == True
Actions
General - Switch (Actions) depending on Command Disabled[(Triggering player)]
Cases
General - If (False)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) == 0
Then
Variable - Set Command Disabled[(Triggering player)] = True
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 0 to 0.0
Unit - Set (Picked unit) custom value 0 to 1.0
Unit - Make (Picked unit) Uncommandable
Else
General - If (True)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) > 0
Then
Variable - Set Command Disabled[(Triggering player)] = False
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Make (Picked unit) Commandable
Else
Default
0
wow I never figure that out lol I now have,
Rebel
Events
Timer - Every 5.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) with custom value 0 equal to 1.0) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to ((Custom value 1 of (Picked unit)) + 1.0)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Custom value 1 of (Picked unit)) >= 12.0
Then
Unit - Set (Picked unit) custom value 0 to 2.0
Unit - Change ownership of (Picked unit) to player 15 and Change Color
Else
next step, =)?
ps, you are awsome, I have to say I am learning quite the bit from all this. Hopfully I won't have then need to ask for help lol
0
I now have this,
Rebel
Events
Timer - Every 5.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) with custom value 0 equal to 1.0) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to (Custom value 1 of (Picked unit))
General - If (Conditions) then do (Actions) else do (Actions)
If
(Custom value 1 of (Picked unit)) >= 12.0
Then
Unit - Set (Picked unit) custom value 0 to 2.0
Unit - Change ownership of (Picked unit) to player 15 and Change Color
Else
Still have not learned how you managed to do the + 1.0 under the Actions Set Picked unit
0
This is what I have done,
Rebel
Events
Timer - Every 5.0 seconds of Game Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to (Custom value 1 of (Picked unit))
General - If (Conditions) then do (Actions) else do (Actions)
If
(Custom value 1 of (Picked unit)) >= 12.0
Then
Unit - Set (Picked unit) custom value 0 to 2.0
Unit - Change ownership of (Picked unit) to player 15 and Change Color
Else
0
I have this,
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
I do not know how you added the
with custom value 0 equal to 1.0) - At the end of 'Any Amount'
0
Ok one moment
0
Sorry, for what you are trying to tell me is like ..... WAYYY over my head. May I ask that you better explain everything. step by step please lol
If you could, just take this Code and reenter what I need for it please lol
Commandbar
Events
Player - Player 1 Minerals changes
Player - Player 2 Minerals changes
Player - Player 3 Minerals changes
Player - Player 4 Minerals changes
Player - Player 5 Minerals changes
Player - Player 6 Minerals changes
Player - Player 7 Minerals changes
Player - Player 8 Minerals changes
Player - Player 9 Minerals changes
Player - Player 10 Minerals changes
Player - Player 11 Minerals changes
Player - Player 12 Minerals changes
Player - Player 13 Minerals changes
Player - Player 14 Minerals changes
Player - Player 15 Minerals changes
Local Variables
Conditions
Or
Conditions
And
Conditions
(Player (Triggering player) Minerals) == 0
Command Disabled[(Triggering player)] == False
And
Conditions
(Player (Triggering player) Minerals) > 0
Command Disabled[(Triggering player)] == True
Actions
General - Switch (Actions) depending on Command Disabled[(Triggering player)]
Cases
General - If (False)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) == 0
Then
Variable - Set Command Disabled[(Triggering player)] = True
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) custom value 1 to (Custom value 1 of (Picked unit))
Unit - Make (Picked unit) Uncommandable
Else
General - If (True)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) > 0
Then
Variable - Set Command Disabled[(Triggering player)] = False
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Make (Picked unit) Commandable
Else
Default
0
Otay, try to bare with me as I try to pin the tale on the donkey here, this information really looks complex to understand. This shall take me a bit.
0
Commandbar
Events
Player - Player 1 Minerals changes
Player - Player 2 Minerals changes
Player - Player 3 Minerals changes
Player - Player 4 Minerals changes
Player - Player 5 Minerals changes
Player - Player 6 Minerals changes
Player - Player 7 Minerals changes
Player - Player 8 Minerals changes
Player - Player 9 Minerals changes
Player - Player 10 Minerals changes
Player - Player 11 Minerals changes
Player - Player 12 Minerals changes
Player - Player 13 Minerals changes
Player - Player 14 Minerals changes
Player - Player 15 Minerals changes
Local Variables
Conditions
Or
Conditions
And
Conditions
(Player (Triggering player) Minerals) == 0
Command Disabled[(Triggering player)] == False
And
Conditions
(Player (Triggering player) Minerals) > 0
Command Disabled[(Triggering player)] == True
Actions
General - Switch (Actions) depending on Command Disabled[(Triggering player)]
Cases
General - If (False)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) == 0
Then
Variable - Set Command Disabled[(Triggering player)] = True
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Pause (Picked unit)
Unit - Make (Picked unit) Uncommandable
Else
General - If (True)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) > 0
Then
Variable - Set Command Disabled[(Triggering player)] = False
Unit Group - Pick each unit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Heroic, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Unpause (Picked unit)
Unit - Make (Picked unit) Commandable
Else
Default
I am guessing you are refering this is how it should look like?
0
w00t, I guess it needed Acceleration, it now works.