Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [EUD Editor] How to allow skills be able to self-cast
[EUD Editor] How to allow skills be able to self-cast
Apr 12 2020, 1:01 am
By: MMMOE  

Apr 12 2020, 1:01 am MMMOE Post #1



As title said, and as all of us noticed that in SC world, usually skills/spells are not be able to cast to caster itself.

For example, Terran Medic cannot heal herself, or Terran Science Vessel cannot cast Defensive Matrix to protect itself.

I am using EUD Editor v3, and would like to know if there is a way to allow specific skill/spell (e.g. Medic's Healing) be able to self-cast?

Thanks so much in advance! Enjoy your weekend :)



None.

Apr 19 2020, 9:32 pm Sie_Sayoka Post #2



I'm not sure if there's an easy way to do this. There's three methods that may work but require a lot of workarounds. They require knowledge of CUNITs which can be found in the documentation thread.

The first method is to detect when the spell is targeted on itself. As this is normally impossible it will give an error message but that doesn't matter. Once you've detected the conditions you can force the order and target through CUNIT. I'm not sure if this one will actually work.

The second method is similar but once the conditions are set you create an invisible unit that will apply the spell then remove it after the spell is completed. If the spell costs energy you would need to remove it through CUNIT as well.

The final method is to not cast the spell at all and apply the spell effect directly through CUNIT. If the spell has an image overlay i.e. matrix or ensnare, you'll have to create sprites or a unit to follow the target unit. Overlays are under CPSRITE, the majority of which are unsupported. What you're effectively doing is faking the spell.



None.

Apr 22 2020, 12:57 am MMMOE Post #3



[quote=name:Sie_Sayoka]I'm not sure if there's an easy way to do this. There's three methods that may work but require a lot of workarounds. They require knowledge of CUNITs which can be found in the documentation thread.

Thanks for your reply, just FYI, cast to caster himself will not show error in SC world, you can try in game, usually it allows to point to caster himself, and the selection circle blink once, then nothing happen lol.

But yeah, those all are good ideas, I guess 1st one is most intuitive one. I don't know CUNITs, will try to find some docs to have look.

Anyway, thanks! :D



None.

Apr 22 2020, 6:42 am NudeRaider Post #4

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 MMMOE
I don't know CUNITs, will try to find some docs to have look.
Quote from Sie_Sayoka
They require knowledge of CUNITs which can be found in the documentation thread.
He referred to the stickied [EUD] Documentation Thread




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: antjackh78, Moose