Staredit Network

Staredit Network -> UMS Assistance -> HP Draining and Subtracting..
Report, edit, etc...Posted by Orc on 2004-01-07 at 00:04:33
Is there any way to make a unit in one units location lose HP as one player casts a spell?Like going from 100% to 99, 98, 97, 96, 95, 94 etc...Or from 58%, 57, 56 etc, from whatever there current HP is just keep bringing it down one percent a second...I can't seem to find out how and just saw it in a protect yur nexus game...
Report, edit, etc...Posted by chuiu on 2004-01-07 at 00:52:08
Well you can make 100 triggers to take it from 100 to 1.

But if you needed a trigger that read the persons HP and then subtracted from that amount ... then you need to do some extra work and make some custom HP triggers which define their HP by some other value.

If you need something that heals a person, then I would create a medic. I use that as potions in some of my famously unfinished maps.
Report, edit, etc...Posted by EzDay281 on 2004-01-07 at 01:00:31
Conditions
-Switch Z is set
-Whatever the hell your conditions are
Actions
-Set HP to 99%
-Set switch X
-Wait for 1 millisecond(or w/e)
-Clear Switch Z
-Preserve Trigger

Conditions
-Switch X is set
-(Same condition as above)
Actions
-Set HP to 98%
-Set Switch Y
-Wait for 1 milliseconds(or w/e)
-Clear Switch X
-Preserve Trigger

And so on, and so on. Add wait triggers, switch triggers, etc at will to increase time between triggers.
I've never tried this, but it should work.
Report, edit, etc...Posted by Yoshi da Sniper on 2004-01-07 at 08:57:54
That would take a while. You can just do it in a few triggers, like:

COND.
Whatever.
ACTIONS
- Set HP to 99%
- Wait 25 Miliseconds
- Set HP to 98%
- Wait 25 Miliseconds
.... and so on

but theres a limit of 64 actions. So you'll have to make about 3-4 triggers with switches.
Report, edit, etc...Posted by SpaceBoy2000 on 2004-01-07 at 11:03:35
What happens if the unit has already been damged to oh...50% health? Wouldn't that help the player instead?

Then again, I really don't know how to do it myself too. Maybe have some units attack it constantly?
Report, edit, etc...Posted by chuiu on 2004-01-07 at 13:15:56
Spaceboy, why dont you read all the posts before you post?
Report, edit, etc...Posted by Mini Moose 2707 on 2004-01-07 at 14:55:36
You can temporarily create a Burrowed invincy Lurker for a computer under the player and constantly move it their location and have it attackt them.
Report, edit, etc...Posted by EzDay281 on 2004-01-07 at 15:27:56
QUOTE(Yoshi da Sniper @ Jan 7 2004, 08:57 AM)
That would take a while. You can just do it in a few triggers, like:

COND.
Whatever.
ACTIONS
- Set HP to 99%
- Wait 25 Miliseconds
- Set HP to 98%
- Wait 25 Miliseconds
.... and so on

but theres a limit of 64 actions. So you'll have to make about 3-4 triggers with switches.

Yes, but then you can step on the damage thing ONCE, and it'll KEEP damaging them until it reaches the end of the trigger. But then, that might be the wanted result... I dunno. IT would do what I stated, right?
Report, edit, etc...Posted by Mini Moose 2707 on 2004-01-07 at 15:35:56
Yeah, but there's no need to waste all those switches. Use some other kind of counter to save them (custom score, minerals, burrowed units even?, etc). Or just do what I did -- The problem with mine, that I just realized, is armor upgrades would reduce the damage from the Lurker.
Report, edit, etc...Posted by SpaceBoy2000 on 2004-01-07 at 15:41:04
QUOTE(Chu @ Jan 7 2004, 01:15 PM)
Spaceboy, why dont you read all the posts before you post?

Chu, what do you mean by that? None of the methods above my previous post will decrease the health starting from 50% or something like that.

The only problem with using something like a lurker would be the ugly spikes that shoot up from the ground. And your unit's AI will move away from the lurker automatically if it's stopped.

Why can't Blizzard implement a decrease HP trigger? ARG!
Report, edit, etc...Posted by EzDay281 on 2004-01-07 at 15:58:41
That's what I was wondering. And under properites be able to set "150% HP" or something. Be able to create SPECIAL units with modified stats. Like you need a special Fenix with 150 HP, but you modified him to have 100. Or with normal units. Or have an "or" condition. Oh, and be able to set a trigger so that it works when any unit except X reaches location Y. Instead of having one trigger for EVERY units except X.
Report, edit, etc...Posted by chuiu on 2004-01-07 at 16:55:50
QUOTE
Chu, what do you mean by that? None of the methods above my previous post will decrease the health starting from 50% or something like that.


