Staredit Network

Staredit Network -> Concepts -> EUD HP Conditions
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-03 at 02:22:52
Its like this, I have never done ANYTHING with EUD's, except know that they are there and they can detect anything.

Now I have this friend, who needs to be able to detect HP for a specific unit (Medic) and make the trigger increase hp% +1 every time you are at the heal location.

100 Minerals goes to the first person to teach me biggrin.gif

I also don't know if this is a UMS help or if it is a concept so please direct me in the right direction if its wrong admins tongue.gif
Report, edit, etc...Posted by NerdyTerdy on 2007-02-03 at 03:08:16
Does Virtual HP not appeal to you? If not then I can't help you because I know nothing about EUDs. You might want to contact scwizard, he seems to be the expert on them around here.

Side-note: I think this should go in UMS Assistance.
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-03 at 04:12:21
Apologies.

VHP would be fine, but would be quite impossible for say, 100 units per player?
Report, edit, etc...Posted by Kookster on 2007-02-03 at 05:19:36
QUOTE
VHP would be fine, but would be quite impossible for say, 100 units per player?
Yeah it only works for specific units and not multiples of that unit. So you would have to do EUD's.
Report, edit, etc...Posted by Pyro-Fire on 2007-02-03 at 05:34:24
hmm....

1. what units can be healed
Report, edit, etc...Posted by spinesheath on 2007-02-03 at 10:00:22
EUDs also only work for specific units. Even worse, it only works for a unit with a certain index in the unit list.
Getting the HP of a fairly random unit at some location is pretty much impossible.
Report, edit, etc...Posted by PCFredZ on 2007-02-03 at 12:10:20
I'd keep this in Concepts for a while just because of the number of spammy Assistance replies you'd probably get.
Report, edit, etc...Posted by scwizard on 2007-02-03 at 13:45:31
I did a concept map for this. Lemme try to dig it up.

Later: Found the map, but the EUDs were reset for it. During that time when all my EUD trigs were being messed up for some reason.

In this map when your zealot loses all its shield, its shield resets to max and it loses a "hit point" (the custom score). I'll have the map for you in a sec.

EDIT: Damn, I didn't save the offset for it either.
Report, edit, etc...Posted by Falkoner on 2007-02-03 at 13:47:32
Has anyone found the new offsets for detecting health yet?
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-03 at 13:55:39
Yea you give me that offset, teach me how to insert it in my map, and I'll make you a very rich rawring sen person :D
Report, edit, etc...Posted by scwizard on 2007-02-03 at 14:00:55
Here's the map. When you lose all your shield, as long as you have hit points left, you'll lose a hit point and your shield will refill.

ADDITION:
Shoot, I didn't know you wanted the offset to.

Still for that particular unit in that map what you need to know is:
unit 27224 for Player 11

The offset is lost though, I forgot to save it. I'm not sure what the pattern is for the unit table (it seems to be pretty ad hoc).

Generally for anything you want to detect with EUD conditions, you need to find the offset yourself with ARTmoney. Learning to use a memory seracher isn't as hard as it sounds though.
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-03 at 15:14:52
Hmm interesting concept, lose so much hp, regain all shields. Nb ;o

But the idea of this little project is to make a map with HP detection for medic tassadar and aldaris. Its gonna take about 100 triggers, but if someone could teach me how to make and insert the buggers well shifty.gif I think we can talk about some minerals. ;o

ADDITION:
OK scwizard, I got ArtMoney (It looks Korean made, but translated on the site xD), and I read some stuff in the help. Now, how do you load SC into this bugger? xD

ADDITION:
Am I going the right way if I am able to change a medics HP DURING game? xD
Report, edit, etc...Posted by spinesheath on 2007-02-03 at 15:26:22
Changing HP using EUDs? That's an EUD action and thus not possible. Changing it by EUD detection and the "Set HP %" trigger is fine, yet a good number of triggers.
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-03 at 15:35:14
I just need to be able to detect the units hp using the EUD. Not set it tongue.gif

ADDITION:
Ok if I knew what I was doing,

