Staredit Network

Staredit Network -> UMS Assistance -> Switch Weapons
Report, edit, etc...Posted by Staredit.Net Essence on 2004-05-20 at 10:04:18
alirhgt well im still working on that same map and i want to be able to swith some1s unit while still keeping the same health

keep in mind that i have levels in health (set to 10 percent on first level and so on...
Report, edit, etc...Posted by Mini Moose 2707 on 2004-05-20 at 10:43:25
There are no ways to base triggers on a unit's current health, only to set it's current percentage.

If you're talking about preserving the amount that the units are healed to, just have it set the health percentage for men, and not the specific unit.
Report, edit, etc...Posted by @:@ on 2004-05-20 at 12:43:43
elaborating off what he said

for your heal center you could have something like this:

Conditions:

If current player brings [unit] to [location] \\heal center
Deaths for Player 8 for [unit] = 1 \\make sure the unit can't die naturally

Actions:

Set current players hitpoints to 10%



Conditions:

If current player brings [unit] to [location] \\heal center
Deaths for Player 8 for [unit] = 2 \\make sure the unit can't die naturally

Actions:

Set current players hitpoints to 20% \\or whatever percentage you deem necessary

there is no possible way to determine the percentage of a unit and transfer it to another unit, for example if you are trying to mimick a druid and he transforms into a werewolf you can't perserve his health if he transforms back, he would just have to go to a particular health you triggered for him and not his previous health.
Report, edit, etc...Posted by .Coko[CK] on 2004-05-20 at 13:04:02
The best you can do, is have them move the units around the map, either to a location you can't see, if you turn off lights and work it the cool way, or giving to another player, that way it is preserved until you bring it back, there smile.gif
Report, edit, etc...Posted by Staredit.Net Essence on 2004-05-20 at 14:13:37
coko so i think your saying there is a way to make them switch units with haveing the health stay the same can you say more cuase you lost me here blink.gif

and also its an easier way to store if they have 10% or 20% or however much health is to make a trigger if trigger 1 set then set 10% health on heal and so on...much easier


coko you really lost me...i was thinking there wouldent be a way to store health but i think you have a way blink.gif blink.gif
Report, edit, etc...Posted by .Coko[CK] on 2004-05-20 at 17:02:54
Look, it doesn't store a counter of your Health, it stores the unit, so say you have the unit able to become another unit, maybe for some period, and then have it return back, then all you need to do is have some corner of the map closed off, and instead of replacing/removing/creating, have the units stored (owned by a computer - no vision) there when not in use, and move them and give to player when you do, therefore they hold what health they had previous, though Zerg will rise a bit, that way you can keep them at a certain health if say you have a unit changing and changing back, so players can't "cheat" to keep themselves from dying.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-05-20 at 21:51:58
...alright i think im getting you

so the only way i could do it is have the health for the machine gun and the rifle be difrent but they dont get an autoheal everytime they swith weapons...so eventualy they will run out of weapons...not the effect I was going for but I think if I play around with this alittle more i could get somewhat closer

alrihgt thnx coko
Report, edit, etc...Posted by .Coko[CK] on 2004-05-21 at 04:11:53
This requires you having a different unit for each different person, so when you switch the last gets moved away, and you get your other one from the same area to come back, you could set them to recieve some health when they got back, maybe have a medic with a set amount of health and healing for a few seconds if the amount of health isn't vast!
Report, edit, etc...Posted by @:@ on 2004-05-21 at 10:12:07
Good job coko.

If you do it that way I would suggest calling it "weapon damage"
Report, edit, etc...Posted by .Coko[CK] on 2004-05-21 at 15:28:10
You see, sometimes people get too technical and then death approaches (had to do that Mike...so sorry!)
Next Page (1)