Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD Health Detection
EUD Health Detection
Mar 15 2008, 1:54 pm
By: Joshgt2  

Mar 15 2008, 1:54 pm Joshgt2 Post #1



I stated my idea for this in the UMS Theorys and Idea forum and no one was able to give anything useful back to me so this is what I'm looking for...

Quote from Joshgt2
This might sound complex but I know what I'm thinking in my mind. I am currently making a CTF map that has classes in it that able to cast there own special spells. My first system of dealing damage with the spells was having a virtual health system, but then I thought to myself "what about the melee classes?". My second system was dealing with scarabs and each spell would send out a certain number of scarabs to a foe or whatever they needed to do to deal damage. I found that to become too complex, but the melee classes could work. And now this is my concept of what I have come up with. I don't know if anyone else has done this before but this is what I thought of. My current system is going to have all units have a health of 10, that's right just 10. I will have all unit damages be between 1-9, not 0 because you can't have that and not 10 because that would kill them. Once a unit is hit with a melee character in this case, and the melee unit deals 5 damage. The EUD will detect that the player unit currently has 5 health and instantly changes the health to 100%, but here is the kicker. The REAL health is within the minerals. If the EUD condition comes up with the unit having 5 health, minerals are subtracted (just like health can't be) and that will be there current health after the attack. Once the minerals reach 0 then the unit will die. But what if your playing a class which doesn't have as much melee power? That other class will have a damage of 4 on the unit. The EUD will detect only having 4 health and will subtract a less amount of minerals making up for the 'weaker' attack. But then I thought of another big plus, the spells and their damages. The damage of the spells can simply be subtracted right from the minerals and I don't have to worry about those stupid scarabs or anything else. Simply subtract and done. My only fear is that I'm not quite sure that the EUDs will work like I want them to. If they do then we might have ourself a new way of playing RPGs will spells in them...

Sorry for the long post but you asked for my concept and there is it...
Basically, I'm asking for a system that will detect a certain units health on a certain player and when that certain health is reached then a certain amount of minerals will be lost. If anyone has any question then please ask me



None.

Mar 15 2008, 4:00 pm Falkoner Post #2



Well, you're in luck, someone at Maplantis posted a map just today with EUD health detection:

http://whathuh05.googlepages.com/EudHealthDetection.scx



None.

Mar 16 2008, 1:22 am NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Haven't checked the map, but I think it won't help you - at least it won't solve all problems. EUD's conditions check for unit ID's which are for sure different on you map - thus you need different values.

What you need is a tutorial on how to find the correct values representing the memory locations. Rockz @ maplantis seems to know how to do it, as he says it's quite easy. ;) (And I think he's right: It IS easy if you know how to. :D)
You should talk to him.




Mar 16 2008, 1:24 am Falkoner Post #4



Farty has a program at his website(http://Farty1billion.DynDNS.org) that lets you find the right memory offsets.



None.

Mar 16 2008, 3:48 am Joshgt2 Post #5



Quote from Falkoner
Farty has a program at his website(http://Farty1billion.DynDNS.org) that lets you find the right memory offsets.
I do have Farty's programs right from his site... But I'm not sure how to use it or even make up the triggers when I know the IDs... Going to check the map and see if I understand things more...



None.

Mar 16 2008, 3:42 pm NudeRaider Post #6

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from rockz
They're a lot easier than you'd think. I ended up learning how to hex edit triggers because it's so much easier that way. Only Uberation really lets you make EUD triggers, and it's not all that easy to edit or make duplicate triggers with.





Mar 16 2008, 9:47 pm Falkoner Post #7



You only use Farty's program to find the unit IDs, you need to use Uberation to actually make the triggers, or hex editing.

Post has been edited 1 time(s), last time on Mar 26 2008, 1:05 am by Falkoner.



None.

Mar 16 2008, 11:57 pm Vi3t-X Post #8



Hex Editing is real easy. All you have to do is find the proper line in the 36,000 strings!



None.

Mar 17 2008, 2:42 am Joshgt2 Post #9



I'm still learning how to use Farty's program... Oh, and I can't wait to go through 36,000 strings...



None.

Mar 17 2008, 2:24 pm Falkoner Post #10



You don't have to, Uberation works just fine.



None.

Mar 26 2008, 12:11 am Doodle77 Post #11



You can also use the .trg's farty's program exports or Starforge with the edited data files (doodle77.dyndns.org/data.zip) or Classic Trigedit (to use unit IDs instead of names use UnitID:#)



None.

Mar 26 2008, 1:04 am O)FaRTy1billion[MM] Post #12

👻 👾 👽 💪

If you can control the unit IDs you can do it just fine. My program finds the unit IDs and players from the offsets, not finds the offsets. xC
It is actually quite easy to find the exact location to hexedit triggers.
Finding conditions: 2400*triggerID + (20*conditionID)
Finding actions: 2400*triggerID + 320 + (32*ActionID)

Also I found a thing with my program where it returns the player ID 1-based but the trigger exporter exports it into *.trg as 0-based.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Mar 26 2008, 3:11 am rockz Post #13

ᴄʜᴇᴇsᴇ ɪᴛ!

http://www.staredit.net/maplantis/index.php?sid=2320a9adb5;post=63280

Have fun. I should make a tutorial on this...



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Mar 26 2008, 3:22 am modmaster50 Post #14



What are the addresses to the .dat files in memory?



None.

Mar 26 2008, 8:35 pm O)FaRTy1billion[MM] Post #15

👻 👾 👽 💪

Quote from rockz
Have fun. I should make a tutorial on this...
:P That was something that was suggested to me in another topic, so I've already started making one. Although I suppose if one resource is a bit unclear or questionable, a secondary resource is always nice.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Mar 27 2008, 2:48 am rockz Post #16

ᴄʜᴇᴇsᴇ ɪᴛ!

Quote from FaRTy1billion
Quote from rockz
Have fun. I should make a tutorial on this...
:P That was something that was suggested to me in another topic, so I've already started making one. Although I suppose if one resource is a bit unclear or questionable, a secondary resource is always nice.
Well I already made that simple one on maplantis with pictures. I say I'm going to do a lot of things, but I usually never do. For example, my helm's deep map is stalled because I don't care anymore, and everyone plays annatar (ugh).



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Mar 27 2008, 3:10 am The_Underscore Post #17



Yeah, annatar gets really annoying. All i ever do in it istry to assassinate ppl with snaga and bomb and get assassinated by the hero specials anyway. I started a helms map too, i'll also probably never finish it.

I'm on topic, really i am.

As for health detect, is it possible to get it to work with a created unit, specifically a replacement for something? Like if unitID 3 dies, will the next one created be unitID 3 or like 500?



None.

Mar 27 2008, 3:16 am ClansAreForGays Post #18



I pretty sure that every units assigned id is permanent.




Mar 27 2008, 4:00 am O)FaRTy1billion[MM] Post #19

