Ok, for a map I'm starting, you can chnage guns. Anyone have an idea of how to transfer the damage from one gun(unit) to another? like a marine, mp5 has 200 hp, gets shot and has 195, switching to ghost shotgun, you have now healed... so unless I use like a VHP, with burrowed units for detection, anyone got an idea of how to do this without using this?
None.
Have the real unit be invincible and have a burrowed unit under it that gets attacked?
That is the easiest way I can think of.
None.
yea thats what I was talking about
None.
The most common approach is to have the weapons not in use sit in a standby area and to switch them out when you switch weapons. Even though if you switch from marine to ghost your health goes up, you lose the health once you switch back. Atleast it encourages you to use multiple weapons
None.
You can't. You have to use VHP one way or another. Or make it part of the gameplay somehow.
You
could use a swarm-based gunner system or something like that if you're desperate.
None.
Another creative way is to have a civilian be your health and character and have an invincible weapon stay in a location centered around him. That way it is like you are holding the weapon.
None.
^that is extremely difficult to pull off well, just do you know...
None.
Tux is right, you need some sort of virtual health system, otherwise it just isn't possible unless you want to use EUD conditions.
None.
^that is extremely difficult to pull off well, just do you know...
It can be made with two triggers:
Trigger("Player 1"){
Conditions:
Always();
Actions:
Move Location("Player 1", "Terran Civilian", "Anywhere", "Area around player");
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Bring("Player 1", "Terran Marine", "Area around player", At most, 0);
Actions:
Order("Player 1", "Terran Marine", "Anywhere", "Area around player", move);
Display Text Message(Always Display, "xxxxx Text message if needed xxxxxx");
Preserve Trigger();
}
//-----------------------------------------------------------------//
The only problem is when you attack an enemy unit they will run from the invincible weapon instead of attacking the mortal civilian. One way to get around this is have the civilian be replaced by a unit that does 0 damage. They should attack it instead of running.
None.
You'll still get AI problems if your weapon has less range than your enemy's, and you're idling, as you'll still run from the invincible attacks.
Also, the following weapon can be a severe pain in regards to your own motion, limiting you to air units for weapons.
Actualy, there
is a way to detect unit hitpoints, but it's fairly slow, meaning that players would be unable to switch weapons mid-battle, unless you designed a lot of the map around it - move the weapon over to an isolated box, and use triggers to count how many infested terrans/spider mines/scarabs are required to kill it.
edit: similarily, you could use a splashing attack, and count the number of times that the splash occurs. This may work faster.
None.
wow.... as Tux said I'm gona need the VHP, thats what I figured. My question was is there an easier method to having like 50 lings under the unit, evidently, not.
None.
Forgot about that solution, Ez. But yeah, it'd be tricky to get it to be practical during a battle. You'd have to add in some weapon switching intermediary or adjust the new weapon's HP while the previous one's is being counted off.
Plus you'd lose the hotkeys to your weapons for each switch.
None.
Hey, I have an idea. If all the weapons did the same damage, you could have a marine that just dies every time it gets hit. Then you could keep track of health via a kill score. This may or may not be visually acceptable.
None.
Alright alright, I have three methods to try.
1. Have a 1 unit constantly follow your hero, no matter what weapon, if it dies, you die(hero is invinceable)
2. multiple units under it, 10=100 9=90 8=80 etc.
3. Screw the whole thing, and stick to 1 weapon.
None.
#3 is the best but you can still use multiple weapons. Just make it so you can only switch in selected areas.
None.
This is a super old topic, but I think I know a way. You need a location the approximate size of a weapon's attack range. Do this for every weapon. Then you need to check which unit the player attacking you has and check whether or not they bring that unit within the attack range for that weapon. In your weapons holding area, create the appropriate weapon to attack your weapons so that they have the same health. This is obviously buggy, but it's the best I can think of.
None.