As i was sick of waiting for a Test of Terran map in sc2 i kinda decided myself yesterday i would remake the map on my own.
So im new to mapping and I have no clue at all,
but i managed to incorporate some triggers for the map myself ( thanks to this site and the help here )
So now i have ran into a Problem and im googling my ass of since 1 or 2 hours and have found no solution.
All i really need is a Simple trigger that heals all Units of a Player that are in the Heal-Zone to a Certain amount of Health ( and re-heal them after half a second or more if they get attacked) but with a twist.
The Players start with 20% Health on all Units and it increases by 20% everytime they kill 1 of the 4 Pylons in the Corners of the map.
So first pylon it goes up to 40%, second to 60%, third to 80% and the last obviously to 100%
So im using the old map for refference and i usually look at the old triggers and try to find a way to do it in the Sc2 editor but here im kinda stuck so i need help.
Also i would like to Point out that i often run across some weird looking code here that look like some kind of triggers but dosnt really help me because i am doing all my triggers with the gui so keep the answers simple please (: dont know if that is necesarry to know though
ok
so i have managed to solve the problem on my own.
i`ve done it with a simple repeating action, didnt know why i havent checked that before i posted here.
hafe fun mapping peeps
Another way would be to do essentially as OneSoga said, except change 'Unit - Set (Picked unit) Life (Percent) to 20.0' to "Unit - Set (Picked unit) Life (Percent) to pylonDestroyed(real variable, default or initialize value of 20.0)' or something similar, and then in another trigger, have it add a real value of 20.0 for each pylon that the player(s) destroy.
thx for the replys,
didnt know why i didnt think of the timer every ... seconds of game time.
Thanks to another help i finally understood the variables a little bit and have redone my heal Trigger with variables and other neat stuff.
I would copy it all here but its all in German so i dont know if its any help.
But if someone is looking for a really good Healzone Trigger he can write it here and i will gladly translate the stuff in english.
Anyway really appreciate your help guys
cu
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello my peeps,
As i was sick of waiting for a Test of Terran map in sc2 i kinda decided myself yesterday i would remake the map on my own. So im new to mapping and I have no clue at all, but i managed to incorporate some triggers for the map myself ( thanks to this site and the help here ) So now i have ran into a Problem and im googling my ass of since 1 or 2 hours and have found no solution.
All i really need is a Simple trigger that heals all Units of a Player that are in the Heal-Zone to a Certain amount of Health ( and re-heal them after half a second or more if they get attacked) but with a twist. The Players start with 20% Health on all Units and it increases by 20% everytime they kill 1 of the 4 Pylons in the Corners of the map. So first pylon it goes up to 40%, second to 60%, third to 80% and the last obviously to 100%
So im using the old map for refference and i usually look at the old triggers and try to find a way to do it in the Sc2 editor but here im kinda stuck so i need help.
I`ve made a Screenshot of the Trigger from Sc1 cause it shows best what i am looking for, here you go, http://img138.imageshack.us/i/triggerb.jpg/
Also i would like to Point out that i often run across some weird looking code here that look like some kind of triggers but dosnt really help me because i am doing all my triggers with the gui so keep the answers simple please (: dont know if that is necesarry to know though
ok so i have managed to solve the problem on my own. i`ve done it with a simple repeating action, didnt know why i havent checked that before i posted here. hafe fun mapping peeps
Great now the units get healed no matter where they go O_o getting frustrated at this nobody has some tips how to do this ?
hi i don't know if this is exactly what you need but onetwosc mad a excellent tutorial on a healing fountain just search in you tube "onetwosc"
I would recommend something to the effect of this:
If you want to ensure that only player, not enemy computer, units get healed, you'd tweak it to:
Another way would be to do essentially as OneSoga said, except change 'Unit - Set (Picked unit) Life (Percent) to 20.0' to "Unit - Set (Picked unit) Life (Percent) to pylonDestroyed(real variable, default or initialize value of 20.0)' or something similar, and then in another trigger, have it add a real value of 20.0 for each pylon that the player(s) destroy.
thx for the replys, didnt know why i didnt think of the timer every ... seconds of game time. Thanks to another help i finally understood the variables a little bit and have redone my heal Trigger with variables and other neat stuff. I would copy it all here but its all in German so i dont know if its any help.
But if someone is looking for a really good Healzone Trigger he can write it here and i will gladly translate the stuff in english.
Anyway really appreciate your help guys
cu