Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: <SOLVED> Giving cloaking ability to other units
<SOLVED> Giving cloaking ability to other units
Oct 23 2022, 1:57 pm
By: Psilance  

Oct 23 2022, 1:57 pm Psilance Post #1



EDIT FINAL: Giving marine cloak by forcing cloaking using secondaryOrderID. Learned it thanks to a post by some user called farty.

I used EUD Editor 3 version 0.14.2.1:

Trigger > Action
1. SetNextUnitPtrEpd -> Select a global variable you created for this purpose (idk what ptr and epd is so I used both).
2. CreateUnit -> Choose 1 of whatever unit you want but know that the global variable you chose before will refer to this unit.
3. SetCUnitepd -> Choose the global variable from before + secondaryOrderID + 109 + set to

In my example I named the global variable "Terr"

To turn off the cloak
SetCUnitepd -> Choose the global variable from before + secondaryOrderID + 110 + set to

109 and 110 are order IDs and there is a list here: http://farty1billion.dyndns.org/EUDDB/?pg=ref&a=orders

///////////////////// Old post:
I've been playing around in EUD Editor 3 trying on my own because I can't find any tutorials except for this one: https://github.com/Ar3sgice/eudtools/wiki/EUD-Tutorial:-How-to-make-units-other-than-spellcasters-cast-spells

But it's not a hold-your-hand-tutorial even though I understand it I don't know how he does it in the program like it is shown in the tutorial.


Is there a better tutorial and if not can somebody explain what he does at the EUD Editor 3 part at the end?

As an example in my struggle: It starts with some Korean and "Hydra" which translates to "Declare the variable Hydra".
How is that done?

then it goes to "onPluginStart".
so I would think there is a function/condition like that in the trigger editor but I couldn't find it.

So I continue in the code to "Set Animation value for Cast Disruption Web : SetTo 3".
And ofc I am just lost at this point.


Progress: I've gotten far enough to realize he is writing it in "Only Code" mode. And I've written "function onPluginStart" but then the tutorial shows two words that translates to "Arguments" and "Content".

It might help me to know which programming language this is. I've never seen anything like it. Looks like C++ with spacings for parameters and content and no () {}.

Post has been edited 11 time(s), last time on Oct 24 2022, 2:04 pm by Psilance.



None.

Oct 23 2022, 3:53 pm Psilance Post #2



EDIT: My hydralisk now casts lightning. Though I still don't understand the code especially the "hydra" parts. If anyone want to explain what is going on I'd appreciate it.

How does the "Set Hydra to next unit created" work? And have I done it correctly as seen in the image I've posted below? I've used the "SetNextUnitPtrEpd" and selected a global variable called Hydra because I didn't know how to declare a new variable in ez mode.

I've gotten some of the code down with the ez-mode, needless to say it doesn't do much if anything:




EDIT: I have discovered secondaryOrderId thanks to another post.

Post has been edited 6 time(s), last time on Oct 24 2022, 5:18 am by Psilance.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: ManCubuS