PDA

View Full Version : shield=mineral


eg-muffin
04-03-2005, 12:44 AM
I am trying to make a map where your character can get a shield but since your human i need help to get a way to have minerals as your shield. I know this can be done for ammo but i am not sure how to have all damage get taken into mineral before the characters health.

Thank you if you can help.

ChauSara
04-03-2005, 10:44 AM
As far as I know, you can't really make a trigger shield. Triggers can't detect hits.

eg-muffin
04-03-2005, 11:08 AM
ok thanks anyways

DragonPaladin
04-03-2005, 12:51 PM
Well, you could always improvise. Make your character a Marine with 1 hp. and same attack as you REAL character. The marine is the shield. Your mineral count is how many hits you can take.

One hit, marine dies right? When Player 1 suffers death of Marine then subtract one mineral. Then respawn another marine at the location of death, if you can do that. WHen all minerals have run out, you must then summon the real character out, not his shield. Only requires three triggers.

Player 1 has at least 1 mineral.
Create 1 Terran Shield(Marine) at Location of Death.
Preserve Trigger.

Player 1 suffers death of Terran Shield(Marine)
Subtract 1 mineral.
Preserve Trigger

Player 1 has exactly 0 minerals.
Create 1 Terran Hero(Hero Marine) at Location of Death.

And then when you wish to remake shield.
Add (number of minerals).

eg-muffin
04-03-2005, 1:22 PM
whoa that acctually will work i think. Thank you a lot.

hammocksleeper
04-03-2005, 4:20 PM
DP that works in theory, but you might want to make the marine have HP of more than 1. Like maybe 15. Reason being, there is going to be a delay between the instant he respawns and the instant he starts shooting at the enemy. While there isn't going to be any delay for the enemy, he's just gonna be shooting, and if the marine can't sustain at least one hit, he's never going to have enough time to get a shot off. And even if he does, most likely the enemy has already shot at him once, so in effect you are cutting his firepower in half.

DragonPaladin
04-03-2005, 4:57 PM
You could increase the armor. Or you could upgrade shields by making instead of a marine, a dragoon or something with the same type of attack.

I'm good at these kinds of things. You know the Swat game where your minerals equals the number of shots you have? How do you do that? Could that be incorporated into this?

ChauSara
04-03-2005, 6:44 PM
As far as I remember, the ammo thing is done by when you get a kill, you lose 1 mineral. If you are out of ammo, you no longer attack them on sight. With one player, you could make the enemies invincible when you are out of ammo.

eg-muffin
04-03-2005, 6:51 PM
I have not figured out a way to get the damage to go to minerals instead of the unit. So i dont know if it can be used for the shield.

I couldnt get your marine idea to work becuase i cant find how to make it Location of Death.

DragonPaladin
04-03-2005, 8:29 PM
Will someone help this poor fella?

fool
04-04-2005, 8:52 PM
that thing above may work if you use the wait 0 triggers so its instant

eg-muffin
04-05-2005, 8:15 PM
Hmm il try but I need help becuase he said to do location of death but im not sure how to get that.

Sorry about all the questions its been years since ive done anything on sc maps so i forgot a lot.

King_Templar
04-05-2005, 10:37 PM
Just make a location. Lets call it "Location of Death" and make it 1x1 to 3x3. (the bigger might be better to make sure it CAN spawn. but, with hyper trigs, it'll work fine with the smaller.)

Use this trigger:
Current player commands at least 1 (shield unit).
Center location Location of Death on (shield unit) owned by current player at Anywhere.

If you need help with explaining that, i can. this will keep the location of that unit, so that you can spawn replacements. Hope this helps!

Calibius
04-05-2005, 10:42 PM
If it was a shield wouldn't you want it to be a regular marine with the health, set to the desired shield points, and on death of the Marine(regular) create the "Real" marine(hero), instead of having a marine that respawns.
If you keep respawning your giving him extra shields, unless its more like shield regeneration, which means you would have to use zerg for that so you could say, instead of having the regular marine you could have a hero zergling with the correct shield/health.

<example>

Player: player w/ shield
Condition: player w/shield commands exactly 0 Marines(shield/regular)
Action: Create 1 Marine(hero) at location of death*

*see above post
Italized means changeable

eg-muffin
04-05-2005, 11:22 PM
okay thanks a lot guys.