👻 👾 👽 💪

Well. If you preplace the unit they will be... but if it is constantly getting removed, recreated, units are being built while it's dead... it may get scrambled. If you do detect HP or unit settings, you have to actually take steps to make sure that the unit always occupies the same slot.
But to answer your question... If you create a unit it will fill the highest slot (lowerst number) it can. So if your unit is preplaced and nothing before it gets killed/removed, you can recreate it in the same slot.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Mar 27 2008, 5:08 am DT_Battlekruser Post #20



Quote from FaRTy1billion
Quote from rockz
Have fun. I should make a tutorial on this...
:P That was something that was suggested to me in another topic, so I've already started making one. Although I suppose if one resource is a bit unclear or questionable, a secondary resource is always nice.

The conceptual tutorial I wrote back in the day should still be on the SEN tutorial archive. I should upload it eventually.

Quote
If you create a unit it will fill the highest slot (lowerst number) it can. So if your unit is preplaced and nothing before it gets killed/removed, you can recreate it in the same slot.

Are you sure? The last time LocalID filling order was discussed, it was concluded they filled in numerical order regardless of gaps first, recompiling a list of empty LocalIDs every time ID the last was filled.


NOTE TO ALL: EUD LEXICON
Please conform to the following lexicon for the ID number associated with units when processing EUD Conditions. It helps to avoid confusion.

The Unit ID of a unit is its ID number based on its unit type (e.g. Marines have a Unit ID of 0). All units of the same type have identical Unit IDs.

The Local ID of a unit is its local ID number within a scenario. Every individual unit has a unique Local ID number, between 0 and 1699. Each time a new unit is created, it is assigned a new Local ID, and preplaced units are assigned Local IDs in order of placement (certain editors will reorder placement to go from the left-most (top-most in case of identical pixel alignment) unit first.




None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:00 pm]
jjf28 -- Echo
Echo shouted: Excalibur What's the discord?
https://discord.gg/HwfNecXz
[08:28 pm]
Echo -- I might be moving out of private banking soon. I got a job offer from the US Treasury as an examiner. DOGE won't be able to touch them since OCC is self-funded
[08:26 pm]
Echo -- l)ark_ssj9kevin
l)ark_ssj9kevin shouted: Echo Voy does
Nice! Time going by fast
[08:26 pm]
Echo -- dumbducky
dumbducky shouted: Echo Tired of moving every few years, hoping to move closer to extended family so my kids can be with their cousins
Yeah I feel you. I've moved quite a bit the past 5 years too.
[08:25 pm]
Echo -- Excalibur
Excalibur shouted: Holy shit its Echo! :O Join the discord you fuck.
What's the discord?
[08:25 pm]
Echo -- Oh wow it's (U)Bolt_Head LOL
[09:33 am]
Oh_Man -- this guy could become america's Ned Kelly
[2024-12-13. : 1:30 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: Oh_Man Not really sure what you mean part of it lol. Seriously doubt anyone here is plotting to kill insurance company executives. I dunno how to feel about the event. On the one hand, fuck insurance companies and UHC is one of the worst. On the other hand, vigilante justice isn't ideal. Definitely not shedding any tears for the fallen CEO, and most likely wouldn't have reported the killer if I had been the one to spot him. There will always be another stooge to take his place though.
"part of the zeitgeist" probably means "approves of"
[2024-12-12. : 11:50 pm]
Ultraviolet -- Themselves or each other? I guess both are true
[2024-12-12. : 8:42 pm]
RIVE -- If anyone's gonna get shot in the US, it better be the upper class. The lower class has been shooting themselves for far too long.
Please log in to shout.


Members Online: Roy, hamsterkoster2, Excalibur