Well ... since you're BLIND or obviously can't read. Let me bring the post to YOU.

QUOTE("Chu")
But if you needed a trigger that read the persons HP and then subtracted from that amount ... then you need to do some extra work and make some custom HP triggers which define their HP by some other value.


QUOTE
Why can't Blizzard implement a decrease HP trigger? ARG!


Because it would require hours, possibly weeks of digging through code and recoding, and redo'ing a lot of things. Bug testing, etc. If they did, you would expect it in a few months and with tons of bugs with it. Do you really want that?

The only method I saw that I really liked was creating IT's that damage the unit to the amount desired. But that doesn't work well in most situations.
Report, edit, etc...Posted by EzDay281 on 2004-01-07 at 18:16:10
How about a cloaked Wraith that dies after a second?
EDIT:
"

Because it would require hours, possibly weeks of digging through code and recoding, and redo'ing a lot of things. Bug testing, etc. If they did, you would expect it in a few months and with tons of bugs with it. Do you really want that?"
And you know this how?
Report, edit, etc...Posted by chuiu on 2004-01-07 at 18:33:20
Because I have enough experience in programming to know what they have to do to make a seemingly minor change like that.
Report, edit, etc...Posted by SpaceBoy2000 on 2004-01-07 at 18:54:28
I know it would take some time for them to implement a new trigger, but it doesn't help that I'm frustrated.

Anyways, all cloaked units would not work since they would force the guy to run in all sorts of random directions when you can't attack the units that's attacking you. Like Chu said, only Infested Terran would really work, and that will make thing look pretty ugly.
Report, edit, etc...Posted by Mini Moose 2707 on 2004-01-07 at 19:53:25
QUOTE(Chu @ Jan 7 2004, 02:15 PM)
Spaceboy, why dont you read all the posts before you post?

QUOTE(Mini Moose 2707)
You can temporarily create a Burrowed invincy Lurker for a computer under the player and constantly move it their location and have it attack them.


The constant move apparently wasn't noticed. You move, it moves with you, burrowed underground. Use Zero Wait (Hyper Triggers) and it isn't going anywhere you aren't.
Report, edit, etc...Posted by chuiu on 2004-01-07 at 20:14:47
And it's splash hurts all around it aswell. Making it much worse than IT.
Report, edit, etc...Posted by SpaceBoy2000 on 2004-01-07 at 22:33:57
Not what I mean. Yes, the lurker will stay with the unit, but that doesn't stop the unit from running out of control everywhere when the unit isn't being commanded to go somewhere. That could make the unit VERY hard to control.
Report, edit, etc...Posted by EzDay281 on 2004-01-07 at 22:34:35
IT's would work, then, I guess... \:
I'm all tired today...
Well, you wouldn't have to dig through a lot of coding if it were one of the first triggers made instead of near-last, now would you lol. Please ignore that comment, as I understand it's probably stupid.
Report, edit, etc...Posted by Mini Moose 2707 on 2004-01-08 at 16:20:52
So you long as you don't deselect it and scroll halfway accross the map, don't know what hold position is, or are too stupid to use hotkeys, unit control isn't a problem.
Report, edit, etc...Posted by EzDay281 on 2004-01-09 at 00:23:01
So, uhh... are you reffering to the IT/Lurker scaring unit so it moves?
If so...
it could still be a problem. I, personally, use hotkeys(1, 2, 3, etc), hotkeys(t for psi storm, h for hold position, etc), hold position, and various other stuff quite often, but there are times you would want your unit to be set to "Stop" command.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-01-19 at 16:21:35
Unfortunately there is no way to read how much life a unit currently has so that you can adjust it's hit points etc, there are also no triggers to "add" or "subtract" HP or mana from a character.

Therefore these triggers will not work because as said previously, if a units life is at 100% and you set it to 70% in an attempt to "add" 20% life or something like that, you'll be taking life away from the unit.

This is something for the "wish list".

Although I don't believe Blizzard will ever do anything with staredit...
Report, edit, etc...Posted by chuiu on 2004-01-19 at 16:26:20
Hmm, I just thought of something. You could move the men to a box filled with a unit that a certain attack and then deal the damage to that person in, preferably, one hit and then teleport them back to where they were.

The only thing is, the units you use in the box might deal less damage to certain units, etc.
Report, edit, etc...Posted by Mini Moose 2707 on 2004-01-19 at 18:21:09
Armor Upgrades would interfere with that as well.
Report, edit, etc...Posted by chuiu on 2004-01-19 at 18:31:14
You might be able to get spell casters to cast plague or storm on them given a certain situation ... like its the only unit nearby and it has full energy with storm/plague researched and everything else disabled (non hero unit also HT or filer).

Or you can make an alternate indicator so that when they do level or get cash to upgrade, it makes the unit attack more before it's sent back.
Next Page (1)