Staredit Network > Forums > SC2 Assistance > Topic: Custom Abilities
Custom Abilities
Aug 24 2010, 3:56 am
By: payne  

Aug 26 2010, 10:49 pm payne Post #21

:payne:

Quote from shmeeps
I was thinking that, use minerals for health, or even just a variable, or something like that, and just on hit heal the unit but remove the same amount of minerals. To be honest, with the Boss Health Bars and stuff, you could make a really neat custom GUI using this system, and just skip the standard health/wireframe display in exchange for the new one. Then it should be implementable, just on damage refill their health, take the damage away from their vHealth or deviate it to another player/attacker, and if the health is too low kill the unit.
What if he gets 1-hit? :S
But ya, I had in mind to create custom GUI, though only for Medic. It sounds weird anyways, so I guess I'll design one for all the players.

P.S. Boss bars are ugly. ;o



None.

Aug 27 2010, 5:23 am shmeeps Post #22



Well, if he gets one shot just kill the unit, no need to refill the regular health (this is assuming the unit is given some huge amount of health, like 9999). If something can do that much damage on the map... well, then damn.

It's basically like this

Code
(Unit take damage) -> (Is deviate on?) -> (Reverse damage to caster)
                                       -> (Check to see if damage kills unit) -> (Kill unit)
                                                                              -> (Remove damage amount from vHealth and restore health to unit)


Also, if you're going to put in the effort to make a GUI for one unit, why not just extend it to every player?



None.

Aug 27 2010, 4:54 pm payne Post #23

:payne:

Quote from shmeeps
Well, if he gets one shot just kill the unit, no need to refill the regular health (this is assuming the unit is given some huge amount of health, like 9999). If something can do that much damage on the map... well, then damn.

It's basically like this

Code
(Unit take damage) -> (Is deviate on?) -> (Reverse damage to caster)
                                       -> (Check to see if damage kills unit) -> (Kill unit)
                                                                              -> (Remove damage amount from vHealth and restore health to unit)


Also, if you're going to put in the effort to make a GUI for one unit, why not just extend it to every player?
1. Deviate could have been activated when the unit had something like 2 hp left. ;o
2. I will make it for all players. ^^



None.

Aug 27 2010, 5:59 pm shmeeps Post #24



Assuming vHealth is the way you go, it seems to trigger fairly quickly. I replicated the Uberlisk with a guide someone posted a while back, which made 6 attacks at once (blades, 5 spine crawlers), which hit a total of 12 marines. Only if all 5 hits hit the same unit at once would it actually kill the unit (the trigger set the attacked units health to 100 on hit). With a health pool at max, it shouldn't be a problem.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
[06:26 am]
NudeRaider -- I mean yes, maps - through EUDs - were theoretically able to do that as well, but that was patched quickly.
[06:25 am]
NudeRaider -- Symmetry
Symmetry shouted: Ohhh imagine a SC map that could delete itself
not the map, the editor
[02:28 am]
Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
[02:28 am]
Symmetry -- Ohhh imagine a SC map that could delete itself
[2026-7-15. : 8:51 pm]
NudeRaider -- Symmetry
Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
[2026-7-15. : 4:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
[2026-7-15. : 2:19 am]
Symmetry -- NudeRaider
NudeRaider shouted: Symmetry I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
[2026-7-14. : 11:43 pm]
Ultraviolet -- let's take each other's clothes off :teach:
[2026-7-14. : 11:03 pm]
Vrael -- :teach:
Please log in to shout.


Members Online: Excalibur