wc2wc2
Member!
In a map of mine, some units are set to Invincible. I wanted to add a little more show on these untis and am trying to make there HP go from 100% (counting by 10% increments) down to 1%, then back up to 100%. I cannot seem to get it to work. The hp will stop at 99%, Im guessing on the way back up the ladder.
Conditions:
Player 1 commands at least 1 "XX"
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "100%"
Set HP for all "xx" owned by current player at "Anywhere" to "90%"
Set HP for all "xx" owned by current player at "Anywhere" to "80%"
Set HP for all "xx" owned by current player at "Anywhere" to "70%"
...... All way down to 1% .......
then back up to 90%. Then I tag a preserve trigger at the end.
Like I said it seems to stop at like 90%
For some reason it will not rotate through the different HP %'s.
I tried useing switch triggers also.
that worked also except for this problem. I had a different trigger for each %. For trial and error reasons I only used 100% 50% and 1%. It would work all the way down to 50% but would not go back to the 100%.
Conditions:
Player 1 commands at least 1 "XX"
Actions:
Set "Switch 1"
Conditions:
Player 1 commands at least 1 "XX"
"Switch 1" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "100%"
Clear "Switch 1"
Set "Switch 2"
Preserve Trigger
Conditions:
Player 1 commands at least 1 "XX"
"Switch 2" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "50%"
Clear "Switch 2"
Set "Switch 3"
Preserve Trigger
Conditions:
Player 1 commands at least 1 "XX"
"Switch 3" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "1%"
Clear "Switch 3"
Set "Switch 4"
Preserve Trigger
Conditions:
Player 1 commands at least 1 "XX"
"Switch 4" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "50%"
Clear "Switch 4"
Set "Switch 1"
Preserve Trigger
I have seen this done on different maps so I just need to get it right. I have used the only 2 ways that I can think of. I also know very little about switches. They are still confusing to me so I dunno if I used them correctly. They look good from my understanding. Can anyone help please
Conditions:
Player 1 commands at least 1 "XX"
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "100%"
Set HP for all "xx" owned by current player at "Anywhere" to "90%"
Set HP for all "xx" owned by current player at "Anywhere" to "80%"
Set HP for all "xx" owned by current player at "Anywhere" to "70%"
...... All way down to 1% .......
then back up to 90%. Then I tag a preserve trigger at the end.
Like I said it seems to stop at like 90%
For some reason it will not rotate through the different HP %'s.
I tried useing switch triggers also.
that worked also except for this problem. I had a different trigger for each %. For trial and error reasons I only used 100% 50% and 1%. It would work all the way down to 50% but would not go back to the 100%.
Conditions:
Player 1 commands at least 1 "XX"
Actions:
Set "Switch 1"
Conditions:
Player 1 commands at least 1 "XX"
"Switch 1" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "100%"
Clear "Switch 1"
Set "Switch 2"
Preserve Trigger
Conditions:
Player 1 commands at least 1 "XX"
"Switch 2" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "50%"
Clear "Switch 2"
Set "Switch 3"
Preserve Trigger
Conditions:
Player 1 commands at least 1 "XX"
"Switch 3" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "1%"
Clear "Switch 3"
Set "Switch 4"
Preserve Trigger
Conditions:
Player 1 commands at least 1 "XX"
"Switch 4" is set
Actions:
Set HP for all "xx" owned by current player at "Anywhere" to "50%"
Clear "Switch 4"
Set "Switch 1"
Preserve Trigger
I have seen this done on different maps so I just need to get it right. I have used the only 2 ways that I can think of. I also know very little about switches. They are still confusing to me so I dunno if I used them correctly. They look good from my understanding. Can anyone help please