QUOTE(ubecalc)
Offset from Deaths of P1 Marines: 1306585
Player ID: 7
Unit ID (unsigned): 27220

Byte Offset: 1


Start talking
Report, edit, etc...Posted by spinesheath on 2007-02-03 at 18:39:57
Hmm this sounds like even I could get it done tongue.gif How big is the data type you want to check? Damn, from my notes I would guess it's 3 bytes... There is that damn "invincible" byte, right?
So, does byte offset 1 mean that it starts with the first byte (1-based), or that you have to skip the first byte (0-based)?

Once scwizard drops by, he probably can tell you wink.gif

If you want to try around, make a trigger like this:

Conditions:
Player 7 has suffered at least 100 deaths of Unit#27220
Actions:
Whatever

Condition should be met if the unit has more than 100HP.

It might also be that I would read the wrong byte there, so you would probably have to multiply the 100 with 256, so:

Conditions:
Player 7 has suffered at least 25600 deaths of Unit#27220
Actions:
Whatever

should give the correct result in that case (if we can ignore the "invincible" byte, which is when it is 0. I think it normally is 0).

Note: I never used EUDs myself, so this is just what I put together from what I read.
Report, edit, etc...Posted by Kookster on 2007-02-03 at 19:06:20
you gotta remember thats also for a specific unit ID#
Report, edit, etc...Posted by spinesheath on 2007-02-03 at 19:12:22
The data he has specifies the place where the hitpoints of the unit with at a certain place in the unit list are stored.
For example his unit could be the very first unit in the list (= was placed first). But it does not matter which type of unit it is.

If you meant it exactly that way, well, for me "Unit ID" is something like Marine = 0 wink.gif
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-03 at 19:30:15
Ok well i've gotten pretty far but, How do I put unit#27220 O_O
Report, edit, etc...Posted by spinesheath on 2007-02-03 at 19:38:13
Starforge with the modified listfiles (should be somewhere in the DLDB... I guess...), or... Hmm, I don't know if Trigedit accepts numbers as units. Try it out wink.gif
There also is the option of hex-editing them into the map cool1.gif
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-03 at 21:44:09
Ok my best option is that SF thingy, my friend also told me about it.

Hex editing well...it didnt go as well >_> And trigedit dun like it either.

ADDITION:
Ok I got them SF files. uberwoot.gif

Now, I think I did something wrong ;( When my medic has 500 hp (Aka at most 500 unit deaths) left, it doesnt do the trigger. so whatever this 27220 is, its not medic HP O_O

ADDITION:
Ok I got them SF files. uberwoot.gif

Now, I think I did something wrong ;( When my medic has 500 hp (Aka at most 500 unit deaths) left, it doesnt do the trigger. so whatever this 27220 is, its not medic HP O_O
Report, edit, etc...Posted by spinesheath on 2007-02-04 at 04:52:37
Did you try both triggers I suggested?

And for which unit are those values? I don't know where you got them from (and it won't help to tell me tongue.gif ), but you probably had to specify a unit index. So which Number did you insert for this?
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-04 at 17:28:05
I realised I have the wrong ID, its not working nomatter what I do D: So now I need someone just to give me the ID and the player number and you get 100 minerals. Fair ;O
Report, edit, etc...Posted by O)FaRTy1billion on 2007-02-05 at 17:24:54
QUOTE(scwizard @ Feb 3 2007, 12:00 PM)
unit 27224 for Player 11

The offset is lost though, I forgot to save it. I'm not sure what the pattern is for the unit table (it seems to be pretty ad hoc).
006C83D4. tongue.gif

EDIT:
Uh. Are you doing this on some random unit or a specific one? It has to always have the same unit slot thingy.
Report, edit, etc...Posted by Dark_Marine_123 on 2007-02-05 at 22:58:43
Medic for players 1 ~ 6, Tassadar for players 1 ~ 6, and aldaris for players 1 ~ 6.
Report, edit, etc...Posted by O)FaRTy1billion on 2007-02-05 at 23:02:10
They have to always have the exact same unit slot... then you find the offsets for that specific slot and you go from there.
Next Page (1)