In my new map im making, I was wondering if it is possible to make a different units heath go down when an enemey reaches his destination.
Yes, but you can only set it to a percentage. eg.
| Trigger |
| Description: |
| Damge Remote Unit Trigger |
|
| Players: |
| ¤ Player |
| Conditions: |
¤ Player X brings 1 "Unit" to "Hurt player Y"
|
| ¤ Anything else you want |
| Actions: |
¤ Set health of all unit owned by Player Y to 50%
|
| ¤ Preserve Trigger (if you want to happen again" |
If you wanted to be really advanced and set damage according to the units current health, you can check out some of the detection health tutorials in the tutoiral section.
O ok thanks alot high. I cant seem to find it could u possible give me the link of that tutorial page ur talking about?
ya hes right or just create the location the unit and when unit reachs area do the damage t
I don't think there is a tutorial for it. Just do the triggers. It's not that hard. I'll see if there is a tutorial...
If you're having problems with the pourcentage, just set the heath to a multiple of 100. Like 100( 1% = 1 hp),200( 1%= 2 hp),300( 1% = 3hp),1000( 1% = 10 hp),2000 ( 1% = 20 hp),10000( 1% = 100 hp)(with starforge) etc..
There is a better way, I asume your doing a defence map? not that it matters.
What you do is have the building/unit owned by a computer player allied to the outher players, and create a DT next to it then remove it after it's had enugh time to make one attack, this way you could use a zerg building if you wanted to. I've tried to do something simmilar years ago using infested terrans to deal 20 damage to an overmind, it works fairly well. and you dont have to worry about the percential triggers if you dont want to. A similar way is to use a reaver, and give it scarabs for every unit that enters the endlocation.